@@ -6,6 +6,7 @@ import { ParsedConfigurationFiles } from '@codesandbox/common/lib/templates/temp
66import _debug from '@codesandbox/common/lib/utils/debug' ;
77import { isBabel7 } from '@codesandbox/common/lib/utils/is-babel-7' ;
88import { absolute } from '@codesandbox/common/lib/utils/path' ;
9+ import VERSION from '@codesandbox/common/lib/version' ;
910import { clearErrorTransformers , dispatch , reattach } from 'codesandbox-api' ;
1011import { flatten } from 'lodash' ;
1112import initializeErrorTransformers from 'sandbox-hooks/errors/transformers' ;
@@ -485,6 +486,7 @@ async function compile({
485486
486487 dependencies = await manager . preset . processDependencies ( dependencies ) ;
487488
489+ metrics . measure ( 'dependencies' ) ;
488490 const { manifest, isNewCombination } = await loadDependencies (
489491 dependencies ,
490492 {
@@ -493,6 +495,7 @@ async function compile({
493495 showFullScreen : firstLoad ,
494496 }
495497 ) ;
498+ metrics . endMeasure ( 'dependencies' , 'Dependencies' ) ;
496499
497500 const shouldReloadManager =
498501 ( isNewCombination && ! firstLoad ) || manager . id !== sandboxId ;
@@ -741,8 +744,9 @@ async function compile({
741744 if ( firstLoad ) {
742745 metrics . persistMeasurements ( {
743746 sandboxId,
744- usedCache,
747+ cacheUsed : usedCache ,
745748 browser : navigator . userAgent ,
749+ version : VERSION ,
746750 } ) ;
747751 }
748752 }
0 commit comments