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.
This commit is contained in:
Zack Deveau 2023-08-25 18:27:56 -04:00 committed by GitHub
parent 00ec8dedb1
commit 480aee4363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2023-08-25 22:28:16 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>

View File

@ -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.