pyperf
pyperf copied to clipboard
Support collecting cProfile data from a benchmark
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
I can't self-assign, but to be clear, I'm also offering to do this work ;)