This commit is contained in:
Johannes Rieken
2018-09-24 13:59:27 +02:00
parent f95e3e3bb4
commit 56dd8943ce

View File

@@ -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);