aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorJim Cromie <jim.cromie@gmail.com>2011-09-07 19:14:02 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-09-29 16:04:00 -0400
commita1bca6cc87fee26f3d9120b3f3418b7edfc91ec2 (patch)
treedb56295dc56de5d37cc91bb24f04e3e5ac88accc /tools/perf
parent19f4740255668ca297dcf9f02d80eb9bc87a1d66 (diff)
perf stat: Suppress printing std-dev when its 0
For pretty output only (preserve column for cvs output), dont print std-deviation when its 0.00. Do this based upon value, instead of checking for --no-aggr, since the stats could conceivably be computed over the runs on each CPU, and theres no reason to preclude that. Link: http://lkml.kernel.org/r/1315437244-3788-4-git-send-email-jim.cromie@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index af0d65b41416..076eda53cfba 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -528,7 +528,7 @@ static void print_noise_pct(double total, double avg)
528 528
529 if (csv_output) 529 if (csv_output)
530 fprintf(output, "%s%.2f%%", csv_sep, pct); 530 fprintf(output, "%s%.2f%%", csv_sep, pct);
531 else 531 else if (pct)
532 fprintf(output, " ( +-%6.2f%% )", pct); 532 fprintf(output, " ( +-%6.2f%% )", pct);
533} 533}
534 534