Skip to content

Commit 2e61cfb

Browse files
committed
startup metrics should know if a window talks to a remote
1 parent c6e49d4 commit 2e61cfb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/vs/workbench/services/timer/electron-browser/timerService.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface IMemoryInfo {
4040
"version" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
4141
"ellapsed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
4242
"isLatestVersion": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
43+
"isRemoteWindow": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
4344
"didUseCachedData": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
4445
"windowKind": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
4546
"windowCount": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
@@ -99,6 +100,11 @@ export interface IStartupMetrics {
99100
*/
100101
readonly isLatestVersion: boolean;
101102

103+
/**
104+
* Whether this window talks to a remote endpoint.
105+
*/
106+
readonly isRemoteWindow: boolean;
107+
102108
/**
103109
* Whether we asked for and V8 accepted cached data.
104110
*/
@@ -375,6 +381,7 @@ class TimerService implements ITimerService {
375381

376382
// reflections
377383
isLatestVersion: Boolean(await this._updateService.isLatestVersion()),
384+
isRemoteWindow: Boolean(this._environmentService.configuration.remoteAuthority),
378385
didUseCachedData: didUseCachedData(),
379386
windowKind: this._lifecycleService.startupKind,
380387
windowCount: await this._windowsService.getWindowCount(),

0 commit comments

Comments
 (0)