Skip to content

Commit ad7f25b

Browse files
maximecbXrXr
authored andcommitted
Add setivar exit reasons to --yjit-stats
1 parent 840ec0e commit ad7f25b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

yjit.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,16 @@ class << self
7676
# Format and print out counters
7777
def _print_stats
7878
counters = runtime_stats
79-
8079
return unless counters
8180

8281
$stderr.puts("***YJIT: Printing runtime counters from yjit.rb***")
83-
84-
$stderr.puts "Number of bindings allocated: %d\n" % counters[:binding_allocations]
85-
$stderr.puts "Number of locals modified through binding: %d\n" % counters[:binding_set]
82+
$stderr.puts("Number of bindings allocated: %d\n" % counters[:binding_allocations])
83+
$stderr.puts("Number of locals modified through binding: %d\n" % counters[:binding_set])
8684

8785
print_counters(counters, prefix: 'oswb_', prompt: 'opt_send_without_block exit reasons: ')
8886
print_counters(counters, prefix: 'leave_', prompt: 'leave exit reasons: ')
8987
print_counters(counters, prefix: 'getivar_', prompt: 'getinstancevariable exit reasons:')
88+
print_counters(counters, prefix: 'setivar_', prompt: 'setinstancevariable exit reasons:')
9089
print_counters(counters, prefix: 'oaref_', prompt: 'opt_aref exit reasons: ')
9190
end
9291

0 commit comments

Comments
 (0)