-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[BOLT] Match functions with pseudo probes #100446
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
Open
shawbyoung
wants to merge
13
commits into
users/shawbyoung/spr/main.bolt-match-functions-with-pseudo-probes
Choose a base branch
from
users/shawbyoung/spr/bolt-match-functions-with-pseudo-probes
base: users/shawbyoung/spr/main.bolt-match-functions-with-pseudo-probes
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+562
−334
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2ff3c68
[𝘀𝗽𝗿] initial version
shawbyoung 56b45b1
Comment
shawbyoung b851ca6
Was accessing wrong YamlBF Hash, fixed
shawbyoung 39ba717
Changed ordering of matching
shawbyoung 11af7f1
Added check for YamlBF.Used in pseudo probe function matching
shawbyoung 1c8b150
Less naive pseudo probe function matching: for each non-matching Yaml…
shawbyoung ad4d98f
Debug logging
shawbyoung 3bd1ec2
Pseudo probe function matchign
shawbyoung 15643b7
clang-format
shawbyoung 43b0577
rebase+update
shawbyoung 7b8783e
rebase
shawbyoung 57f46da
clang-format
shawbyoung 5dd720e
Avoid structured binding
shawbyoung 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1552,25 +1552,14 @@ Error PrintProgramStats::runOnFunctions(BinaryContext &BC) { | |
| 100.0 * BC.Stats.ExactMatchedSampleCount / BC.Stats.StaleSampleCount, | ||
| BC.Stats.ExactMatchedSampleCount, BC.Stats.StaleSampleCount); | ||
| BC.outs() << format( | ||
| "BOLT-INFO: inference found an exact pseudo probe match for %.2f%% of " | ||
| "BOLT-INFO: inference found pseudo probe match for %.2f%% of " | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to print this info if pseudo probes are not present? |
||
| "basic blocks (%zu out of %zu stale) responsible for %.2f%% samples" | ||
| " (%zu out of %zu stale)\n", | ||
| 100.0 * BC.Stats.NumPseudoProbeExactMatchedBlocks / | ||
| BC.Stats.NumStaleBlocks, | ||
| BC.Stats.NumPseudoProbeExactMatchedBlocks, BC.Stats.NumStaleBlocks, | ||
| 100.0 * BC.Stats.PseudoProbeExactMatchedSampleCount / | ||
| 100.0 * BC.Stats.NumPseudoProbeMatchedBlocks / BC.Stats.NumStaleBlocks, | ||
| BC.Stats.NumPseudoProbeMatchedBlocks, BC.Stats.NumStaleBlocks, | ||
| 100.0 * BC.Stats.PseudoProbeMatchedSampleCount / | ||
| BC.Stats.StaleSampleCount, | ||
| BC.Stats.PseudoProbeExactMatchedSampleCount, BC.Stats.StaleSampleCount); | ||
| BC.outs() << format( | ||
| "BOLT-INFO: inference found a loose pseudo probe match for %.2f%% of " | ||
| "basic blocks (%zu out of %zu stale) responsible for %.2f%% samples" | ||
| " (%zu out of %zu stale)\n", | ||
| 100.0 * BC.Stats.NumPseudoProbeLooseMatchedBlocks / | ||
| BC.Stats.NumStaleBlocks, | ||
| BC.Stats.NumPseudoProbeLooseMatchedBlocks, BC.Stats.NumStaleBlocks, | ||
| 100.0 * BC.Stats.PseudoProbeLooseMatchedSampleCount / | ||
| BC.Stats.StaleSampleCount, | ||
| BC.Stats.PseudoProbeLooseMatchedSampleCount, BC.Stats.StaleSampleCount); | ||
| BC.Stats.PseudoProbeMatchedSampleCount, BC.Stats.StaleSampleCount); | ||
| BC.outs() << format( | ||
| "BOLT-INFO: inference found a call match for %.2f%% of basic " | ||
| "blocks" | ||
|
|
||
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.