MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / writeStatusFile

Function writeStatusFile

scripts/profiler/main.ts:366–371  ·  view source on GitHub ↗

* 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[])

Source from the content-addressed store, hash-verified

364 * leaves an accurate record of what completed.
365 */
366function 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. */
374function commandLogPath(runDir: string, mode: Mode): string {

Callers 1

runProfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected