Add heap_size to stats

This commit is contained in:
Sergey Miryanov 2026-05-01 00:28:05 +05:00
parent b6ec9924fb
commit 2281499513
2 changed files with 5 additions and 1 deletions

View file

@ -181,6 +181,8 @@ struct gc_generation {
struct gc_generation_stats {
PyTime_t ts_start;
PyTime_t ts_stop;
/* heap_size on the start of the collection */
Py_ssize_t heap_size;
/* total number of collections */
Py_ssize_t collections;
/* total number of collected objects */