Skip to content

Commit c7c16de

Browse files
author
Armand Foucault
committed
Write a line about --flame and add an image
1 parent 375eb02 commit c7c16de

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ afterward will plot the result, making plots (using matplotlib) similar to these
150150
:target: https://github.com/scikit-learn/scikit-learn/pull/2248
151151
:height: 350px
152152

153+
or, with the ``--flame`` option (``mprof plot --flame``):
154+
155+
.. image:: images/flamegraph.py
156+
:height: 350px
157+
153158
A discussion of these capabilities can be found `here <http://fa.bianp.net/blog/2014/plot-memory-usage-as-a-function-of-time/>`_.
154159

155160
.. warning:: If your Python file imports the memory profiler `from memory_profiler import profile` these timestamps will not be recorded. Comment out the import, leave your functions decorated, and re-run.

images/flamegraph.png

60.6 KB
Loading

0 commit comments

Comments
 (0)