Is there any working memory profiler for Python3

2019-01-11 06:33发布

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条回答
【Aperson】
2楼-- · 2019-01-11 06:43

memprof works for Python3:

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

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

查看更多
Bombasti
3楼-- · 2019-01-11 06:55

objgraph is compatible with Python 3

查看更多
时光不老,我们不散
4楼-- · 2019-01-11 06:56

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

查看更多
登录 后发表回答