-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add performance analysis tool #167
Conversation
contrib/perf.cc
Outdated
static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid, | ||
int cpu, long group_fd, unsigned long flags) { | ||
long fd; | ||
fd = syscall(SYS_perf_event_open, hw_event, pid, cpu, group_fd, flags); |
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.
I wonder if we should not test that hw_event
is not empty.
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.
It's only called within this one file and guaranteed to be initialized correctly, so I don't think this is a concern.
Also as a reader/user I would like to have a readme with a few explanations, a few snippets. Ideally we would like to have a run job on the CI just to illustrate it :) Great job @michaelmior 😍 |
Any idea why CI is failing on Linux? (I'd expect this for macOS/Windows.) |
4cce79a
to
84a6540
Compare
@tony-go Fair enough with the suggestion of examples. I didn't see this with any existing tools which is why I didn't add anything. Any suggestion where such docs should live? |
Yeah, I would deal with README + CI runs for these kind of things in a separate PR if any, as we are not doing it for any of them. |
72be042
to
b20008d
Compare
Signed-off-by: Michael Mior <[email protected]>
@jviotti There were a couple formatting issues I corrected, but now all the CI failures are due to |
Ah, it's the benchmark comments. I guess they can't post if they are coming from PRs 😓 Let me merge as-is and I'll try to fix it later |
I made an upstream issue here: benchmark-action/github-action-benchmark#279. Maybe we are missing some setting or something. |
Strange! I would have said that would be because you need to manually specify a GitHub token, but you're already doing that. |
No description provided.