Skip to content
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

Don't leak PerfBench in @measure #42

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

topolarity
Copy link
Member

It's important not to leak these perf events, due to limited PMU resources on the system.

Without this fix, running the two README examples back-to-back on my system leads to:

┌ Warning: Some events are not measured
└ @ LinuxPerf ~/.julia/dev/LinuxPerf/src/LinuxPerf.jl:892
...
┌ instructions                   NA    0.0%
└ branch-misses                  NA    0.0%

It's important not to leak these perf events, due to limited PMU
resources on the system. Without this fix, running the two README
examples back-to-back on my system leads to:
```
┌ Warning: Some events are not measured
└ @ LinuxPerf ~/.julia/dev/LinuxPerf/src/LinuxPerf.jl:892
...
┌ instructions                   NA    0.0%
└ branch-misses                  NA    0.0%
```
@Zentrik Zentrik merged commit 34ca728 into JuliaPerf:master Sep 13, 2024
1 check passed
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