Skip to content

Commit b99976e

Browse files
committed
perf annotate browser: Use the percent color for the whole line
Not just for the percentage number, to see the hot lines more easily. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 289c082 commit b99976e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tools/perf/util/ui/browsers/annotate.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
4444
struct objdump_line_rb_node *olrb = objdump_line__rb(ol);
4545
ui_browser__set_percent_color(self, olrb->percent, current_entry);
4646
slsmg_printf(" %7.2f ", olrb->percent);
47-
if (!current_entry)
48-
ui_browser__set_color(self, HE_COLORSET_CODE);
4947
} else {
5048
ui_browser__set_percent_color(self, 0, current_entry);
5149
slsmg_write_nstring(" ", 9);
@@ -57,6 +55,9 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
5755
slsmg_write_nstring(" ", width - 18);
5856
else
5957
slsmg_write_nstring(ol->line, width - 18);
58+
59+
if (!current_entry)
60+
ui_browser__set_color(self, HE_COLORSET_CODE);
6061
}
6162

6263
static double objdump_line__calc_percent(struct objdump_line *self,

0 commit comments

Comments
 (0)