perf stat: Adjust print unit
authorNamhyung Kim <namhyung.kim@lge.com>
Mon, 6 Feb 2012 07:44:44 +0000 (16:44 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Feb 2012 21:17:11 +0000 (19:17 -0200)
commit5fde2523bddb71d96f12b6ee8d2a9a43cb99da96
tree2833458233e01dc78a900b444a03f6ee58dc834c
parent762b2935fc0ea2eab3a0edc8333fedb95266c7a9
perf stat: Adjust print unit

The default 'M/sec' unit is not useful if the result is small enough.

Adjust it dynamically according to the value.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1328514285-26232-1-git-send-email-namhyung.kim@lge.com
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c