mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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>
This commit is contained in:
parent
80d496be89
commit
aefcf37b82
3 changed files with 19 additions and 12 deletions
|
@ -1085,8 +1085,9 @@ parse_line(FILE *file, struct symbol *sym, uint64_t start, uint64_t len)
|
|||
percent = 100.0 * hits / sym->hist_sum;
|
||||
|
||||
/*
|
||||
* We color high-overhead entries in red, low-overhead
|
||||
* entries in green - and keep the middle ground normal:
|
||||
* We color high-overhead entries in red, mid-overhead
|
||||
* entries in green - and keep the low overhead places
|
||||
* normal:
|
||||
*/
|
||||
if (percent >= 5.0)
|
||||
color = PERF_COLOR_RED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue