From 308e723e181f15ebdab658b5a2bb6835e10b6fa8 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 10 Dec 2020 18:06:14 +0100 Subject: [PATCH] yet another tweak to startup timer telemetry --- src/vs/workbench/services/timer/browser/timerService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/services/timer/browser/timerService.ts b/src/vs/workbench/services/timer/browser/timerService.ts index 53ad8e85e5f..84239cfc7d1 100644 --- a/src/vs/workbench/services/timer/browser/timerService.ts +++ b/src/vs/workbench/services/timer/browser/timerService.ts @@ -375,9 +375,9 @@ export abstract class AbstractTimerService implements ITimerService { this._telemetryService.publicLog('startupTimeVaried', metrics); // report raw timers as telemetry - type Durations = { entries: string; }; + type Durations = { entries: perf.PerformanceEntry[]; }; type DurationsClassification = { entries: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth' } }; - this._telemetryService.publicLog2('startup.timers.raw', { entries: JSON.stringify(perf.getEntries()) }); + this._telemetryService.publicLog2('startup.timers.entries', { entries: perf.getEntries() }); } private async _computeStartupMetrics(): Promise {