diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-24 22:17:03 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-24 22:17:03 +0000 |
commit | f8dbff557af75c0347f271cf5a1a557eea9f9eed (patch) | |
tree | ece3c3a463454f5ff0b74480869655a70acf2567 /debug_counter.h | |
parent | 0fbc28dec5ae07c737d5b62e5165e2a1c42d6de7 (diff) | |
download | ruby-f8dbff557af75c0347f271cf5a1a557eea9f9eed.tar.gz |
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
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 |