From 70baaeb4e78d12c329a03e929fd30d41730ed2b1 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 28 Aug 2022 05:39:44 +0200 Subject: Moved statis assets and converted all CSS to Tailwind --- ...017-04-21-profiling-python-web-applications-with-visual-tools.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md') diff --git a/content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md b/content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md index 3fe8a9d..466d838 100644 --- a/content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md +++ b/content/posts/2017-04-21-profiling-python-web-applications-with-visual-tools.md @@ -16,7 +16,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](/python-profiling/kcachegrind.png) +![KCachegrind](/assets/python-profiling/kcachegrind.png) We will be dividing this post into two main categories: @@ -135,7 +135,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](/python-profiling/profiling-viewer.png) +![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. @@ -158,7 +158,7 @@ $ snakeviz awesome_random_number.prof # shows visualized profile ``` -![SnakeViz](/python-profiling/snakeviz.png) +![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