pyperf icon indicating copy to clipboard operation
pyperf copied to clipboard

Support collecting cProfile data from a benchmark

Open mdboom opened this issue 2 years ago • 1 comments

While this wouldn't be useful for absolute timing (benchmarking), it's sometimes handy to generate a profile from a benchmark to understand where the time is being spent. It's currently possible to do this by hacking up a benchmark script, but it would be better to make it as simple as:

python run_benchmark.py --profile output.profile

mdboom avatar Jun 03 '22 13:06 mdboom

I can't self-assign, but to be clear, I'm also offering to do this work ;)

mdboom avatar Jun 03 '22 13:06 mdboom