Take the 2-minute tour ×

In Python 2 there's a couple of tools but everything seems to be old and out-of-dated.

I've found PySizer and Heapy but everything seems to be Python2 oriented and would take a lot of effort to port.

objgraph is interesting but still not a fully working profiler

Which tool are using ?

share|improve this question
btw, the sys.getsizeof function mentioned in stackoverflow.com/questions/4416654/… works for Python 3.2 as well –  hvr Oct 21 '11 at 21:48

3 Answers 3

Pympler is a Python memory profiler that is compatible with both Python 2.x and Python3.x.

share|improve this answer

memprof works for Python3:


It will log and plot the memory footprint of all your variables.

share|improve this answer

objgraph is compatible with Python 3

share|improve this answer

Your Answer


