lkml.org 
[lkml]   [2011]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 7/7] perf top tui: Give color hints just on the percentage, like on --stdio
    Date
    From: Arnaldo Carvalho de Melo <acme@redhat.com>

    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>
    ---
    tools/perf/util/ui/browsers/hists.c | 3 +++
    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 0eced19..936e641 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,
    if (!self->b.navkeypressed)
    width += 1;

    + if (!current_entry || !self->b.navkeypressed)
    + ui_browser__set_color(&self->b, HE_COLORSET_NORMAL);
    +
    slsmg_write_nstring(s, width);
    ++row;
    ++printed;
    --
    1.6.2.5


    \
     
     \ /
      Last update: 2011-10-18 23:47    [W:0.024 / U:0.228 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site