diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-22 07:57:26 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-22 07:57:26 +0000 |
commit | c671f836b4d123bf86bce6defe42c87caef582f8 (patch) | |
tree | 24cdb18e53c656269230cd976b7a763a621e0417 /debug_counter.h | |
parent | 4d2bac1fd977d2ff76321654aece8744cac536dd (diff) |
add debug counters to count call cache fastpath.
Add counters to count ccf (call cache fastpath) usage.
These counters will help which kind of method dispatch
is important to optimize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug_counter.h')
-rw-r--r-- | debug_counter.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debug_counter.h b/debug_counter.h index bd03204af4..104cafda99 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -38,6 +38,28 @@ RB_DEBUG_COUNTER(mc_cme_complement_hit) RB_DEBUG_COUNTER(mc_search_super) /* + * call cache fastpath usage + */ +RB_DEBUG_COUNTER(ccf_general) +RB_DEBUG_COUNTER(ccf_iseq_setup) +RB_DEBUG_COUNTER(ccf_iseq_setup_0start) +RB_DEBUG_COUNTER(ccf_iseq_setup_tailcall_0start) +RB_DEBUG_COUNTER(ccf_iseq_fix) /* several functions created with tool/mk_call_iseq_optimized.rb */ +RB_DEBUG_COUNTER(ccf_iseq_opt) +RB_DEBUG_COUNTER(ccf_iseq_kw1) +RB_DEBUG_COUNTER(ccf_iseq_kw2) +RB_DEBUG_COUNTER(ccf_cfunc) +RB_DEBUG_COUNTER(ccf_ivar) +RB_DEBUG_COUNTER(ccf_attrset) +RB_DEBUG_COUNTER(ccf_method_missing) +RB_DEBUG_COUNTER(ccf_zsuper) +RB_DEBUG_COUNTER(ccf_bmethod) +RB_DEBUG_COUNTER(ccf_opt_send) +RB_DEBUG_COUNTER(ccf_opt_call) +RB_DEBUG_COUNTER(ccf_opt_block_call) +RB_DEBUG_COUNTER(ccf_super_method) + +/* * control frame push counts. * * * frame_push: frame push counts. |