diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-02-10 14:24:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-02-10 14:24:28 +0900 |
commit | 6cafbd35d970f898eebc8c2d7b6f79fb4f79308c () | |
tree | aca1c032eae1bcc704dd4011629521c1c81f7fd0 | |
parent | ea91ab696e6ee7225a2dde909e60dd9d0b241935 (diff) |
YJIT: Remove unused variables
-rw-r--r-- | yjit.rb | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -401,7 +401,6 @@ module RubyVM::YJIT top_n_total = pairs.sum { |name, count| count } top_n_pct = 100.0 * top_n_total / num_calls - longest_name_len = pairs.max_by { |name, count| name.length }.first.length out.puts "Top-#{pairs.size} most frequent #{type} calls (#{"%.1f" % top_n_pct}% of #{type} calls):" @@ -429,7 +428,6 @@ module RubyVM::YJIT out.puts "Top-#{exits.size} most frequent exit ops (#{"%.1f" % top_n_exit_pct}% of exits):" - longest_insn_name_len = exits.max_by { |name, count| name.length }.first.length exits.each do |name, count| padded_count = format_number_pct(10, count, total_exits) out.puts("#{padded_count}: #{name}") |