diff options
| author | Julian Blake Kongslie | 2023-01-15 15:01:14 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2023-01-15 15:01:14 -0800 |
| commit | 5f3ea3240c2039b3ded3a92f104f5c29b40e4500 (patch) | |
| tree | 885b77733ae7574ca0012b70624a6e5578a8932d /pt | |
| parent | Don't produce horizontal counts for "-" events. (diff) | |
| download | nanosim-5f3ea3240c2039b3ded3a92f104f5c29b40e4500.tar.xz | |
Show both cyc/evt and evt/cyc horizontal counters.
Diffstat (limited to 'pt')
| -rwxr-xr-x | pt | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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") |
| 85 | end | 85 | end |
| 86 | $stdout.write("\n") | 86 | $stdout.write("\n") |
| 87 | 87 | ||
