PerformanceUtils
Functions
summarizeConstructionSite
PerformanceUtils.summarizeConstructionSite(traceback: string) → stringTurns a construction traceback into a short "who created this" label. Skips instrumentation / Maid / BaseObject frames so owners like DamagePartClient or PipToolWheelServiceClient surface.
getLifetimeSiteCounts
PerformanceUtils.getLifetimeSiteCounts(label: string) → {[string]: number}Returns live construction-site counts for a label previously passed to PerformanceUtils.trackObjectLifetime.
getLifetimeSiteRanking
PerformanceUtils.getLifetimeSiteRanking(label: string,limit: number?) → {{site: string,count: number,delta: number}}Ranked live construction sites for a tracked label, with deltas since the previous ranking/dump for that label.
trackObjectLifetime
PerformanceUtils.trackObjectLifetime(label: string,object: table,cleanupAliases: {string}?) → () → ()
Tracks objects constructed after this method is called, grouped by construction stack.
Cleanup aliases such as DoCleaning, Disconnect, or Kill are rebound to the
instrumented Destroy method.
Unlike PerformanceUtils.countObject, cleanup of objects constructed before recording does not make the live total negative.
Also classifies live objects by construction site via PerformanceUtils.summarizeConstructionSite for per-owner Maid/object tracking.
printAll
PerformanceUtils.printAll() → ()Prints all counters to output.