(filePath: string, summary: PerfSummary)
| 552 | |
| 553 | /** Writes `summary` to `filePath` as JSON, overwriting it. */ |
| 554 | export async function writeSummaryFile(filePath: string, summary: PerfSummary): Promise<void> { |
| 555 | await fs.mkdir(path.dirname(filePath), {recursive: true}); |
| 556 | await fs.writeFile(filePath, JSON.stringify(summary, null, 2), 'utf8'); |
| 557 | } |