-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Stabilize -Zprofile-sample-use
#155942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rust-bors
merged 9 commits into
rust-lang:main
from
zamazan4ik:stabilize-profile-sample-use-and-debug-info-for-profiling
Aug 17, 2026
Merged
Stabilize -Zprofile-sample-use
#155942
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f6ee72b
doc: update PGO guide with Sample-based PGO information
84f2d63
doc: move option description from Unstable book to the proper place
9c33952
fix: make stabilization preparation for the flags
6978fab
doc: a attempt to add PGO-related UI tests
f19a92f
doc: add more information about the flags
zamazan4ik 4cc83fd
doc: apply 80 width limit to the PGO guide
167a496
doc: add more information about debuginfo-for-profiling
0570f86
fix: remove debuginfo-for-profiling from stabilization
01a5987
doc: add a small note about unstable flag
zamazan4ik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't really part of the stabilization. Both the old and new descriptions are kind of vague to me. Do you still want to keep the updated text? (fine by me if so)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I would like to keep this small update in this PR even if it's not directly related for the stabilization. By this change, I wanted to keep the flag description in sync with the same flag for Clang - https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-fdebug-info-for-profiling . Since PGO (and especially Sampling PGO) coverage across the ecosystem is really small, I wanted to reduce any kind of difference between two compilers in a place where they describe the same thing - so less potential questions would be raised by people in the future.
Please don't get me wrong - I am also not that happy with this explanation. But I think it's better than we had before. I hope in the future we will try to get rid of this flag completely (and integrate into some debuginfo level by default, as was previously lightly discussed somewhere in Zulip) but it's not yet done.