aboutsummaryrefslogtreecommitdiff
path: root/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2021-10-07 21:13:14 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-10-07 21:13:14 +0200
commit7f631c493d04ba96e36975365532e2172fec367e (patch)
treefc0c0f81901f77f44c572536b7388babaf2d98ee /posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md
parent994c67d522b413fb3184376955a43d4a4f50d716 (diff)
downloadmitjafelicijan.com-7f631c493d04ba96e36975365532e2172fec367e.tar.gz
Added dithered images
Diffstat (limited to 'posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md')
-rw-r--r--posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md b/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md
index f2d4190..9a0540b 100644
--- a/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md
+++ b/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md
@@ -18,7 +18,7 @@ Before we begin there are some requirements. We will need to:
18 18
19If you are using MacOS you should check out [Profiling Viewer](http://www.profilingviewer.com/) or [MacCallGrind](http://www.maccallgrind.com/). 19If you are using MacOS you should check out [Profiling Viewer](http://www.profilingviewer.com/) or [MacCallGrind](http://www.maccallgrind.com/).
20 20
21![KCachegrind](/assets/python-profiling/kcachegrind.png) 21![KCachegrind](/assets/python-profiling/kcachegrind.png.dith.gif)
22 22
23We will be dividing this post into two main categories: 23We will be dividing this post into two main categories:
24 24
@@ -137,7 +137,7 @@ $ pyprof2calltree -i awesome_random_number.prof
137 137
138This file can be opened with visualizing tools listed above. In this case we will be using Profilling Viewer under MacOS. You can open image in new tab. As you can see from this example there is hierarchy of execution order of your code. 138This file can be opened with visualizing tools listed above. In this case we will be using Profilling Viewer under MacOS. You can open image in new tab. As you can see from this example there is hierarchy of execution order of your code.
139 139
140![Profilling Viewer](/assets/python-profiling/profiling-viewer.png) 140![Profilling Viewer](/assets/python-profiling/profiling-viewer.png.dith.gif)
141 141
142> Make sure you convert output of the cProfile output every time you want to refresh and take a look at your possible optimizations because cProfile updates .prof file every time browser hits the function. 142> Make sure you convert output of the cProfile output every time you want to refresh and take a look at your possible optimizations because cProfile updates .prof file every time browser hits the function.
143 143
@@ -160,7 +160,7 @@ $ snakeviz awesome_random_number.prof
160# shows visualized profile 160# shows visualized profile
161``` 161```
162 162
163![SnakeViz](/assets/python-profiling/snakeviz.png) 163![SnakeViz](/assets/python-profiling/snakeviz.png.dith.gif)
164 164
165Reddit user [ccharles](https://www.reddit.com/user/ccharles) suggested a better way for installing pip software by targeting user level instead of using sudo. 165Reddit user [ccharles](https://www.reddit.com/user/ccharles) suggested a better way for installing pip software by targeting user level instead of using sudo.
166 166