diff options
Diffstat (limited to 'debug_counter.h')
-rw-r--r-- | debug_counter.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debug_counter.h b/debug_counter.h index 3c5d693fe6..b29d5ef560 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -101,6 +101,25 @@ RB_DEBUG_COUNTER(lvar_set) RB_DEBUG_COUNTER(lvar_set_dynamic) RB_DEBUG_COUNTER(lvar_set_slowpath) +/* GC counts: + * + * * count: simple count + * * _minor: minor gc + * * _major: major gc + * * other suffix is corresponding to last_gc_info or + * gc_profile_record_flag in gc.c. + */ +RB_DEBUG_COUNTER(gc_count) +RB_DEBUG_COUNTER(gc_minor_newobj) +RB_DEBUG_COUNTER(gc_minor_malloc) +RB_DEBUG_COUNTER(gc_minor_method) +RB_DEBUG_COUNTER(gc_minor_capi) +RB_DEBUG_COUNTER(gc_minor_stress) +RB_DEBUG_COUNTER(gc_major_nofree) +RB_DEBUG_COUNTER(gc_major_oldgen) +RB_DEBUG_COUNTER(gc_major_shady) +RB_DEBUG_COUNTER(gc_major_force) + /* object allocation counts: * * * obj_newobj: newobj counts |