Skip to content

Commit

Permalink
perf stat: Use percentages for scaling output
Browse files Browse the repository at this point in the history
Peter expressed a strong preference for percentage based
display of scaled values - so revert to that from the
recently introduced multiplication-factor unit.

Reported-by: Peter Zijlstra <[email protected]>
Cc: Jaswinder Singh Rajput <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Ingo Molnar committed Jun 29, 2009
1 parent 4078c44 commit 210ad39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/perf/builtin-stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ static void print_counter(int counter)
abs_printout(counter, count, noise);

if (scaled)
fprintf(stderr, " (%7.2fx scaled)", (double)count[1]/count[2]);
fprintf(stderr, " (scaled from %.2f%%)",
(double) count[2] / count[1] * 100);

fprintf(stderr, "\n");
}
Expand Down

0 comments on commit 210ad39

Please sign in to comment.