提交 2e61cfb5 编写于 作者: J Johannes Rieken

startup metrics should know if a window talks to a remote

上级 c6e49d4b
......@@ -40,6 +40,7 @@ export interface IMemoryInfo {
"version" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"ellapsed" : { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth", "isMeasurement": true },
"isLatestVersion": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"isRemoteWindow": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"didUseCachedData": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"windowKind": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
"windowCount": { "classification": "SystemMetaData", "purpose": "PerformanceAndHealth" },
......@@ -99,6 +100,11 @@ export interface IStartupMetrics {
*/
readonly isLatestVersion: boolean;
/**
* Whether this window talks to a remote endpoint.
*/
readonly isRemoteWindow: boolean;
/**
* Whether we asked for and V8 accepted cached data.
*/
......@@ -375,6 +381,7 @@ class TimerService implements ITimerService {
// reflections
isLatestVersion: Boolean(await this._updateService.isLatestVersion()),
isRemoteWindow: Boolean(this._environmentService.configuration.remoteAuthority),
didUseCachedData: didUseCachedData(),
windowKind: this._lifecycleService.startupKind,
windowCount: await this._windowsService.getWindowCount(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册