Different ways to get memory consumption or lessons learned from ``memory_profiler``
As part of the development of memory_profiler I've tried several ways to get memory usage of a program from within Python. In this post I'll describe the different alternatives I've tested.
The psutil library
psutil is a python library that provides an interface for retrieving information on running processes. It …