Convert vmprof profile data into flamegraph format [1].
[1] http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html
- Download flamegraph.pl and put it in PATH directory.
- pip install vmprof-flamegraph
$ vmprof-flamegraph.py --prune_level=40 --prune_percent=0.1 | flamegraph.pl > output.svg
Building Python document with Sphinx.
https://github.com/methane/vmprof-flamegraph/blob/master/examples/sphinx-prof.svg