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

Function markPass

src/resolution/callback-synthesizer.ts:3708–3714  ·  view source on GitHub ↗
(label: string, dt: number)

Source from the content-addressed store, hash-verified

3706 // thread, so a worker crash isolates to a retry instead of failing synthesis.
3707 const passEdges: Edge[][] = new Array<Edge[]>(SYNTH_PASSES.length).fill(NONE);
3708 const markPass = (label: string, dt: number): void => {
3709 if (process.env.CODEGRAPH_SYNTH_TIMINGS && (dt > 250 || process.env.CODEGRAPH_SYNTH_TIMINGS === 'all')) {
3710 console.error(`[synth-timing] ${label}: ${dt}ms`);
3711 }
3712 passesDone++;
3713 emit(passesDone);
3714 };
3715 const runPassOnMain = async (i: number): Promise<void> => {
3716 const pass = SYNTH_PASSES[i]!;
3717 const t0 = Date.now();

Callers 2

runPassOnMainFunction · 0.85
synthesizeCallbackEdgesFunction · 0.85

Calls 2

errorMethod · 0.80
emitFunction · 0.70

Tested by

no test coverage detected