From 2d9beb4793d5f5906538f3e08ed1d48c9252a6b2 Mon Sep 17 00:00:00 2001 From: server Date: Wed, 15 Apr 2026 16:39:16 +0200 Subject: [PATCH] Add pack profile capture workflow --- docs/pack-profile-analysis.md | 27 ++++ scripts/capture-pack-profile.sh | 193 +++++++++++++++++++++++++++ scripts/compare-pack-profile-runs.sh | 176 ++++++++++++++++++++++++ 3 files changed, 396 insertions(+) create mode 100755 scripts/capture-pack-profile.sh create mode 100755 scripts/compare-pack-profile-runs.sh diff --git a/docs/pack-profile-analysis.md b/docs/pack-profile-analysis.md index c38524c..91126e9 100644 --- a/docs/pack-profile-analysis.md +++ b/docs/pack-profile-analysis.md @@ -40,6 +40,33 @@ python3 scripts/pack-profile-report.py \ m2p=logs/pack_profile.m2p.txt ``` +For repeated testing, use the wrapper scripts: + +```bash +./scripts/capture-pack-profile.sh \ + --runtime-root ../m2dev-client \ + --label pck +``` + +This stages the runtime into `build-mingw64-lld/bin`, runs the client with +`M2PACK_PROFILE=1`, then archives: + +- raw report: `build-mingw64-lld/bin/log/pack-profile-runs/