Skip to content

Commit

Permalink
YJIT: Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Feb 10, 2024
1 parent ea91ab6 commit 6cafbd3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions yjit.rb
Expand Up @@ -401,7 +401,6 @@ def print_sorted_method_calls(calls, num_calls, out:, type:, how_many: 20, left_

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):"

Expand Down Expand Up @@ -429,7 +428,6 @@ def print_sorted_exit_counts(stats, out:, prefix:, how_many: 20, left_pad: 4) #

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}")
Expand Down

0 comments on commit 6cafbd3

Please sign in to comment.