diff --git a/app/services/app/app.ts b/app/services/app/app.ts index 8aaf04b5fd6e..36bba5f52848 100644 --- a/app/services/app/app.ts +++ b/app/services/app/app.ts @@ -177,7 +177,20 @@ export class AppService extends StatefulService { } ipcRenderer.send('AppInitFinished'); - this.metricsService.recordMetric('sceneCollectionLoadingTime'); + const sceneCollectionLoadingTime = Date.now(); + this.metricsService.recordMetric('sceneCollectionLoadingTime', sceneCollectionLoadingTime); + + // Log startup times + const metrics = this.metricsService.getMetrics(); + if (metrics?.appStartTime) { + console.log( + '=================================\n', + 'Time to load scene collection: ', + (sceneCollectionLoadingTime - metrics.appStartTime) / 1000, + 'seconds', + '\n=================================', + ); + } } shutdownStarted = new Subject();