mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Percentages should be out of 100.0%, not 1.0%.
This commit is contained in:
parent
db02d73e5e
commit
e2fe7e4aff
1 changed files with 1 additions and 1 deletions
2
yjit.rb
2
yjit.rb
|
@ -190,7 +190,7 @@ module YJIT
|
|||
total_exits = total_exit_count(stats)
|
||||
|
||||
top_n_total = exits.map { |name, count| count }.sum
|
||||
top_n_exit_pct = top_n_total / total_exits
|
||||
top_n_exit_pct = 100.0 * top_n_total / total_exits
|
||||
|
||||
$stderr.puts "Top-#{how_many} most frequent exit ops (#{"%.1f" % top_n_exit_pct}% of exits):"
|
||||
|
||||
|
|
Loading…
Reference in a new issue