summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie2023-01-15 15:01:14 -0800
committerJulian Blake Kongslie2023-01-15 15:01:14 -0800
commit5f3ea3240c2039b3ded3a92f104f5c29b40e4500 (patch)
tree885b77733ae7574ca0012b70624a6e5578a8932d
parentDon't produce horizontal counts for "-" events. (diff)
downloadnanosim-5f3ea3240c2039b3ded3a92f104f5c29b40e4500.tar.xz
Show both cyc/evt and evt/cyc horizontal counters.
Diffstat (limited to '')
-rwxr-xr-xpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/pt b/pt
index bca7d5b..c17d902 100755
--- a/pt
+++ b/pt
@@ -81,7 +81,7 @@ rwidth = $order.map { | x | x.to_s.size }.max
81$horiz.keys.sort.each do | occ | 81$horiz.keys.sort.each do | occ |
82 $stdout.write(" " * rwidth + " #{$horiz[occ].ljust($maxtime)}") 82 $stdout.write(" " * rwidth + " #{$horiz[occ].ljust($maxtime)}")
83 count = $horiz[occ].delete(" ").size 83 count = $horiz[occ].delete(" ").size
84 $stdout.write(" #{($maxtime.to_f / count.to_f).round(2).to_s.rjust(5)} cyc/evt\n") 84 $stdout.write(" #{($maxtime.to_f / count.to_f).round(2).to_s.rjust(10)} cyc/evt #{(count.to_f / $maxtime.to_f).round(2).to_s.rjust(10)} evt/cyc\n")
85end 85end
86$stdout.write("\n") 86$stdout.write("\n")
87 87