aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-10-18 13:54:24 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-10-18 15:03:46 -0400
commit33f62b3fc4edd46d80c4420b81dfcb267c8bdb5e (patch)
tree588ce87db30e179886fd8655d55a04023fa172e6 /tools/perf
parente039fc727c40c5541bb22aed7f7030dea3e6fb7a (diff)
perf top tui: Give color hints just on the percentage, like on --stdio
And like it was in the old top. Another change so that the familiarity with the old visual is maintained. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-ypmyx9p0ah4byqaygrnb09x8@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/ui/browsers/hists.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c
index 0eced19e3bdb..936e641e9f86 100644
--- a/tools/perf/util/ui/browsers/hists.c
+++ b/tools/perf/util/ui/browsers/hists.c
@@ -579,6 +579,9 @@ static int hist_browser__show_entry(struct hist_browser *self,
579 if (!self->b.navkeypressed) 579 if (!self->b.navkeypressed)
580 width += 1; 580 width += 1;
581 581
582 if (!current_entry || !self->b.navkeypressed)
583 ui_browser__set_color(&self->b, HE_COLORSET_NORMAL);
584
582 slsmg_write_nstring(s, width); 585 slsmg_write_nstring(s, width);
583 ++row; 586 ++row;
584 ++printed; 587 ++printed;