From 72a73691bd069c20f07a42bbd2740ada319ee001 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 15 Dec 2020 12:10:35 +0900 Subject: 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. --- vm_eval.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm_eval.c') 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); -- cgit v1.2.1