Skip to content

Commit 2a04eb4

Browse files
Add GC stats to _PyDebugOffsets
1 parent 37c3d44 commit 2a04eb4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Include/internal/pycore_debug_offsets.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ typedef struct _Py_DebugOffsets {
222222
uint64_t size;
223223
uint64_t collecting;
224224
uint64_t frame;
225+
uint64_t generation_stats_size;
226+
uint64_t generation_stats;
225227
} gc;
226228

227229
// Generator object offset;
@@ -373,6 +375,8 @@ typedef struct _Py_DebugOffsets {
373375
.size = sizeof(struct _gc_runtime_state), \
374376
.collecting = offsetof(struct _gc_runtime_state, collecting), \
375377
.frame = offsetof(struct _gc_runtime_state, frame), \
378+
.generation_stats_size = sizeof(struct gc_stats), \
379+
.generation_stats = offsetof(struct _gc_runtime_state, generation_stats), \
376380
}, \
377381
.gen_object = { \
378382
.size = sizeof(PyGenObject), \

0 commit comments

Comments
 (0)