aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Deveau <zack.ref@gmail.com>2023-08-25 18:27:56 -0400
committerGitHub <noreply@github.com>2023-08-25 15:27:56 -0700
commit480aee4363d2bff26dcdd6b9280cf93ec0f1a06b (patch)
tree2b7f94d57030af49bb1fb4b38e53f2f0ff761ff3
parent00ec8dedb1fc0aff44ba3a37271ed30751cccadf (diff)
downloadruby-480aee4363d2bff26dcdd6b9280cf93ec0f1a06b.tar.gz
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.
-rw-r--r--debug_counter.h7
1 files changed, 7 insertions, 0 deletions
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.