mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-27 13:40:25 +00:00
fix #59216
This commit is contained in:
@@ -308,9 +308,9 @@ export async function main(argv: string[]): Promise<any> {
|
||||
|
||||
try {
|
||||
// load and start profiler
|
||||
const main = await Profiler.start('main', filenamePrefix, { port: portMain });
|
||||
const extHost = await Profiler.start('extHost', filenamePrefix, { port: portExthost, tries: 300 });
|
||||
const renderer = await Profiler.start('renderer', filenamePrefix, {
|
||||
const mainProfileRequest = Profiler.start('main', filenamePrefix, { port: portMain });
|
||||
const extHostProfileRequest = Profiler.start('extHost', filenamePrefix, { port: portExthost, tries: 300 });
|
||||
const rendererProfileRequest = Profiler.start('renderer', filenamePrefix, {
|
||||
port: portRenderer,
|
||||
tries: 200,
|
||||
chooseTab: function (targets) {
|
||||
@@ -327,6 +327,10 @@ export async function main(argv: string[]): Promise<any> {
|
||||
}
|
||||
});
|
||||
|
||||
const main = await mainProfileRequest;
|
||||
const extHost = await extHostProfileRequest;
|
||||
const renderer = await rendererProfileRequest;
|
||||
|
||||
// wait for the renderer to delete the
|
||||
// marker file
|
||||
await whenDeleted(filenamePrefix);
|
||||
|
||||
Reference in New Issue
Block a user