From 6246788bc47b5d28e3c612479a2986d84f2aa589 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 13 Nov 2022 09:54:41 -0800 Subject: YJIT: Instrument global allocations on stats build (#6712) * YJIT: Instrument global allocations on stats build * Just use GLOVAL_ALLOCATOR.stats() --- yjit.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'yjit.rb') 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]) -- cgit v1.2.1