From f8dbff557af75c0347f271cf5a1a557eea9f9eed Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 24 Oct 2018 22:17:03 +0000 Subject: add new debug_counters for GC. * debug_counter.h: add new debug counters to count GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- debug_counter.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'debug_counter.h') 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 -- cgit v1.2.3