Commit 210ad39f authored by Ingo Molnar's avatar Ingo Molnar

perf stat: Use percentages for scaling output

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: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Jaswinder Singh Rajput <jaswinder@kernel.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4078c444
...@@ -307,7 +307,8 @@ static void print_counter(int counter) ...@@ -307,7 +307,8 @@ static void print_counter(int counter)
abs_printout(counter, count, noise); abs_printout(counter, count, noise);
if (scaled) 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"); fprintf(stderr, "\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment