Message174060
This patch adds a function named gc.get_stats() which returns a list of dictionaries containing per-generation statistics:
>>> import pprint, gc
>>> pprint.pprint(gc.get_stats())
[{'collected': 0, 'collections': 12, 'uncollectable': 0},
{'collected': 0, 'collections': 1, 'uncollectable': 0},
{'collected': 0, 'collections': 0, 'uncollectable': 0}] |
|
Date |
User |
Action |
Args |
2012-10-28 17:30:21 | pitrou | set | recipients:
+ pitrou, gregory.p.smith, benjamin.peterson |
2012-10-28 17:30:20 | pitrou | set | messageid: <1351445420.88.0.605881847233.issue16351@psf.upfronthosting.co.za> |
2012-10-28 17:30:20 | pitrou | link | issue16351 messages |
2012-10-28 17:30:20 | pitrou | create | |
|