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