/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.25/esri/copyright.txt for details. */ import{AllocationTracer as t}from"../support/AllocationTracer.js";import{ResourceType as r}from"./enums.js";const e={RECORD_ALLOCATIONS:!1};class s{constructor(){for(this._current=new Array,this._max=new Array,this._allocations=new t(e.RECORD_ALLOCATIONS);this._current.lengtht+r),0)}printResourceCount(){if(this.total>0){console.log("Live objects:");for(let t=0;t0&&console.log(`${r[t]}: ${e}`)}}this._allocations.print()}}export{s as InstanceCounter,e as test};