Python vprof

From wikinotes
Revision as of 18:33, 24 February 2019 by Will (talk | contribs) (→‎Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

vprof is my new favourite profiler. I think I actually like it more than runsnakerun.

Usage

vprof -c cmh "file.py --cmd 1"   # run profiler
-c options
c cpu flame-graph (unavailable on windows)
m memory-graph
p python profiler
h code heatmap