RJIT: Share rb_vm_insns_count for vm_insns_count

This commit is contained in:
Takashi Kokubun 2023-12-18 23:49:54 -08:00
parent dee45ac231
commit eb872d1752
8 changed files with 13 additions and 41 deletions

View file

@ -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)