Added a summary count, and line numbers to output to help compare details
svn: r11655
This commit is contained in:
parent
6c0d015ded
commit
31512878f1
@ -92,8 +92,11 @@ class Leak(Tool.Tool,ManagedWindow.ManagedWindow):
|
|||||||
mylist.append(str(each))
|
mylist.append(str(each))
|
||||||
except DBError:
|
except DBError:
|
||||||
mylist.append('db.DB instance at %s' % id(each))
|
mylist.append('db.DB instance at %s' % id(each))
|
||||||
self.ebuf.set_text(_("Uncollected objects:\n\n")
|
self.ebuf.set_text(_("%d uncollected objects:\n\n" % len(mylist)))
|
||||||
+ '\n\n'.join(mylist))
|
count = 1
|
||||||
|
for line in mylist:
|
||||||
|
self.ebuf.insert_at_cursor(" %d) %s\n" % (count, line))
|
||||||
|
count += 1
|
||||||
else:
|
else:
|
||||||
self.ebuf.set_text(_("No uncollected objects\n")
|
self.ebuf.set_text(_("No uncollected objects\n")
|
||||||
+ str(gc.get_debug()))
|
+ str(gc.get_debug()))
|
||||||
|
Loading…
Reference in New Issue
Block a user