Skip to content

Make DebugAllocator stack traces opt-in via -Ddebug-gpa-traces#10136

Merged
Anton-4 merged 1 commit into
mainfrom
debug-allocator-speedup-flag
Jul 14, 2026
Merged

Make DebugAllocator stack traces opt-in via -Ddebug-gpa-traces#10136
Anton-4 merged 1 commit into
mainfrom
debug-allocator-speedup-flag

Conversation

@Anton-4

@Anton-4 Anton-4 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Capturing a 6-frame stack trace on every allocation dominated Debug-build runtime (~80% of roc test wall time on macOS arm64) and was timing out the JSON CLI tests. Leaks are still detected without traces; traceless leak reports now print a hint to rebuild with -Ddebug-gpa-traces.

JsonStringEscapes 57s -> 3.6s, JsonEncodeRoundTrip 89s -> 11s, run-check-snapshots 70s -> 16s.

CI re-runs a failed step with -Ddebug-gpa-traces (via the new debug-gpa-retrace action) when its output contains leak reports, so the log gains allocation-site traces; the job still fails with the original exit code.

Capturing a 6-frame stack trace on every allocation dominated Debug-build
runtime (~80% of `roc test` wall time on macOS arm64) and was timing out
the JSON CLI tests. Leaks are still detected without traces; traceless
leak reports now print a hint to rebuild with -Ddebug-gpa-traces.

JsonStringEscapes 57s -> 3.6s, JsonEncodeRoundTrip 89s -> 11s,
run-check-snapshots 70s -> 16s.

CI re-runs a failed step with -Ddebug-gpa-traces (via the new
debug-gpa-retrace action) when its output contains leak reports, so the
log gains allocation-site traces; the job still fails with the original
exit code.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Anton-4
Anton-4 merged commit 813cb8c into main Jul 14, 2026
12 checks passed
@Anton-4
Anton-4 deleted the debug-allocator-speedup-flag branch July 14, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant