summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-09-15 13:59:50 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:41 -0400
commit82405ac48ae457de9b54e18545743ab2a58bf989 (patch)
tree78f93006baea9bd119e8ad93221a1581249f843a /yjit.rb
parent1f09eb66e6cc1019ba88e421f1ba8186c071a6ed (diff)
Add counters for tracking invalidations
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/yjit.rb b/yjit.rb
index 520c043068..f327b5a564 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -177,6 +177,9 @@ module YJIT
yjit_ratio_pct = 100.0 * retired_in_yjit.to_f / total_insns_count
$stderr.puts "compiled_iseq_count: " + ("%10d" % stats[:compiled_iseq_count])
+ $stderr.puts "compiled_block_count: " + ("%10d" % stats[:compiled_block_count])
+ $stderr.puts "invalidation_count: " + ("%10d" % stats[:invalidation_count])
+ $stderr.puts "constant_state_bumps: " + ("%10d" % stats[:constant_state_bumps])
$stderr.puts "inline_code_size: " + ("%10d" % stats[:inline_code_size])
$stderr.puts "outlined_code_size: " + ("%10d" % stats[:outlined_code_size])