Skip to content

Fix Cachegrind diff output file names.#2383

Merged
Kobzol merged 1 commit intorust-lang:masterfrom
nnethercote:fix-cgout
Feb 5, 2026
Merged

Fix Cachegrind diff output file names.#2383
Kobzol merged 1 commit intorust-lang:masterfrom
nnethercote:fix-cgout

Conversation

@nnethercote
Copy link
Contributor

When you run a Cachegrind diff via profile_local it produces a mix of cgout files (raw output) and cgann files (processed output). A couple of the files have cgout prefixes when they should have cgann prefixes, e.g.:

cgout-diff-794495e2b4a1353cf7b66ffc55f0e755490af2cc-540561de691be003ef1a9f9bf263df00e951622f-tuple-stress-Check-IncrUnchanged
cgout-diff-latest

This commit fixes the problem. The fix is a bit clumsy, because the existing code is a bit clumsy and I didn't have the patience to do the big refactor required to fix it more nicely.

When you run a Cachegrind diff via `profile_local` it produces a mix of
`cgout` files (raw output) and `cgann` files (processed output). A
couple of the files have `cgout` prefixes when they should have `cgann`
prefixes, e.g.:
```
cgout-diff-794495e2b4a1353cf7b66ffc55f0e755490af2cc-540561de691be003ef1a9f9bf263df00e951622f-tuple-stress-Check-IncrUnchanged
cgout-diff-latest
```
This commit fixes the problem. The fix is a bit clumsy, because the
existing code is a bit clumsy and I didn't have the patience to do the
big refactor required to fix it more nicely.
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I vaguely remember this being annoying, yes 😆 The wonders of abstraction. Well, I think it's a good enough fix for now. Thanks!

@Kobzol Kobzol added this pull request to the merge queue Feb 5, 2026
Merged via the queue into rust-lang:master with commit f1d8469 Feb 5, 2026
14 checks passed
@nnethercote nnethercote deleted the fix-cgout branch February 5, 2026 09:07
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.

2 participants