|
|
Related issue: #8837.
|
|
|
|
|
|
## Python libraries
|
|
|
|
|
|
* [resource](https://docs.python.org/3/library/resource.html): provides basic mechanisms for measuring and controlling system resources utilized by a program.
|
|
|
* [tracemalloc](https://pytracemalloc.readthedocs.io/): a debug tool to trace memory blocks allocated by Python.
|
|
|
* [perf](https://github.com/haypo/perf): a toolkit to write, run and analyze benchmarks.
|
|
|
* [pytest-memory-usage](https://github.com/eli-b/pytest-memory-usage): reports test memory usage, and adds memory bounds.
|
|
|
* [memory_profiler](https://pypi.python.org/pypi/memory_profiler): a module for monitoring memory usage of a python program.
|
|
|
* [guppy - heapy](http://guppy-pe.sourceforge.net/#Heapy): support debugging and optimization regarding memory related issues in Python programs.
|
|
|
|
|
|
## Notes
|
|
|
|
|
|
* (2013) [From the creator of memory_profiler ](http://fa.bianp.net/blog/2013/different-ways-to-get-memory-consumption-or-lessons-learned-from-memory_profiler/), resource is a bit faster than psutil, but possibly less accurate. Spawning `ps` is some orders of magnitude slower.
|
... | ... | |