Skip to content

Commit c5c3b31

Browse files
authored
Merge pull request #11 from italojs/monitor-bundler
adding inspector context
2 parents 923f7d9 + 2f81b4b commit c5c3b31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/monitor-bundler.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
566566
logMessage "==============================="
567567
${meteorCmd} reset --skip-cache
568568
start_time_ms=$(getTime)
569+
export METEOR_INSPECT_CONTEXT="cold-start"
569570
startMeteorApp
570571
waitMeteorApp
571572
end_time_ms=$(getTime)
@@ -579,6 +580,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
579580
logMessage "[Cache start]"
580581
logMessage "==============================="
581582
start_time_ms=$(getTime)
583+
export METEOR_INSPECT_CONTEXT="cache-start"
582584
startMeteorApp
583585
waitMeteorApp
584586
end_time_ms=$(getTime)
@@ -593,6 +595,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
593595
logMessage "==============================="
594596
logMessage "Client entrypoint: ${meteorClientEntrypoint}"
595597
start_time_ms=$(getTime)
598+
export METEOR_INSPECT_CONTEXT="rebuild-client"
596599
startMeteorApp
597600
waitMeteorApp
598601
appendLine "console.log('new line')" "${meteorClientEntrypoint}"
@@ -613,6 +616,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
613616
logMessage "==============================="
614617
logMessage "Server entrypoint: ${meteorServerEntrypoint}"
615618
start_time_ms=$(getTime)
619+
export METEOR_INSPECT_CONTEXT="rebuild-server"
616620
startMeteorApp
617621
waitMeteorApp
618622
appendLine "console.log('new line')" "${meteorServerEntrypoint}"
@@ -634,6 +638,7 @@ if [[ "${monitorSize}" == "true" ]] && cat "${appPath}/.meteor/versions" | grep
634638
logMessage "[Visualize bundle]"
635639
logMessage "==============================="
636640
start_time_ms=$(getTime)
641+
export METEOR_INSPECT_CONTEXT="visualize-bundle"
637642
visualizeMeteorAppBundle
638643
waitMeteorApp
639644
BundleSize=$(calculateMeteorAppBundleSize)
@@ -644,4 +649,4 @@ if [[ "${monitorSize}" == "true" ]] && cat "${appPath}/.meteor/versions" | grep
644649
removeMeteorAppBundleVisualizer
645650
fi
646651

647-
cleanup
652+
cleanup

0 commit comments

Comments
 (0)