mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
GH-140638: Add a GC "candidates" stat (GH-141814)
This commit is contained in:
parent
425fd85ca3
commit
227b9d326e
7 changed files with 50 additions and 20 deletions
|
|
@ -358,10 +358,11 @@ gc_get_stats_impl(PyObject *module)
|
|||
for (i = 0; i < NUM_GENERATIONS; i++) {
|
||||
PyObject *dict;
|
||||
st = &stats[i];
|
||||
dict = Py_BuildValue("{snsnsnsd}",
|
||||
dict = Py_BuildValue("{snsnsnsnsd}",
|
||||
"collections", st->collections,
|
||||
"collected", st->collected,
|
||||
"uncollectable", st->uncollectable,
|
||||
"candidates", st->candidates,
|
||||
"duration", st->duration
|
||||
);
|
||||
if (dict == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue