View vmprof profiles in Firefox Profiler by converting them:
python -m vmprofconvert -convert profile.prof
python -m vmprofconvert -convert profile.zip
or run vmprof directly:
python -m vmprofconvert -run yourcode.py <args>
optional arguments:
-jitlog <profile.jit>
use jitlog data (only for converting vmprof data)
-pypylog <profile.pypylog>
use pypylog data (only for converting vmprof data)
--zip
export sharable zip (only for running vmprof)
--nobrowser
dont open firefox profiler
--nonative
disable native profiling (only for running vmprof)
--nolines
disable line profiling (only for running vmprof)
cpuburn code can be found here
$ PYPYLOG=profile.pypylog python -m vmprof --jitlog -o profile.prof <remaining vmprof args...>
...
$ python -m vmprofconvert -convert profile.prof -jitlog profile.prof.jit -pypylog profile.pypylog
- supports CPython and PyPy