diff options
| author | Takashi Kokubun <takashi.kokubun@shopify.com> | 2025-09-18 20:20:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 20:20:29 -0700 |
| commit | 8edb029ed97e3d8de47b66c9ed84daa76143a444 (patch) | |
| tree | 45f9d0f29ec022f92291015464277cc6be61bc5f | |
| parent | 701e0975abc74defc4efe8363b465c46099079df (diff) | |
ZJIT: Put exit reasons later in stats_string (#14599)
| -rw-r--r-- | zjit.rb | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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([ |
