🚴 Call stack profiler for Python. Shows you why your code is slow!
BSD-3-CLAUSE License
Bot releases are visible (Hide)
-c
, which allows profiling code directly from the command line, like python -c
. (#271)Profiler.write_html
, for writing HTML output to a file directly. (#266)-p flat
on the command line. This mode shows the heaviest frame as measured by self-time, which can be useful in some codebases. (#240)pstats
files. This is the file format used by cprofile in the stdlib. It's less detailed than pyinstrument profiles, but it's compatible with more tools. (#236)--show-all
option - pyinstrument will no longer remove Python-internal frames when this option is supplied. (#239)