From b65d113c0aa44b017ac70e46c21a141b3f87860f Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 8 Oct 2018 10:56:33 +0200 Subject: [PATCH] prefix names with `prof-`, #59505 --- src/vs/code/node/cli.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/code/node/cli.ts b/src/vs/code/node/cli.ts index dee4d27480a..2b1c0bcda21 100644 --- a/src/vs/code/node/cli.ts +++ b/src/vs/code/node/cli.ts @@ -261,7 +261,7 @@ export async function main(argv: string[]): Promise { throw new Error('Failed to find free ports for profiler. Make sure to shutdown all instances of the editor first.'); } - const filenamePrefix = paths.join(os.homedir(), Math.random().toString(16).slice(-4)); + const filenamePrefix = paths.join(os.homedir(), 'prof-' + Math.random().toString(16).slice(-4)); argv.push(`--inspect-brk=${portMain}`); argv.push(`--remote-debugging-port=${portRenderer}`); @@ -300,7 +300,7 @@ export async function main(argv: string[]): Promise { suffix = '.txt'; } - await profiler.writeProfile(profile, `${filenamePrefix}-${name}.cpuprofile${suffix}`); + await profiler.writeProfile(profile, `${filenamePrefix}.${name}.cpuprofile${suffix}`); } }; } -- GitLab