summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-15 12:10:35 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-15 13:29:30 +0900
commit72a73691bd069c20f07a42bbd2740ada319ee001 (patch)
tree088b795a23ade3921c03b5ef28d352db85121b58 /vm_eval.c
parentaa6287cd26582e64c19e37dea3fd90b380b85d5b (diff)
downloadruby-72a73691bd069c20f07a42bbd2740ada319ee001.tar.gz
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.
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_eval.c b/vm_eval.c
index d98bd076bd..afd3338e54 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -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);