Skip to content

Commit 63c38b1

Browse files
author
Benjamin Pasero
authored
use performance.mark to get entry to timeline (microsoft#101271)
1 parent 0420349 commit 63c38b1

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/vs/code/electron-browser/workbench/workbench.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ bootstrapWindow.load([
5555
],
5656
function (workbench, configuration) {
5757
perf.mark('didLoadWorkbenchMain');
58+
performance.mark('workbench-start');
5859

5960
return process['lazyEnv'].then(function () {
6061
perf.mark('main/startup');

src/vs/workbench/browser/workbench.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ export class Workbench extends Layout {
414414

415415
// Telemetry: startup metrics
416416
mark('didStartWorkbench');
417+
418+
// Perf reporting (devtools)
419+
performance.mark('workbench-end');
420+
performance.measure('perf: workbench create & restore', 'workbench-start', 'workbench-end');
417421
}
418422
}
419423
}

0 commit comments

Comments
 (0)