From 480aee4363d2bff26dcdd6b9280cf93ec0f1a06b Mon Sep 17 00:00:00 2001 From: Zack Deveau Date: Fri, 25 Aug 2023 18:27:56 -0400 Subject: Add Missing Counters to `rb_debug_counter_type` enum (#8297) Add missing counters to rb_debug_counter_type enum On master we have calls to the RB_DEBUG_COUNTER_INC macro for counters that are not getting defined in the rb_debug_counter_type enum. This commit adds those that are missing in order for compilation to pass with -DUSE_RUBY_DEBUG_LOG. --- debug_counter.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debug_counter.h b/debug_counter.h index 01b1a63f86..a8b95edded 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -100,6 +100,13 @@ RB_DEBUG_COUNTER(ccf_opt_block_call) RB_DEBUG_COUNTER(ccf_opt_struct_aref) RB_DEBUG_COUNTER(ccf_opt_struct_aset) RB_DEBUG_COUNTER(ccf_super_method) +RB_DEBUG_COUNTER(ccf_cfunc_other) +RB_DEBUG_COUNTER(ccf_cfunc_only_splat) +RB_DEBUG_COUNTER(ccf_cfunc_only_splat_kw) +RB_DEBUG_COUNTER(ccf_iseq_bmethod) +RB_DEBUG_COUNTER(ccf_noniseq_bmethod) +RB_DEBUG_COUNTER(ccf_opt_send_complex) +RB_DEBUG_COUNTER(ccf_opt_send_simple) /* * control frame push counts. -- cgit v1.2.3