diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-15 12:10:35 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-15 13:29:30 +0900 |
commit | 72a73691bd069c20f07a42bbd2740ada319ee001 (patch) | |
tree | 088b795a23ade3921c03b5ef28d352db85121b58 /vm_eval.c | |
parent | aa6287cd26582e64c19e37dea3fd90b380b85d5b (diff) |
add several debug counters
add cc_found_in_ccs (renamed from cc_found_ccs), cc_not_found_in_ccs,
call0_public, call0_other debug counters to measure more details.
also it contains several modification.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3903
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -345,9 +345,11 @@ rb_call0(rb_execution_context_t *ec, } if (scope == CALL_PUBLIC) { + RB_DEBUG_COUNTER_INC(call0_public); me = rb_callable_method_entry_with_refinements(CLASS_OF(recv), mid, NULL); } else { + RB_DEBUG_COUNTER_INC(call0_other); me = rb_search_method_entry(recv, mid); } call_status = rb_method_call_status(ec, me, scope, self); |