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

[FR] Easy attaching perf from within the library #1889

Open
DenisYaroshevskiy opened this issue Dec 17, 2024 · 0 comments
Open

[FR] Easy attaching perf from within the library #1889

DenisYaroshevskiy opened this issue Dec 17, 2024 · 0 comments

Comments

@DenisYaroshevskiy
Copy link

Is your feature request related to a problem? Please describe.

Sometimes benchmarks have a heavy setup which affects counters/recordings.
It would be nice to easily skip heavy initialization when using perf.

Describe the solution you'd like

folly benchmarks has --bm_perf_args which will start perf after doing a first iteration of a benchmark.
Running the first iteration of the benchmark allows to skip initialization of statics.

For example in folly benchmarks I can run --bm_perf_args=record or --bm_perf_args=stat.

That works ok but isn't very generic. Maybe you know something more generic?

Describe alternatives you've considered
It is possible to do this through external tools but is very annoying.

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

No branches or pull requests

1 participant