summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-13 09:54:41 -0800
committerGitHub <noreply@github.com>2022-11-13 12:54:41 -0500
commit6246788bc47b5d28e3c612479a2986d84f2aa589 (patch)
tree2a09d2bf3158d0864eb0d4d459c82c645ce84e7c /yjit.rb
parentbc8ba244b8524c8537eda4ca79f880312c8f4528 (diff)
downloadruby-6246788bc47b5d28e3c612479a2986d84f2aa589.tar.gz
YJIT: Instrument global allocations on stats build (#6712)
* YJIT: Instrument global allocations on stats build * Just use GLOVAL_ALLOCATOR.stats()
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 caa3a035d3..cac2430127 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -262,6 +262,7 @@ module RubyVM::YJIT
$stderr.puts "inline_code_size: " + ("%10d" % stats[:inline_code_size])
$stderr.puts "outlined_code_size: " + ("%10d" % stats[:outlined_code_size])
$stderr.puts "freed_code_size: " + ("%10d" % stats[:freed_code_size])
+ $stderr.puts "yjit_alloc_size: " + ("%10d" % stats[:yjit_alloc_size]) if stats.key?(:yjit_alloc_size)
$stderr.puts "live_page_count: " + ("%10d" % stats[:live_page_count])
$stderr.puts "freed_page_count: " + ("%10d" % stats[:freed_page_count])
$stderr.puts "code_gc_count: " + ("%10d" % stats[:code_gc_count])