Skip to content

Profiler

python3 -m cProfile -o log.pstats -m my_module

Visualisation

gprof2dot (Dot Diagram)

sudo pacman -S graphviz
pip3 install gprof2dot
gprof2dot -f pstats log.pstats | dot -Tsvg -o log.svg