summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-08-09 10:16:15 -0700
committerGitHub <noreply@github.com>2023-08-09 10:16:15 -0700
commitd3efce69eaabf1ff81bcdf3631350a87ac0dda28 (patch)
tree5332b436af42af8a7a34808b6b92c794cf41b607 /yjit.rb
parentc9b30f9d76ec7c726a703a7f8aad95b5998e7d6c (diff)
YJIT: Count throw instructions for each tag (#8188)
* YJIT: Count throw instructions for each tag * Show % of each throw type
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/yjit.rb b/yjit.rb
index db7e33cbf2..bb0b8a983a 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -279,6 +279,10 @@ module RubyVM::YJIT
end
out.puts "num_getivar_megamorphic: " + format_number(13, stats[:num_getivar_megamorphic])
out.puts "num_setivar_megamorphic: " + format_number(13, stats[:num_setivar_megamorphic])
+ out.puts "num_throw: " + format_number(13, stats[:num_throw])
+ out.puts "num_throw_break: " + format_number_pct(13, stats[:num_throw_break], stats[:num_throw])
+ out.puts "num_throw_retry: " + format_number_pct(13, stats[:num_throw_retry], stats[:num_throw])
+ out.puts "num_throw_return: " + format_number_pct(13, stats[:num_throw_return], stats[:num_throw])
out.puts "iseq_stack_too_large: " + format_number(13, stats[:iseq_stack_too_large])
out.puts "iseq_too_long: " + format_number(13, stats[:iseq_too_long])