Is there any working memory profiler for Python3 [closed]
Asked Answered
E

3

35

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 ?

Eldwun answered 13/10, 2011 at 18:27 Comment(3)
btw, the sys.getsizeof function mentioned in #4417154 works for Python 3.2 as wellAquarium
Possible duplicate of How do I profile memory usage in Python?Inquisitionist
YiFei Zhu has ported Guppy-PE/Heapy to Python 3 creating Guppy3. It can be reached here: github.com/zhuyifei1999/guppy3Barranca
S
12

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

Sciential answered 22/10, 2011 at 12:16 Comment(0)
O
4

objgraph is compatible with Python 3

Opuntia answered 28/5, 2014 at 12:29 Comment(0)
R
2

memprof works for Python3:

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

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

Rechaba answered 18/10, 2013 at 11:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.