Skip to content

Add heaptrack memory profiling docs - #3001

Open
laundmo wants to merge 4 commits into
rust-lang:mainfrom
laundmo:rustc-heaptrack-wrapper
Open

Add heaptrack memory profiling docs#3001
laundmo wants to merge 4 commits into
rust-lang:mainfrom
laundmo:rustc-heaptrack-wrapper

Conversation

@laundmo

@laundmo laundmo commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

While working on rust-lang/rust#162031 i've been primarily using Heaptrack.

Alas, its not as easy as just running cargo with it. First, its nice to have rust symbol demangling which needs some work, and then it needs a RUSTC_WRAPPER script because it doesn't work on child processes.

Since thats a bit of a hassle, i thought documenting it would be nice.

@rustbot

rustbot commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR. If you have write access, feel free to merge this PR if it does not need reviews. You can request a review using r? rustc-dev-guide or r? <username>.

@rustbot rustbot added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Sep 3, 2026
Comment on lines +4 to +12
with [heaptrack](https://invent.kde.org/sdk/heaptrack) on linux.

## Installing heaptrack

While heaptrack has support for demangling rust symbols,
the last full release is older than this support.

That means either you have to compile heaptrack from
its [git repo](https://invent.kde.org/sdk/heaptrack/),

@reddevilmidzy reddevilmidzy Sep 4, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since the two links overlap, it might be better to change it so that one references the other.

with [heaptrack][heaptrack repo] on linux.
...

its [git repo][heaptrack repo],

...

[heaptrack repo]: https://invent.kde.org/sdk/heaptrack/

View changes since the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants