Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding inspector context #11

Merged
merged 1 commit into from
Mar 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/monitor-bundler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
logMessage "==============================="
${meteorCmd} reset --skip-cache
start_time_ms=$(getTime)
export METEOR_INSPECT_CONTEXT="cold-start"
startMeteorApp
waitMeteorApp
end_time_ms=$(getTime)
Expand All @@ -579,6 +580,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
logMessage "[Cache start]"
logMessage "==============================="
start_time_ms=$(getTime)
export METEOR_INSPECT_CONTEXT="cache-start"
startMeteorApp
waitMeteorApp
end_time_ms=$(getTime)
Expand All @@ -593,6 +595,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
logMessage "==============================="
logMessage "Client entrypoint: ${meteorClientEntrypoint}"
start_time_ms=$(getTime)
export METEOR_INSPECT_CONTEXT="rebuild-client"
startMeteorApp
waitMeteorApp
appendLine "console.log('new line')" "${meteorClientEntrypoint}"
Expand All @@ -613,6 +616,7 @@ if [[ "${monitorSizeOnly}" != "true" ]]; then
logMessage "==============================="
logMessage "Server entrypoint: ${meteorServerEntrypoint}"
start_time_ms=$(getTime)
export METEOR_INSPECT_CONTEXT="rebuild-server"
startMeteorApp
waitMeteorApp
appendLine "console.log('new line')" "${meteorServerEntrypoint}"
Expand All @@ -634,6 +638,7 @@ if [[ "${monitorSize}" == "true" ]] && cat "${appPath}/.meteor/versions" | grep
logMessage "[Visualize bundle]"
logMessage "==============================="
start_time_ms=$(getTime)
export METEOR_INSPECT_CONTEXT="visualize-bundle"
visualizeMeteorAppBundle
waitMeteorApp
BundleSize=$(calculateMeteorAppBundleSize)
Expand All @@ -644,4 +649,4 @@ if [[ "${monitorSize}" == "true" ]] && cat "${appPath}/.meteor/versions" | grep
removeMeteorAppBundleVisualizer
fi

cleanup
cleanup