From b0b8f7ffbf563f341745e86bfe85f080f6a8db27 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 8 Dec 2021 11:59:37 +0100 Subject: A bunch of changes --- ...017-04-21-profiling-python-web-applications-with-visual-tools.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md') 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: If you are using MacOS you should check out [Profiling Viewer](http://www.profilingviewer.com/) or [MacCallGrind](http://www.maccallgrind.com/). -![KCachegrind](/assets/python-profiling/kcachegrind.png.dith.gif) +![KCachegrind](/assets/python-profiling/kcachegrind.png) We will be dividing this post into two main categories: @@ -137,7 +137,7 @@ $ pyprof2calltree -i awesome_random_number.prof This 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. -![Profilling Viewer](/assets/python-profiling/profiling-viewer.png.dith.gif) +![Profilling Viewer](/assets/python-profiling/profiling-viewer.png) > 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. @@ -160,7 +160,7 @@ $ snakeviz awesome_random_number.prof # shows visualized profile ``` -![SnakeViz](/assets/python-profiling/snakeviz.png.dith.gif) +![SnakeViz](/assets/python-profiling/snakeviz.png) Reddit user [ccharles](https://www.reddit.com/user/ccharles) suggested a better way for installing pip software by targeting user level instead of using sudo. -- cgit v1.2.3