diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2021-04-08 14:31:27 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:33 -0400 |
commit | 7108da16e9ec39d682572c47ac3e99035c0683f0 (patch) | |
tree | 884015d58f561983261a839b9a631104dbec5144 /yjit.rb | |
parent | 04243533fc3f9b1ac71160dbe235da9995a994ea (diff) | |
download | ruby-7108da16e9ec39d682572c47ac3e99035c0683f0.tar.gz |
Fix two stats bugs, refactor stats code, add total_insn_count print
Diffstat (limited to 'yjit.rb')
-rw-r--r-- | yjit.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: ') |