You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous workflow exported NODE_OPTIONS=--cpu-prof and ran `pnpm run
prod`, producing 5 cpuprofile files (one per Node process in the
pnpm → cross-env → tsx chain). The pgrep-based SUT pid capture matched
the tsx wrapper rather than the actual server.ts process — analysis
of run 25956220071 showed pid 2636 (pnpm) blocked in spawnSync for
113s while the recorded sut pid 2684 (tsx) was 99.8% idle.
Invoke node directly with the same args the prod script uses
(`node --require tsx/cjs node/server.ts`) under --cpu-prof, set
NODE_ENV inline, and record the SUT pid via `$!` so there's exactly
one process to profile and stop. The earlier --cpu-prof-name pid-suffix
fix from PR #110 is retained.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments