summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorNoah Gibbs <noah.gibbs@shopify.com>2021-06-30 09:41:19 +0100
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:37 -0400
commite2fe7e4aff27f498d56e44586276558355da34dd (patch)
tree691c8ff5def8384f55b30fe101eb2a2f1f7195af /yjit.rb
parentdb02d73e5e0489dd2028ea4b9572361ed5aa2cc9 (diff)
Percentages should be out of 100.0%, not 1.0%.
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit.rb b/yjit.rb
index db283fe33b..cf5cac5f2f 100644
--- a/yjit.rb
+++ b/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):"