
Python-memprof logs the memory used by variables during the execution of decorated methods. It creates a report in a text file and you can plot the result using "mp_plot", which is part of the python-memprof package.
This package contains the Python 3 version of memprof.