@@ -566,6 +566,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
566
566
logMessage " ==============================="
567
567
${meteorCmd} reset --skip-cache
568
568
start_time_ms=$( getTime)
569
+ export METEOR_INSPECT_CONTEXT=" cold-start"
569
570
startMeteorApp
570
571
waitMeteorApp
571
572
end_time_ms=$( getTime)
@@ -579,6 +580,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
579
580
logMessage " [Cache start]"
580
581
logMessage " ==============================="
581
582
start_time_ms=$( getTime)
583
+ export METEOR_INSPECT_CONTEXT=" cache-start"
582
584
startMeteorApp
583
585
waitMeteorApp
584
586
end_time_ms=$( getTime)
@@ -593,6 +595,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
593
595
logMessage " ==============================="
594
596
logMessage " Client entrypoint: ${meteorClientEntrypoint} "
595
597
start_time_ms=$( getTime)
598
+ export METEOR_INSPECT_CONTEXT=" rebuild-client"
596
599
startMeteorApp
597
600
waitMeteorApp
598
601
appendLine " console.log('new line')" " ${meteorClientEntrypoint} "
@@ -613,6 +616,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
613
616
logMessage " ==============================="
614
617
logMessage " Server entrypoint: ${meteorServerEntrypoint} "
615
618
start_time_ms=$( getTime)
619
+ export METEOR_INSPECT_CONTEXT=" rebuild-server"
616
620
startMeteorApp
617
621
waitMeteorApp
618
622
appendLine " console.log('new line')" " ${meteorServerEntrypoint} "
@@ -634,6 +638,7 @@ if [[ "${monitorSize}" == "true" ]] && cat "${appPath}/.meteor/versions" | grep
634
638
logMessage " [Visualize bundle]"
635
639
logMessage " ==============================="
636
640
start_time_ms=$( getTime)
641
+ export METEOR_INSPECT_CONTEXT=" visualize-bundle"
637
642
visualizeMeteorAppBundle
638
643
waitMeteorApp
639
644
BundleSize=$( calculateMeteorAppBundleSize)
@@ -644,4 +649,4 @@ if [[ "${monitorSize}" == "true" ]] && cat "${appPath}/.meteor/versions" | grep
644
649
removeMeteorAppBundleVisualizer
645
650
fi
646
651
647
- cleanup
652
+ cleanup
0 commit comments