diff --git a/src/vs/code/node/cli.ts b/src/vs/code/node/cli.ts index 6365509bab4bd910d40c1ec129f707b2bd259230..dee4d27480a9398a7a08472bd6847f6608a40910 100644 --- a/src/vs/code/node/cli.ts +++ b/src/vs/code/node/cli.ts @@ -308,9 +308,9 @@ export async function main(argv: string[]): Promise { 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 { } }); + const main = await mainProfileRequest; + const extHost = await extHostProfileRequest; + const renderer = await rendererProfileRequest; + // wait for the renderer to delete the // marker file await whenDeleted(filenamePrefix);