diff options
Diffstat (limited to 'src/experiments/profiling-python-web-applications-with-visual-tools.md')
| -rw-r--r-- | src/experiments/profiling-python-web-applications-with-visual-tools.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/experiments/profiling-python-web-applications-with-visual-tools.md b/src/experiments/profiling-python-web-applications-with-visual-tools.md index 58d85bf..cf7164c 100644 --- a/src/experiments/profiling-python-web-applications-with-visual-tools.md +++ b/src/experiments/profiling-python-web-applications-with-visual-tools.md | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | title: Profiling Python web applications with visual tools | 1 | title: Profiling Python web applications with visual tools |
| 2 | description: Missing link when debugging and profiling python web application | 2 | description: Missing link when debugging and profiling python web application |
| 3 | date: 2017-04-21 | 3 | date: 2017-04-21 |
| 4 | tags: experiment | 4 | type: post |
| 5 | hide: false | 5 | hide: false |
| 6 | ---- | 6 | ---- |
| 7 | 7 | ||
| @@ -16,7 +16,7 @@ Before we begin there are some requirements. We will need to: | |||
| 16 | 16 | ||
| 17 | If you are using MacOS you should check out [Profiling Viewer](http://www.profilingviewer.com/) or [MacCallGrind](http://www.maccallgrind.com/). | 17 | If you are using MacOS you should check out [Profiling Viewer](http://www.profilingviewer.com/) or [MacCallGrind](http://www.maccallgrind.com/). |
| 18 | 18 | ||
| 19 |  | 19 |  |
| 20 | 20 | ||
| 21 | We will be dividing this post into two main categories: | 21 | We will be dividing this post into two main categories: |
| 22 | 22 | ||
| @@ -135,7 +135,7 @@ $ pyprof2calltree -i awesome_random_number.prof | |||
| 135 | 135 | ||
| 136 | 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. | 136 | 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. |
| 137 | 137 | ||
| 138 |  | 138 |  |
| 139 | 139 | ||
| 140 | > 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. | 140 | > 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. |
| 141 | 141 | ||
| @@ -158,7 +158,7 @@ $ snakeviz awesome_random_number.prof | |||
| 158 | # shows visualized profile | 158 | # shows visualized profile |
| 159 | ``` | 159 | ``` |
| 160 | 160 | ||
| 161 |  | 161 |  |
| 162 | 162 | ||
| 163 | 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. | 163 | 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. |
| 164 | 164 | ||
