colorcurvature opened this issue on Nov 02, 2011 · 3 posts
colorcurvature posted Wed, 02 November 2011 at 4:47 PM
Hi, I noticed memory goes down when I execute my script, and it doesnt return. The more often its executed, the more the memory goes down.
What I did was this:
def _dbg_dump_gc( ):
#l = []
#l.append(l)
gc.set_debug(gc.DEBUG_SAVEALL)
print gc.collect( )
print gc.collect( )
print 'leaks:'
for i in gc.garbage:
pprint.pprint (i)
print 'end of leaks.'
del gc.garbage[:]
but that isnt printing anything except the gc.collect return values, which are 0, unless I decomment that part with an intentional hanging self-referring list.
but that isnt evening printing the global variables. I wonder why. maybe some more flags have to be set?
thanks a lot!
col