diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-08 17:15:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-08 17:15:28 -0400 |
commit | aefcf37b82886260d8540c9fb815e613c8977e06 (patch) | |
tree | 8630ed802497d965edbc0c05b8599f805fa0cb47 /tools/perf/builtin-annotate.c | |
parent | 80d496be89ed7dede5abee5c057634e80a31c82d (diff) |
perf_counter tools: Standardize color printing
The rule is:
- high overhead: red
- mid overhead: green
- low overhead: normal (white/black)
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
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: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r-- | tools/perf/builtin-annotate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 0e23fe98ec4e..3334a8bb1d51 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
@@ -1085,8 +1085,9 @@ parse_line(FILE *file, struct symbol *sym, uint64_t start, uint64_t len) | |||
1085 | percent = 100.0 * hits / sym->hist_sum; | 1085 | percent = 100.0 * hits / sym->hist_sum; |
1086 | 1086 | ||
1087 | /* | 1087 | /* |
1088 | * We color high-overhead entries in red, low-overhead | 1088 | * We color high-overhead entries in red, mid-overhead |
1089 | * entries in green - and keep the middle ground normal: | 1089 | * entries in green - and keep the low overhead places |
1090 | * normal: | ||
1090 | */ | 1091 | */ |
1091 | if (percent >= 5.0) | 1092 | if (percent >= 5.0) |
1092 | color = PERF_COLOR_RED; | 1093 | color = PERF_COLOR_RED; |