-
Notifications
You must be signed in to change notification settings - Fork 148
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
Use hardware performance counter data for the detailed/self-profile data view #1345
Comments
Also, assuming it (still) works, I recommend |
Oh dear, it won't work yet, it's broken without adding |
Opened rust-lang/rust#98471 to update measureme in rustc to resolve that. |
Merged. |
I have tried to implement this, but I don't know how to actually read the HW counter data from the output of |
I think profiles either contain timestamps or instructions:u values, not both. Did you check that |
To be honest, I'm not really sure how to recognize that. It's true that when I turn on HW counters, the times seem to be diferent by orders of magnitude. So the counter values just get stored in the nanos attribute of time? |
The PR introducing the feature in rustc did mention this as somewhat backwards compatible for tools, until they adapt to the new counters. Maybe summarize is in that category. |
Yeah I saw that, but somehow I expected that this adoption has already happened in these 3 years 😅 Maybe not, I'll check how the tools work. |
Yeah it seems to just output time as nanoseconds. |
Now that rustc supports using HPC data in
-Zself-profile
(rust-lang/rust#78781), it would be great to use this support on perf.rlo as well. Many of our smaller benchmarks don't run long enough for thestd::time::Instant
based profiling to work reliably which makes it hard to interpret the data when it doesn't really match the results reported on the summary page for a particular benchmark. By using the HPC data, hopefully this will improve the accuracy of detailed data view.The text was updated successfully, but these errors were encountered: