mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
YJIT: Remove unused variables
This commit is contained in:
parent
ea91ab696e
commit
6cafbd35d9
1 changed files with 0 additions and 2 deletions
2
yjit.rb
2
yjit.rb
|
@ -401,7 +401,6 @@ module RubyVM::YJIT
|
||||||
|
|
||||||
top_n_total = pairs.sum { |name, count| count }
|
top_n_total = pairs.sum { |name, count| count }
|
||||||
top_n_pct = 100.0 * top_n_total / num_calls
|
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):"
|
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):"
|
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|
|
exits.each do |name, count|
|
||||||
padded_count = format_number_pct(10, count, total_exits)
|
padded_count = format_number_pct(10, count, total_exits)
|
||||||
out.puts("#{padded_count}: #{name}")
|
out.puts("#{padded_count}: #{name}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue