use performance.mark to get entry to timeline (#101271)

This commit is contained in:
Benjamin Pasero
2020-06-30 10:44:23 +02:00
committed by GitHub
parent 0420349848
commit 63c38b167f
2 changed files with 5 additions and 0 deletions
@@ -55,6 +55,7 @@ bootstrapWindow.load([
],
function (workbench, configuration) {
perf.mark('didLoadWorkbenchMain');
performance.mark('workbench-start');
return process['lazyEnv'].then(function () {
perf.mark('main/startup');
+4
View File
@@ -414,6 +414,10 @@ export class Workbench extends Layout {
// Telemetry: startup metrics
mark('didStartWorkbench');
// Perf reporting (devtools)
performance.mark('workbench-end');
performance.measure('perf: workbench create & restore', 'workbench-start', 'workbench-end');
}
}
}