MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / perfRecord

Function perfRecord

packages/node/src/backend/nodeBackendInline.ts:285–291  ·  view source on GitHub ↗
(phase: string, durationMs: number)

Source from the content-addressed store, hash-verified

283 let nextFrameSeq = 1;
284
285 function perfRecord(phase: string, durationMs: number): void {
286 if (!PERF_ENABLED) return;
287 if (perfSamples.length >= PERF_MAX_SAMPLES) {
288 perfSamples.shift();
289 }
290 perfSamples.push({ phase, durationMs });
291 }
292
293 function perfSnapshot(): NodeBackendPerfSnapshot {
294 const byPhase = new Map<string, number[]>();

Callers 1

runPollOnceFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected