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 /debug_counter.h | |
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 'debug_counter.h')
-rw-r--r-- | debug_counter.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/debug_counter.h b/debug_counter.h index 597307c833..0e13464d00 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -40,7 +40,8 @@ RB_DEBUG_COUNTER(ci_runtime) // creating temporary CI // callcache RB_DEBUG_COUNTER(cc_new) // number of CC RB_DEBUG_COUNTER(cc_temp) // dummy CC (stack-allocated) -RB_DEBUG_COUNTER(cc_found_ccs) // count for CC lookup success in CCS +RB_DEBUG_COUNTER(cc_found_in_ccs) // count for CC lookup success in CCS +RB_DEBUG_COUNTER(cc_not_found_in_ccs) // count for CC lookup success in CCS RB_DEBUG_COUNTER(cc_ent_invalidate) // count for invalidating cc (cc->klass = 0) RB_DEBUG_COUNTER(cc_cme_invalidate) // count for invalidating CME @@ -58,6 +59,10 @@ RB_DEBUG_COUNTER(ccs_maxlen) // maximum length of ccs RB_DEBUG_COUNTER(ccs_found) // count for finding corresponding ccs on method lookup RB_DEBUG_COUNTER(ccs_not_found) // count for not found corresponding ccs on method lookup +// vm_eval.c +RB_DEBUG_COUNTER(call0_public) +RB_DEBUG_COUNTER(call0_other) + // iseq RB_DEBUG_COUNTER(iseq_num) // number of total created iseq RB_DEBUG_COUNTER(iseq_cd_num) // number of total created cd (call_data) |