ci(alloc): add formatter to just allocs#21957
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
This PR extends the memory-allocation tracking task (cargo allocs / just allocs) to include oxc_formatter, so formatter allocations are captured alongside parser/semantic/transformer/minifier metrics.
Changes:
- Add
oxc_formatterto the allocation tracking run, including a dedicated warm-up and measured pass. - Generate and write a new snapshot file:
allocs_formatter.snap. - Add
oxc_formatteras a dependency oftasks/track_memory_allocations.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tasks/track_memory_allocations/src/lib.rs | Adds formatter warm-up + measurement by re-parsing with formatter-specific parse options and snapshotting results. |
| tasks/track_memory_allocations/allocs_formatter.snap | New snapshot capturing formatter allocation stats for the “complicated” fixture set. |
| tasks/track_memory_allocations/Cargo.toml | Adds oxc_formatter workspace dependency. |
| Cargo.lock | Records the new transitive dependency for the task crate. |
Merging this PR will not alter performance
Comparing Footnotes
|
6ec43fc to
807e625
Compare

Add formatter to
just allocs(measure allocations).