mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
RJIT: Share rb_vm_insns_count for vm_insns_count
This commit is contained in:
parent
dee45ac231
commit
eb872d1752
8 changed files with 13 additions and 41 deletions
|
@ -15,6 +15,7 @@ module RubyVM::RJIT
|
|||
C.rb_rjit_runtime_counters.members.each do |member|
|
||||
stats[member] = C.rb_rjit_counters.public_send(member)
|
||||
end
|
||||
stats[:vm_insns_count] = C.rb_vm_insns_count
|
||||
|
||||
# Other stats are calculated here
|
||||
stats[:side_exit_count] = stats.select { |name, _count| name.start_with?('exit_') }.sum(&:last)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue