@@ -6,6 +6,7 @@ import { ParsedConfigurationFiles } from '@codesandbox/common/lib/templates/temp
6
6
import _debug from '@codesandbox/common/lib/utils/debug' ;
7
7
import { isBabel7 } from '@codesandbox/common/lib/utils/is-babel-7' ;
8
8
import { absolute } from '@codesandbox/common/lib/utils/path' ;
9
+ import VERSION from '@codesandbox/common/lib/version' ;
9
10
import { clearErrorTransformers , dispatch , reattach } from 'codesandbox-api' ;
10
11
import { flatten } from 'lodash' ;
11
12
import initializeErrorTransformers from 'sandbox-hooks/errors/transformers' ;
@@ -485,6 +486,7 @@ async function compile({
485
486
486
487
dependencies = await manager . preset . processDependencies ( dependencies ) ;
487
488
489
+ metrics . measure ( 'dependencies' ) ;
488
490
const { manifest, isNewCombination } = await loadDependencies (
489
491
dependencies ,
490
492
{
@@ -493,6 +495,7 @@ async function compile({
493
495
showFullScreen : firstLoad ,
494
496
}
495
497
) ;
498
+ metrics . endMeasure ( 'dependencies' , 'Dependencies' ) ;
496
499
497
500
const shouldReloadManager =
498
501
( isNewCombination && ! firstLoad ) || manager . id !== sandboxId ;
@@ -741,8 +744,9 @@ async function compile({
741
744
if ( firstLoad ) {
742
745
metrics . persistMeasurements ( {
743
746
sandboxId,
744
- usedCache,
747
+ cacheUsed : usedCache ,
745
748
browser : navigator . userAgent ,
749
+ version : VERSION ,
746
750
} ) ;
747
751
}
748
752
}
0 commit comments