提交 b65d113c 编写于 作者: J Johannes Rieken

prefix names with `prof-`, #59505

上级 38acd799
......@@ -261,7 +261,7 @@ export async function main(argv: string[]): Promise<any> {
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<any> {
suffix = '.txt';
}
await profiler.writeProfile(profile, `${filenamePrefix}-${name}.cpuprofile${suffix}`);
await profiler.writeProfile(profile, `${filenamePrefix}.${name}.cpuprofile${suffix}`);
}
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册