mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-06 14:34:17 +01:00
use .cpuprofile.json suffix (#201219)
This commit is contained in:
@@ -106,7 +106,7 @@ export class RendererProfiling {
|
||||
|
||||
|
||||
private async _store(profile: IV8Profile, sessionId: string): Promise<void> {
|
||||
const path = joinPath(this._environmentService.tmpDir, `renderer-${Math.random().toString(16).slice(2, 8)}.json`);
|
||||
const path = joinPath(this._environmentService.tmpDir, `renderer-${Math.random().toString(16).slice(2, 8)}.cpuprofile.json`);
|
||||
await this._fileService.writeFile(path, VSBuffer.fromString(JSON.stringify(profile)));
|
||||
this._logService.info(`[perf] stored profile to DISK '${path}'`, sessionId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user