メモ
guppy
Guppy-PE -- A Python Programming Environment
python setup.py build
python setup.py install
from guppy import hpy
h = hpy()
N = 100000
class Hoge(object):
def __init__(self):
self.x = 1
self.y = 1
self.z = 1
self.a = 1
self.b = 1
self.c = 1
x = [Hoge() for x in range(N)]
print h.heap()
ref: http://d.hatena.ne.jp/nishiohirokazu/20121013/1350093216
コメント