summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-15 08:25:58 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-15 08:25:58 (GMT)
commit10b800133ed9913dc7725d0ff801f2792178d4a4 (patch)
treed021467aaa3111c04f12872a0aa109644ac8e569 /variable.c
parent0b1f6aed9414a4d7714910e61db08fdb2ac3ecd1 (diff)
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 'variable.c')
-rw-r--r--variable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/variable.c b/variable.c
index d1d9628..cfc987e 100644
--- a/variable.c
+++ b/variable.c
@@ -1210,7 +1210,7 @@ VALUE
rb_ivar_get(VALUE obj, ID id)
{
VALUE iv = rb_ivar_lookup(obj, id, Qundef);
- RB_DEBUG_COUNTER_INC(ivar_get);
+ RB_DEBUG_COUNTER_INC(ivar_get_base);
if (iv == Qundef) {
if (RTEST(ruby_verbose))
@@ -1317,7 +1317,7 @@ rb_ivar_set(VALUE obj, ID id, VALUE val)
struct ivar_update ivup;
uint32_t i, len;
- RB_DEBUG_COUNTER_INC(ivar_set);
+ RB_DEBUG_COUNTER_INC(ivar_set_base);
rb_check_frozen(obj);