From 354791c248d7e21d5b70ded7c548af954491e247 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 10 Nov 2022 10:00:15 -0800 Subject: Remove inconsistency I meant they should be also fixed in https://github.com/ruby/ruby/pull/6694#discussion_r1019445575 --- yjit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yjit.rb') diff --git a/yjit.rb b/yjit.rb index 595faa1bb3..caa3a035d3 100644 --- a/yjit.rb +++ b/yjit.rb @@ -269,11 +269,11 @@ module RubyVM::YJIT $stderr.puts "side_exit_count: " + ("%10d" % stats[:side_exit_count]) $stderr.puts "total_exit_count: " + ("%10d" % stats[:side_exit_count]) $stderr.puts "total_insns_count: " + ("%10d" % stats[:total_exit_count]) - if stats.has_key?(:vm_insns_count) + if stats.key?(:vm_insns_count) $stderr.puts "vm_insns_count: " + ("%10d" % stats[:vm_insns_count]) end $stderr.puts "yjit_insns_count: " + ("%10d" % stats[:exec_instruction]) - if stats.has_key?(:ratio_in_yjit) + if stats.key?(:ratio_in_yjit) $stderr.puts "ratio_in_yjit: " + ("%9.1f" % stats[:ratio_in_yjit]) + "%" end $stderr.puts "avg_len_in_yjit: " + ("%10.1f" % stats[:avg_len_in_yjit]) -- cgit v1.2.1