Profiling with pyinstrument
After having used the built-in tracing profiler cProfile for a while now, I came across the statistical (sampling) profiler pyinstrument.
A statistical profiler does not influence the runtime of the program as much
as a tracing profiler as cProfile
does.
Additionally, pyinstrument
shows the result in a different way from cProfile
.
So in this article, I will be profiling my repotool
program.
This program helps me maintain a mirror of FreeBSD packages that I use.