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

Use perfs output switching capability #103

Closed
wants to merge 1 commit into from
Closed

Conversation

d3dave
Copy link
Contributor

@d3dave d3dave commented Jun 7, 2021

Description

Currently for each snapshot we execute perf on sleep {duration}. This PR replaces this with running perf without stopping and using the output switching capability to dump the recorded events on each snapshot.

Motivation and Context

This should avoid enabling/disabling of perf events every duration step for each core.

How Has This Been Tested?

Ran locally on Ubuntu 18 VM. Output files look ok.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have added tests for new logic.

@d3dave d3dave added the enhancement New feature or request label Jun 7, 2021
@d3dave d3dave requested a review from Jongy June 7, 2021 09:44
@d3dave
Copy link
Contributor Author

d3dave commented Jun 7, 2021

I combined some misc changes in the same commit. I can split them if you prefer.

@d3dave d3dave force-pushed the continuous-perf branch from 76a0b9a to 8b28cbc Compare June 7, 2021 10:04
@Jongy
Copy link
Contributor

Jongy commented Jun 7, 2021

I combined some misc changes in the same commit. I can split them if you prefer.

I don't mind, I can CR as a whole.

But please rebase before I start


def _dump(self) -> Path:
assert self.process is not None, "profiling not started!"
self.process.send_signal(signal.SIGUSR2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Document what this does (and maybe add a link to the relevant perf docs)

@Jongy Jongy mentioned this pull request Jun 20, 2021
6 tasks
@Jongy
Copy link
Contributor

Jongy commented Jul 18, 2021

Superseded by #113 .

@Jongy Jongy closed this Jul 18, 2021
@Jongy Jongy deleted the continuous-perf branch July 18, 2021 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants