New submission from Antoine Pitrou:

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}]

----------
components: Library (Lib)
files: gc_get_stats.patch
keywords: patch
messages: 174060
nosy: benjamin.peterson, gregory.p.smith, pitrou
priority: low
severity: normal
stage: patch review
status: open
title: Add a function to get GC statistics
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file27768/gc_get_stats.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16351>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to