From 696f46ad0f43b91112b3a4e930b0c62db53f1a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 30 Jun 2023 22:24:46 +0200 Subject: [PATCH] Profiling --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e36166..1079fea 100644 --- a/README.md +++ b/README.md @@ -2614,7 +2614,7 @@ Line # Hits Time Per Hit % Time Line Contents ``` ### Call and Flame Graphs -```bash +```text $ pip3 install gprof2dot snakeviz $ apt/brew install graphviz $ python3 -m cProfile -o test.prof test.py diff --git a/index.html b/index.html index 4888989..5364f92 100644 --- a/index.html +++ b/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)) -

Call and Flame Graphs

$ pip3 install gprof2dot snakeviz
+

Call and Flame Graphs

$ pip3 install gprof2dot snakeviz
 $ apt/brew install graphviz
 $ python3 -m cProfile -o test.prof test.py
 $ gprof2dot -f pstats test.prof | dot -Tpng -o test.png; xdg-open/open test.png