A module for monitoring memory usage of a python programhttp://pypi.python.org/pypi/memory_profiler
This is a python module for monitoring memory consumption of a process
as well as line-by-line analysis of memory consumption for python
programs. It is a pure python module and has the psutil
module as optional (but highly recommended) dependencies.