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-12-08 11:59:37 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-12-08 11:59:37 +0100
commitb0b8f7ffbf563f341745e86bfe85f080f6a8db27 (patch)
treec56029d1d0939d899a622c60309dfccd0b84e7bb /posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md
parent2a373fcbb6dc6eb864f1c9f3351efe4b5ed2abf0 (diff)
downloadmitjafelicijan.com-b0b8f7ffbf563f341745e86bfe85f080f6a8db27.tar.gz
A bunch of changes
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 9a0540b..f2d4190 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.dith.gif) 21![KCachegrind](/assets/python-profiling/kcachegrind.png)
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.dith.gif) 140![Profilling Viewer](/assets/python-profiling/profiling-viewer.png)
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.dith.gif) 163![SnakeViz](/assets/python-profiling/snakeviz.png)
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