Skip to content

Add branch-misses and cache-misses to stats collected by perf stat #1392

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
merged 1 commit into from
Aug 11, 2022

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Aug 11, 2022

These metrics are quite fundamental in my opinion, and I think that adding them to perf stat shouldn't really affect a lot of things, since it already gathers a lot of other stats. Even though these metrics will probably be quite noisy, I think that they can still be useful in the dashboard.

branch-misses and cache-misses are in fact aliases for perf, which chooses some inner metric to calculate these. I think that these alises should be available on the perf runner.

@Kobzol Kobzol requested a review from Mark-Simulacrum August 11, 2022 11:01
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum left a comment

Choose a reason for hiding this comment

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

Confirmed availability on the runner.

I'll also note we have a finite amount of metrics available that require hardware counters (iirc, 5), but we're not hitting that limit quite yet -- only instructions, cycles, and now branch and cache misses are in that number I believe.

@Mark-Simulacrum Mark-Simulacrum merged commit fc9dd35 into master Aug 11, 2022
@Mark-Simulacrum Mark-Simulacrum deleted the metric-cache-branch-misses branch August 11, 2022 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants