Author pitrou
Recipients benjamin.peterson, gregory.p.smith, pitrou
Date 2012-10-28.17:30:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351445420.88.0.605881847233.issue16351@psf.upfronthosting.co.za>
In-reply-to
Content
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}]
History
Date User Action Args
2012-10-28 17:30:21pitrousetrecipients: + pitrou, gregory.p.smith, benjamin.peterson
2012-10-28 17:30:20pitrousetmessageid: <1351445420.88.0.605881847233.issue16351@psf.upfronthosting.co.za>
2012-10-28 17:30:20pitroulinkissue16351 messages
2012-10-28 17:30:20pitroucreate