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:
parent
435d7c5088
commit
38e67ccd15
1 changed files with 3 additions and 4 deletions
7
yjit.rb
7
yjit.rb
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue