diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-15 08:25:58 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-03-15 08:25:58 +0000 |
commit | 10b800133ed9913dc7725d0ff801f2792178d4a4 (patch) | |
tree | d021467aaa3111c04f12872a0aa109644ac8e569 /debug_counter.h | |
parent | 0b1f6aed9414a4d7714910e61db08fdb2ac3ecd1 (diff) | |
download | ruby-10b800133ed9913dc7725d0ff801f2792178d4a4.tar.gz |
add several counters to analyze ivar inline caches.
* debug_counter.h: add (and renamed) several counters:
ivar_get_ic_hit
ivar_get_ic_miss
ivar_get_ic_miss_serial
ivar_get_ic_miss_unset
ivar_get_ic_miss_noobject
ivar_set_ic_hit
ivar_set_ic_miss
ivar_set_ic_miss_serial
ivar_set_ic_miss_unset
ivar_set_ic_miss_oorange
ivar_set_ic_miss_noobject
ivar_get_base
ivar_set_base
See related source code to know what counters mean.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug_counter.h')
-rw-r--r-- | debug_counter.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/debug_counter.h b/debug_counter.h index 718486bf34..be2138d3bb 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -22,12 +22,19 @@ RB_DEBUG_COUNTER(mc_class_serial_miss) RB_DEBUG_COUNTER(mc_cme_complement) RB_DEBUG_COUNTER(mc_cme_complement_hit) RB_DEBUG_COUNTER(mc_search_super) -RB_DEBUG_COUNTER(ivar_get_hit) -RB_DEBUG_COUNTER(ivar_get_miss) -RB_DEBUG_COUNTER(ivar_set_hit) -RB_DEBUG_COUNTER(ivar_set_miss) -RB_DEBUG_COUNTER(ivar_get) -RB_DEBUG_COUNTER(ivar_set) +RB_DEBUG_COUNTER(ivar_get_ic_hit) +RB_DEBUG_COUNTER(ivar_get_ic_miss) +RB_DEBUG_COUNTER(ivar_get_ic_miss_serial) +RB_DEBUG_COUNTER(ivar_get_ic_miss_unset) +RB_DEBUG_COUNTER(ivar_get_ic_miss_noobject) +RB_DEBUG_COUNTER(ivar_set_ic_hit) +RB_DEBUG_COUNTER(ivar_set_ic_miss) +RB_DEBUG_COUNTER(ivar_set_ic_miss_serial) +RB_DEBUG_COUNTER(ivar_set_ic_miss_unset) +RB_DEBUG_COUNTER(ivar_set_ic_miss_oorange) +RB_DEBUG_COUNTER(ivar_set_ic_miss_noobject) +RB_DEBUG_COUNTER(ivar_get_base) +RB_DEBUG_COUNTER(ivar_set_base) #endif #ifndef RUBY_DEBUG_COUNTER_H |