1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add setivar exit reasons to --yjit-stats

This commit is contained in:
Maxime Chevalier-Boisvert 2021-04-21 17:16:44 -04:00 committed by Alan Wu
parent 435d7c5088
commit 38e67ccd15

View file

@ -76,17 +76,16 @@ module YJIT
# Format and print out counters
def _print_stats
counters = runtime_stats
return unless counters
$stderr.puts("***YJIT: Printing runtime counters from yjit.rb***")
$stderr.puts "Number of bindings allocated: %d\n" % counters[:binding_allocations]
$stderr.puts "Number of locals modified through binding: %d\n" % counters[:binding_set]
$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: ')
print_counters(counters, prefix: 'getivar_', prompt: 'getinstancevariable exit reasons:')
print_counters(counters, prefix: 'setivar_', prompt: 'setinstancevariable exit reasons:')
print_counters(counters, prefix: 'oaref_', prompt: 'opt_aref exit reasons: ')
end