MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / __mark

Function __mark

src/resolution/callback-synthesizer.ts:3646–3655  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

3644 // located both the #1091/#1122 watchdog stalls and the #1212 OOM — keep it.
3645 const markT = { t: Date.now() };
3646 const __mark = (label: string): void => {
3647 const now = Date.now();
3648 const dt = now - markT.t;
3649 markT.t = now;
3650 if (process.env.CODEGRAPH_SYNTH_TIMINGS && (dt > 250 || process.env.CODEGRAPH_SYNTH_TIMINGS === 'all')) {
3651 console.error(`[synth-timing] ${label}: ${dt}ms`);
3652 }
3653 passesDone++;
3654 emit(passesDone);
3655 };
3656
3657 // Language gating: one indexed DISTINCT over the files table lets a pass
3658 // whose own filters reference a specific language/extension be skipped

Callers 1

synthesizeCallbackEdgesFunction · 0.85

Calls 2

errorMethod · 0.80
emitFunction · 0.70

Tested by

no test coverage detected