@@ -64,6 +64,7 @@ export interface IMemoryInfo {
64
64
"timers.ellapsedExtensions" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
65
65
"timers.ellapsedExtensionsReady" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
66
66
"timers.ellapsedViewletRestore" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
67
+ "timers.ellapsedAuxiliaryViewletRestore" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
67
68
"timers.ellapsedPanelRestore" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
68
69
"timers.ellapsedEditorRestore" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
69
70
"timers.ellapsedWorkbenchContributions" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
@@ -123,6 +124,11 @@ export interface IStartupMetrics {
123
124
*/
124
125
readonly viewletId ?: string ;
125
126
127
+ /**
128
+ * The active auxiliary viewlet id or `undedined`
129
+ */
130
+ readonly auxiliaryViewletId ?: string ;
131
+
126
132
/**
127
133
* The active panel id or `undefined`
128
134
*/
@@ -338,7 +344,7 @@ export interface IStartupMetrics {
338
344
readonly ellapsedExtensionsReady : number ;
339
345
340
346
/**
341
- * The time it took to restore the viewlet.
347
+ * The time it took to restore the primary sidebar viewlet.
342
348
*
343
349
* * Happens in the renderer-process
344
350
* * Measured with the `willRestoreViewlet` and `didRestoreViewlet` performance marks.
@@ -347,6 +353,16 @@ export interface IStartupMetrics {
347
353
*/
348
354
readonly ellapsedViewletRestore : number ;
349
355
356
+ /**
357
+ * The time it took to restore the auxiliary bar viewlet.
358
+ *
359
+ * * Happens in the renderer-process
360
+ * * Measured with the `willRestoreAuxiliaryBar` and `didRestoreAuxiliaryBar` performance marks.
361
+ * * This should be looked at per viewlet-type/id.
362
+ * * Happens in parallel to other things, depends on async timing
363
+ */
364
+ readonly ellapsedAuxiliaryViewletRestore : number ;
365
+
350
366
/**
351
367
* The time it took to restore the panel.
352
368
*
@@ -676,6 +692,7 @@ export abstract class AbstractTimerService implements ITimerService {
676
692
}
677
693
678
694
const activeViewlet = this . _paneCompositeService . getActivePaneComposite ( ViewContainerLocation . Sidebar ) ;
695
+ const activeAuxiliaryViewlet = this . _paneCompositeService . getActivePaneComposite ( ViewContainerLocation . AuxiliaryBar ) ;
679
696
const activePanel = this . _paneCompositeService . getActivePaneComposite ( ViewContainerLocation . Panel ) ;
680
697
const info : Writeable < IStartupMetrics > = {
681
698
@@ -687,6 +704,7 @@ export abstract class AbstractTimerService implements ITimerService {
687
704
windowKind : this . _lifecycleService . startupKind ,
688
705
windowCount : await this . _getWindowCount ( ) ,
689
706
viewletId : activeViewlet ?. getId ( ) ,
707
+ auxiliaryViewletId : activeAuxiliaryViewlet ?. getId ( ) ,
690
708
editorIds : this . _editorService . visibleEditors . map ( input => input . typeId ) ,
691
709
panelId : activePanel ? activePanel . getId ( ) : undefined ,
692
710
@@ -714,6 +732,7 @@ export abstract class AbstractTimerService implements ITimerService {
714
732
ellapsedExtensions : this . _marks . getDuration ( 'code/willLoadExtensions' , 'code/didLoadExtensions' ) ,
715
733
ellapsedEditorRestore : this . _marks . getDuration ( 'code/willRestoreEditors' , 'code/didRestoreEditors' ) ,
716
734
ellapsedViewletRestore : this . _marks . getDuration ( 'code/willRestoreViewlet' , 'code/didRestoreViewlet' ) ,
735
+ ellapsedAuxiliaryViewletRestore : this . _marks . getDuration ( 'code/willRestoreAuxiliaryBar' , 'code/didRestoreAuxiliaryBar' ) ,
717
736
ellapsedPanelRestore : this . _marks . getDuration ( 'code/willRestorePanel' , 'code/didRestorePanel' ) ,
718
737
ellapsedWorkbenchContributions : this . _marks . getDuration ( 'code/willCreateWorkbenchContributions/1' , 'code/didCreateWorkbenchContributions/2' ) ,
719
738
ellapsedWorkbench : this . _marks . getDuration ( 'code/willStartWorkbench' , 'code/didStartWorkbench' ) ,
0 commit comments