Skip to content

Profiling Python code#

Name Scope web framework middleware VSCode Extension
scalene cpu, gpu, memory, duration partially yes
cProfile
(Python native, function level only and cli only)
duration no no
VizTracer duration unknown yes
profyle
(based on Viztracer)
duration yes no
pyinstrument duration yes no
py-spy duration no no
yappi
(cli only)
duration unknown no
austin duration unknown yes

Interesting reading:

Comments