From 7108da16e9ec39d682572c47ac3e99035c0683f0 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 8 Apr 2021 14:31:27 -0400 Subject: Fix two stats bugs, refactor stats code, add total_insn_count print --- yjit.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yjit.rb') diff --git a/yjit.rb b/yjit.rb index e1d9c16417..a0ff8d11d2 100644 --- a/yjit.rb +++ b/yjit.rb @@ -30,7 +30,7 @@ module YJIT comment_idx = 0 cs.disasm(block.code, block.address).each do |i| while (comment = comments[comment_idx]) && comment.address <= i.address - str << " ;#{highlight.call(comment.comment)}\n" + str << " ; #{highlight.call(comment.comment)}\n" comment_idx += 1 end @@ -81,8 +81,8 @@ module YJIT $stderr.puts("***YJIT: Printing runtime counters from yjit.rb***") - $stderr.puts "Number of bindings allocated: %d\n" % counters[:binding_allocation_count] - $stderr.puts "Number of locals modified through binding: %d\n" % counters[:local_variable_set_count] + $stderr.puts "Number of bindings allocated: %d\n" % counters[:binding_allocations] + $stderr.puts "Number of locals modified through binding: %d\n" % counters[:binding_set] print_counters(counters, prefix: 'oswb_', prompt: 'opt_send_without_block exit reasons: ') print_counters(counters, prefix: 'leave_', prompt: 'leave exit reasons: ') -- cgit v1.2.3