--- a/_gcdebug.py Tue Feb 10 12:18:38 2015 +0100
+++ b/_gcdebug.py Tue Feb 10 14:37:51 2015 +0100
@@ -63,7 +63,8 @@
ocounters[key] = 1
if isinstance(obj, viewreferrersclasses):
print ' ', obj, referrers(obj, showobjs, maxlevel)
- return counters, ocounters, gc.garbage
+ garbage = [repr(obj) for obj in gc.garbage]
+ return counters, ocounters, garbage
def referrers(obj, showobj=False, maxlevel=1):
--- a/sobjects/services.py Tue Feb 10 12:18:38 2015 +0100
+++ b/sobjects/services.py Tue Feb 10 14:37:51 2015 +0100
@@ -100,7 +100,7 @@
results['lookupclasses'] = values
values = sorted(ocounters.iteritems(), key=lambda x: x[1], reverse=True)[:nmax]
results['referenced'] = values
- results['unreachable'] = len(garbage)
+ results['unreachable'] = garbage
return results