|
|
## Profiling time
|
|
|
|
|
|
### With cProfile
|
|
|
|
|
|
```sh
|
|
|
pip install pyprof2calltree
|
|
|
apt install qcachegrind
|
... | ... | @@ -10,6 +12,10 @@ python -m cProfile -o out.cprof script.py args... |
|
|
pyprof2calltree -k -i out.cprof
|
|
|
```
|
|
|
|
|
|
### With line_profiler
|
|
|
|
|
|
https://github.com/rkern/line_profiler
|
|
|
|
|
|
## Profiling memory
|
|
|
|
|
|
Use [memory_profiler](https://github.com/pythonprofilers/memory_profiler)
|
... | ... | |