* Records every run so far to ` /status.json`. * * Rewritten after each run so that a crashed or interrupted session still * leaves an accurate record of what completed.
(outDir: string, runs: RunRecord[])
| 364 | * leaves an accurate record of what completed. |
| 365 | */ |
| 366 | function writeStatusFile(outDir: string, runs: RunRecord[]): void { |
| 367 | writeFileSync( |
| 368 | path.join(outDir, "status.json"), |
| 369 | JSON.stringify({ runs }, null, 2), |
| 370 | ); |
| 371 | } |
| 372 | |
| 373 | /** The per-mode log file capturing the profiled command's output. */ |
| 374 | function commandLogPath(runDir: string, mode: Mode): string { |