mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-29 18:09:01 +01:00
use performance.mark to get entry to timeline (#101271)
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user