diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-17 22:31:41 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-17 22:31:41 -0700 |
commit | 644c9985256e8bf52d8ec362dcebe4a437e7fd51 (patch) | |
tree | e70f0f8b29fc28df34403026bceadb3a85bcf5f6 /lib/ruby_vm | |
parent | b9f411b3a855f13b3ab9f5b0fa9845a078e1bc93 (diff) |
RJIT: Support --rjit-stats on release build as well
Diffstat (limited to 'lib/ruby_vm')
-rw-r--r-- | lib/ruby_vm/rjit/stats.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ruby_vm/rjit/stats.rb b/lib/ruby_vm/rjit/stats.rb index 65bb962aac..8c4253880a 100644 --- a/lib/ruby_vm/rjit/stats.rb +++ b/lib/ruby_vm/rjit/stats.rb @@ -22,6 +22,8 @@ module RubyVM::RJIT retired_in_rjit = stats[:rjit_insns_count] - stats[:side_exit_count] stats[:total_insns_count] = retired_in_rjit + stats[:vm_insns_count] stats[:ratio_in_rjit] = 100.0 * retired_in_rjit / stats[:total_insns_count] + else + stats.delete(:vm_insns_count) end stats |