Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add GC stats to _PyDebugOffsets
  • Loading branch information
sergey-miryanov committed Mar 27, 2026
commit 2a04eb4c899c9809b038e97a12d9d692d05a59fa
4 changes: 4 additions & 0 deletions Include/internal/pycore_debug_offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ typedef struct _Py_DebugOffsets {
uint64_t size;
uint64_t collecting;
uint64_t frame;
uint64_t generation_stats_size;
uint64_t generation_stats;
} gc;

// Generator object offset;
Expand Down Expand Up @@ -373,6 +375,8 @@ typedef struct _Py_DebugOffsets {
.size = sizeof(struct _gc_runtime_state), \
.collecting = offsetof(struct _gc_runtime_state, collecting), \
.frame = offsetof(struct _gc_runtime_state, frame), \
.generation_stats_size = sizeof(struct gc_stats), \
.generation_stats = offsetof(struct _gc_runtime_state, generation_stats), \
}, \
.gen_object = { \
.size = sizeof(PyGenObject), \
Expand Down