--- a/_gcdebug.py Thu Mar 11 16:49:59 2010 +0100
+++ b/_gcdebug.py Thu Mar 11 19:07:45 2010 +0100
@@ -22,7 +22,7 @@
def gc_info(countclasses,
ignoreclasses=IGNORE_CLASSES,
- viewreferrersclasses=(), showobjs=False):
+ viewreferrersclasses=(), showobjs=False, maxlevel=1):
gc.collect()
gc.collect()
counters = {}
@@ -45,7 +45,7 @@
except KeyError:
ocounters[key] = 1
if isinstance(obj, viewreferrersclasses):
- print ' ', obj, referrers(obj, showobjs)
+ print ' ', obj, referrers(obj, showobjs, maxlevel)
return counters, ocounters, gc.garbage