From 10c0d7a839ef920ae77fbbb38d081795ecec9057 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sat, 11 Oct 2025 18:41:29 +0100 Subject: ZJIT: Count unoptimized `Send` (#14801) * ZJIT: Count unoptimized `Send` This includes `Send` in `send fallback reasons` to guide future optimizations. * ZJIT: Create dedicated def_type counter for Send --- zjit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zjit.rb') diff --git a/zjit.rb b/zjit.rb index 87ff52f55a..fdfe4ce983 100644 --- a/zjit.rb +++ b/zjit.rb @@ -159,7 +159,8 @@ class << RubyVM::ZJIT print_counters_with_prefix(prefix: 'not_annotated_cfuncs_', prompt: 'not annotated C methods', buf:, stats:, limit: 20) # Show fallback counters, ordered by the typical amount of fallbacks for the prefix at the time - print_counters_with_prefix(prefix: 'unspecialized_def_type_', prompt: 'not optimized method types', buf:, stats:, limit: 20) + print_counters_with_prefix(prefix: 'unspecialized_send_def_type_', prompt: 'not optimized method types for send', buf:, stats:, limit: 20) + print_counters_with_prefix(prefix: 'unspecialized_send_without_block_def_type_', prompt: 'not optimized method types for send_without_block', buf:, stats:, limit: 20) print_counters_with_prefix(prefix: 'not_optimized_yarv_insn_', prompt: 'not optimized instructions', buf:, stats:, limit: 20) print_counters_with_prefix(prefix: 'send_fallback_', prompt: 'send fallback reasons', buf:, stats:, limit: 20) -- cgit v1.2.3