MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / forEachMeasure

Function forEachMeasure

src/measure-performance.ts:75–77  ·  view source on GitHub ↗
(callback: (measureName: string, duration: number) => void)

Source from the content-addressed store, hash-verified

73}
74
75export function forEachMeasure(callback: (measureName: string, duration: number) => void) {
76 durations.forEach((duration, measureName) => callback(measureName, duration));
77}
78
79export function getTotalDuration() {
80 let total = 0;

Callers 1

getTotalDurationFunction · 0.85

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected