Improve the profiling helper

No need to mess with subprocesses, we can use the cProfile module to
just run one function.
1 file changed