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: <[email protected]> |
| 2012-10-28 17:30:20 | pitrou | link | issue16351 messages |
| 2012-10-28 17:30:20 | pitrou | create | |
|