summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>2022-07-06 11:13:22 -0400
committerGitHub <noreply@github.com>2022-07-06 11:13:22 -0400
commit3c61e1e77f9e501dd5ef19d6c661ceba6b84cac8 (patch)
tree4df2e385dbf4bd8681f0f7cef552b12b6e240485 /yjit.rb
parent5ef3c7ea2d1968c87f361b6615699b92cc6e5a9a (diff)
downloadruby-3c61e1e77f9e501dd5ef19d6c661ceba6b84cac8.tar.gz
YJIT: add a counter for gc object refs in the machine code (#6089)
Add a counter for gc object refs in the machine code This is to gather data for the eventual implementation of a constant pool.
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit.rb b/yjit.rb
index b3c1efdbd4..15c84d0c61 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -211,6 +211,7 @@ module RubyVM::YJIT
$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])
+ $stderr.puts "num_gc_obj_refs: " + ("%10d" % stats[:num_gc_obj_refs])
$stderr.puts "total_exit_count: " + ("%10d" % total_exits)
$stderr.puts "total_insns_count: " + ("%10d" % total_insns_count)