diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-11-09 11:59:18 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2020-11-09 14:05:41 -0800 |
commit | 4219cb7adb0240fa92cd044b2feebb66b7702ca1 (patch) | |
tree | db86c2d267fe5422d72053aa3cce4899fb37abc9 /debug_counter.h | |
parent | f259906eabac6038bb7c79e426c17ae850c8e017 (diff) |
Add debug counter for ivar inline cache misses that could hit
This commit adds a debug counter for the case where the inline cache
*missed* but the ivar index table has an entry for that ivar. This is a
case where a polymorphic cache could help
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3750
Diffstat (limited to 'debug_counter.h')
-rw-r--r-- | debug_counter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debug_counter.h b/debug_counter.h index 9f7a81720e..752a3de02b 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -123,6 +123,7 @@ 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_iv_hit) RB_DEBUG_COUNTER(ivar_set_ic_miss_noobject) RB_DEBUG_COUNTER(ivar_get_base) RB_DEBUG_COUNTER(ivar_set_base) |