Is there any working memory profiler for Python3

11.8k views Asked by At

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 ?

3

There are 3 answers

0
Pankrat On

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

0
NoDataDumpNoContribution On

objgraph is compatible with Python 3

0
jmdana On

memprof works for Python3:

http://jmdana.github.io/memprof/

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