@@ -265,14 +265,14 @@ export class TerminalService implements ITerminalService {
265
265
266
266
private readonly _perfMarks : PerformanceMark [ ] = [ ] ;
267
267
get perfMarks ( ) : readonly PerformanceMark [ ] { return this . _perfMarks ; }
268
- private _mark ( name : string , detail ?: string ) {
269
- this . _perfMarks . push ( new PerformanceMark ( name , { detail } ) ) ;
268
+ private _mark ( name : string ) {
269
+ this . _perfMarks . push ( new PerformanceMark ( name ) ) ;
270
270
}
271
271
272
272
async initializePrimaryBackend ( ) {
273
- this . _mark ( 'terminal/willGetTerminalBackend' ) ;
273
+ this . _mark ( 'code/ terminal/willGetTerminalBackend' ) ;
274
274
this . _primaryBackend = await this . _terminalInstanceService . getBackend ( this . _environmentService . remoteAuthority ) ;
275
- this . _mark ( 'terminal/didGetTerminalBackend' ) ;
275
+ this . _mark ( 'code/ terminal/didGetTerminalBackend' ) ;
276
276
const enableTerminalReconnection = this . configHelper . config . enablePersistentSessions ;
277
277
278
278
// Connect to the extension host if it's there, set the connection state to connected when
@@ -281,7 +281,7 @@ export class TerminalService implements ITerminalService {
281
281
282
282
const isPersistentRemote = ! ! this . _environmentService . remoteAuthority && enableTerminalReconnection ;
283
283
284
- this . _mark ( 'terminal/willReconnect' ) ;
284
+ this . _mark ( 'code/ terminal/willReconnect' ) ;
285
285
let reconnectedPromise : Promise < any > ;
286
286
if ( isPersistentRemote ) {
287
287
reconnectedPromise = this . _reconnectToRemoteTerminals ( ) ;
@@ -292,7 +292,7 @@ export class TerminalService implements ITerminalService {
292
292
}
293
293
reconnectedPromise . then ( ( ) => {
294
294
this . _setConnected ( ) ;
295
- this . _mark ( 'terminal/didReconnect' ) ;
295
+ this . _mark ( 'code/ terminal/didReconnect' ) ;
296
296
this . _whenConnected . complete ( ) ;
297
297
} ) ;
298
298
@@ -423,13 +423,13 @@ export class TerminalService implements ITerminalService {
423
423
if ( ! backend ) {
424
424
return ;
425
425
}
426
- this . _mark ( 'terminal/willGetTerminalLayoutInfo' ) ;
426
+ this . _mark ( 'code/ terminal/willGetTerminalLayoutInfo' ) ;
427
427
const layoutInfo = await backend . getTerminalLayoutInfo ( ) ;
428
- this . _mark ( 'terminal/didGetTerminalLayoutInfo' ) ;
428
+ this . _mark ( 'code/ terminal/didGetTerminalLayoutInfo' ) ;
429
429
backend . reduceConnectionGraceTime ( ) ;
430
- this . _mark ( 'terminal/willRecreateTerminalGroups' ) ;
430
+ this . _mark ( 'code/ terminal/willRecreateTerminalGroups' ) ;
431
431
await this . _recreateTerminalGroups ( layoutInfo ) ;
432
- this . _mark ( 'terminal/didRecreateTerminalGroups' ) ;
432
+ this . _mark ( 'code/ terminal/didRecreateTerminalGroups' ) ;
433
433
// now that terminals have been restored,
434
434
// attach listeners to update remote when terminals are changed
435
435
this . _attachProcessLayoutListeners ( ) ;
@@ -440,13 +440,13 @@ export class TerminalService implements ITerminalService {
440
440
if ( ! localBackend ) {
441
441
return ;
442
442
}
443
- this . _mark ( 'terminal/willGetTerminalLayoutInfo' ) ;
443
+ this . _mark ( 'code/ terminal/willGetTerminalLayoutInfo' ) ;
444
444
const layoutInfo = await localBackend . getTerminalLayoutInfo ( ) ;
445
- this . _mark ( 'terminal/didGetTerminalLayoutInfo' ) ;
445
+ this . _mark ( 'code/ terminal/didGetTerminalLayoutInfo' ) ;
446
446
if ( layoutInfo && layoutInfo . tabs . length > 0 ) {
447
- this . _mark ( 'terminal/willRecreateTerminalGroups' ) ;
447
+ this . _mark ( 'code/ terminal/willRecreateTerminalGroups' ) ;
448
448
await this . _recreateTerminalGroups ( layoutInfo ) ;
449
- this . _mark ( 'terminal/didRecreateTerminalGroups' ) ;
449
+ this . _mark ( 'code/ terminal/didRecreateTerminalGroups' ) ;
450
450
}
451
451
// now that terminals have been restored,
452
452
// attach listeners to update local state when terminals are changed
@@ -468,7 +468,7 @@ export class TerminalService implements ITerminalService {
468
468
if ( this . _lifecycleService . startupKind !== StartupKind . ReloadedWindow && attachPersistentProcess . type === 'Task' ) {
469
469
continue ;
470
470
}
471
- this . _mark ( `terminal/willRecreateTerminal/${ attachPersistentProcess . id } ` , `pid: ${ attachPersistentProcess . pid } `) ;
471
+ this . _mark ( `terminal/willRecreateTerminal/${ attachPersistentProcess . id } - ${ attachPersistentProcess . pid } ` ) ;
472
472
if ( ! terminalInstance ) {
473
473
// create group and terminal
474
474
terminalInstance = await this . createTerminal ( {
@@ -486,7 +486,7 @@ export class TerminalService implements ITerminalService {
486
486
location : { parentTerminal : terminalInstance }
487
487
} ) ;
488
488
}
489
- this . _mark ( `terminal/didRecreateTerminal/${ attachPersistentProcess . id } ` , `pid: ${ attachPersistentProcess . pid } `) ;
489
+ this . _mark ( `terminal/didRecreateTerminal/${ attachPersistentProcess . id } - ${ attachPersistentProcess . pid } ` ) ;
490
490
}
491
491
const activeInstance = this . instances . find ( t => {
492
492
return t . shellLaunchConfig . attachPersistentProcess ?. id === groupLayout . activePersistentProcessId ;
@@ -930,7 +930,7 @@ export class TerminalService implements ITerminalService {
930
930
}
931
931
await this . _terminalProfileService . profilesReady ;
932
932
if ( this . _connectionState === TerminalConnectionState . Connecting ) {
933
- this . _mark ( `terminal/didGetProfiles` , `count: ${ this . _terminalProfileService . availableProfiles . length } ` ) ;
933
+ this . _mark ( `terminal/didGetProfiles` ) ;
934
934
}
935
935
}
936
936
}
0 commit comments