summaryrefslogtreecommitdiff
path: root/zjit.rb
diff options
context:
space:
mode:
authorStan Lo <stan.lo@shopify.com>2025-10-11 18:41:29 +0100
committerGitHub <noreply@github.com>2025-10-11 10:41:29 -0700
commit10c0d7a839ef920ae77fbbb38d081795ecec9057 (patch)
treefe60b1df53f0362097ecab0b13b30c4465510ed8 /zjit.rb
parente8f0e1423b6c6bf2a02791d28ed149eb892a27be (diff)
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
Diffstat (limited to 'zjit.rb')
-rw-r--r--zjit.rb3
1 files changed, 2 insertions, 1 deletions
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)