Skip to content

Commit

Permalink
Make profiling commands more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 12, 2020
1 parent b0d6255 commit 8db2c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/python/performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ For example:

.. code:: bash
cat packages.json | python -m cProfile -o ocdskit.prof ocdskit/cli/__main__.py compile > /dev/null
gprof2dot -f pstats ocdskit.prof | dot -Tpng -o output.png
cat packages.json | python -m cProfile -o code.prof ocdskit/cli/__main__.py compile > /dev/null
gprof2dot -f pstats code.prof | dot -Tpng -o output.png
open output.png

0 comments on commit 8db2c68

Please sign in to comment.