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
|
|
@ -179,6 +179,8 @@ struct gc_collection_stats {
|
|||
Py_ssize_t collected;
|
||||
/* total number of uncollectable objects (put into gc.garbage) */
|
||||
Py_ssize_t uncollectable;
|
||||
// Total number of objects considered for collection and traversed:
|
||||
Py_ssize_t candidates;
|
||||
// Duration of the collection in seconds:
|
||||
double duration;
|
||||
};
|
||||
|
|
@ -191,6 +193,8 @@ struct gc_generation_stats {
|
|||
Py_ssize_t collected;
|
||||
/* total number of uncollectable objects (put into gc.garbage) */
|
||||
Py_ssize_t uncollectable;
|
||||
// Total number of objects considered for collection and traversed:
|
||||
Py_ssize_t candidates;
|
||||
// Duration of the collection in seconds:
|
||||
double duration;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue