(label: string, dt: number)
| 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(); |
no test coverage detected