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 /tool/mk_call_iseq_optimized.rb | |
parent | 4d2bac1fd977d2ff76321654aece8744cac536dd (diff) | |
download | ruby-c671f836b4d123bf86bce6defe42c87caef582f8.tar.gz |
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 'tool/mk_call_iseq_optimized.rb')
-rw-r--r-- | tool/mk_call_iseq_optimized.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/mk_call_iseq_optimized.rb b/tool/mk_call_iseq_optimized.rb index 0978aa0bbc..9fd84aa696 100644 --- a/tool/mk_call_iseq_optimized.rb +++ b/tool/mk_call_iseq_optimized.rb @@ -23,6 +23,7 @@ P.each{|param| static VALUE #{fname(param, local)}(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc) { + RB_DEBUG_COUNTER_INC(ccf_iseq_fix); return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, #{param}, #{local}); } |