|
|
## Profiling time
|
|
|
## Articles
|
|
|
|
|
|
- https://pythonfiles.wordpress.com/2017/06/01/hunting-performance-in-python-code-part-3/
|
|
|
|
|
|
## Profiling CPU
|
|
|
|
|
|
### With cProfile
|
|
|
|
... | ... | @@ -11,6 +15,9 @@ apt install qcachegrind |
|
|
python -m cProfile -o out.cprof script.py args...
|
|
|
pyprof2calltree -k -i out.cprof
|
|
|
```
|
|
|
### With pprofile
|
|
|
|
|
|
https://github.com/vpelletier/pprofile
|
|
|
|
|
|
### With line_profiler
|
|
|
|
... | ... | @@ -28,3 +35,7 @@ mprof plot |
|
|
```
|
|
|
|
|
|
Optionally decorate some functions with `@profile`, without importing the decorator, as explained in the [README](https://github.com/pythonprofilers/memory_profiler). You'll see the memory usage of those functions explicitly on the chart.
|
|
|
|
|
|
## Misc
|
|
|
|
|
|
- https://github.com/nvdv/vprof |
|
|
\ No newline at end of file |