Browse Source

Profiling

pull/109/merge
Jure Šorn 1 year ago
parent
commit
696f46ad0f
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -2614,7 +2614,7 @@ Line # Hits Time Per Hit % Time Line Contents
``` ```
### Call and Flame Graphs ### Call and Flame Graphs
```bash
```text
$ pip3 install gprof2dot snakeviz $ pip3 install gprof2dot snakeviz
$ apt/brew install graphviz $ apt/brew install graphviz
$ python3 -m cProfile -o test.prof test.py $ python3 -m cProfile -o test.prof test.py

2
index.html

@ -2144,7 +2144,7 @@ Line # Hits Time Per Hit % Time Line Contents
4 1 487.0 487.0 68.9 b = set(range(10000)) 4 1 487.0 487.0 68.9 b = set(range(10000))
</code></pre></div> </code></pre></div>
<div><h3 id="callandflamegraphs">Call and Flame Graphs</h3><pre><code class="bash language-bash hljs">$ pip3 install gprof2dot snakeviz
<div><h3 id="callandflamegraphs">Call and Flame Graphs</h3><pre><code class="text language-text">$ pip3 install gprof2dot snakeviz
$ apt/brew install graphviz $ apt/brew install graphviz
$ python3 -m cProfile -o test.prof test.py $ python3 -m cProfile -o test.prof test.py
$ gprof2dot -f pstats test.prof | dot -Tpng -o test.png; xdg-open/open test.png $ gprof2dot -f pstats test.prof | dot -Tpng -o test.png; xdg-open/open test.png

Loading…
Cancel
Save