As the meliae library keeps giving us trouble, we can switch over to the built-in gc library for object leak inspection. The following snippet will already do the dirty work:
import gc, sys
obj_dump = gc.get_objects()
out = {}
for obj in obj_dump:
out[type(obj)] = out.get(type(obj), 0) + 1
print >> sys.stderr, out
As the meliae library keeps giving us trouble, we can switch over to the built-in gc library for object leak inspection. The following snippet will already do the dirty work:
This will produce something like: