Skip to content

Conversation

@Mattias-Petersson
Copy link
Contributor

@Mattias-Petersson Mattias-Petersson commented Dec 14, 2025

Added an example for profiling an external crate diff locally. #1692 also mentions that the debuginfo-level = 1 should be mentioned, but that has been solved by a different commit and as such was not included here.

@rustbot
Copy link
Collaborator

rustbot commented Dec 14, 2025

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 Dec 14, 2025
@rustbot

This comment has been minimized.

@Mattias-Petersson
Copy link
Contributor Author

r? rustc-dev-guide

Copy link
Member

Choose a reason for hiding this comment

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

could you show this command instead

cargo run --release --bin collector

this would remove the need to indicate where the exe is located

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done now, apologize for taking so long. I have also updated the branch to be on the latest main. (Took a few commits to get right but now it should be proper :)) Does it look okay now? :)

Copy link
Member

Choose a reason for hiding this comment

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

I would not have bothered with updating the branch, unless there was a conflict with main. I have submitted #2712 to remove the bot messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perfect, thank you for the update :) There was no conflict with main, just how I am used to working to rebase onto the latest main branch. Good to know that it is not necessary!

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

Added an example for profiling an external crate diff locally. The
original issue  also mentions that the debuginfo-level = 1 should be
highlighted, but that has been solved by a different commit and as such
was not included here.
Changed so cargo specifies the binary collector, removing the need to
link to its local binary. Clarified that the SHAs should be from the
rustc-repo, but the command should be ran in the rustc-perf repo.
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