9

Possible Duplicate:
Is there any working memory profiler for Python3

I'd like to know how much memory used for my objects. I used guppy for this before, but now I work with python 3, but guppy works under python 2. What can I use for memory profiling in python 3? (I makes standalone application not web-based)

Community
  • 1
  • 1
monax
  • 209
  • 2
  • 6

1 Answers1

8

objgraph works in Python 3

dbr
  • 165,801
  • 69
  • 278
  • 343
  • 4
    I found [pympler](http://packages.python.org/Pympler/) for getting size of objects. With objgraph it can be use like this - pympler.asizeof.asizeof(objgraph.by_type('set')) – monax Jan 16 '12 at 06:15