summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashi.kokubun@shopify.com>2025-09-18 20:20:29 -0700
committerGitHub <noreply@github.com>2025-09-18 20:20:29 -0700
commit8edb029ed97e3d8de47b66c9ed84daa76143a444 (patch)
tree45f9d0f29ec022f92291015464277cc6be61bc5f
parent701e0975abc74defc4efe8363b465c46099079df (diff)
ZJIT: Put exit reasons later in stats_string (#14599)
-rw-r--r--zjit.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/zjit.rb b/zjit.rb
index f0c988d5a0..42cfe1cb91 100644
--- a/zjit.rb
+++ b/zjit.rb
@@ -39,12 +39,14 @@ class << RubyVM::ZJIT
buf = +"***ZJIT: Printing ZJIT statistics on exit***\n"
stats = self.stats
- # Show exit reasons, ordered by the typical amount of exits for the prefix at the time
+ # Show non-exit counters
+ print_counters_with_prefix(prefix: 'dynamic_send_type_', prompt: 'dynamic send types', buf:, stats:, limit: 20)
+ print_counters_with_prefix(prefix: 'send_fallback_', prompt: 'send fallback def_types', buf:, stats:, limit: 20)
+
+ # Show exit counters, ordered by the typical amount of exits for the prefix at the time
print_counters_with_prefix(prefix: 'unhandled_yarv_insn_', prompt: 'unhandled YARV insns', buf:, stats:, limit: 20)
print_counters_with_prefix(prefix: 'compile_error_', prompt: 'compile error reasons', buf:, stats:, limit: 20)
print_counters_with_prefix(prefix: 'exit_', prompt: 'side exit reasons', buf:, stats:, limit: 20)
- print_counters_with_prefix(prefix: 'dynamic_send_type_', prompt: 'dynamic send types', buf:, stats:, limit: 20)
- print_counters_with_prefix(prefix: 'send_fallback_', prompt: 'send fallback def_types', buf:, stats:, limit: 20)
# Show the most important stats ratio_in_zjit at the end
print_counters([