diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-19 12:37:59 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-19 12:37:59 -0400 |
commit | 2cf9cebf0878e384630f6fd5e1abd830c0cd99b3 (patch) | |
tree | a33b8ee8ce31b2550d77c29084ec5d5386deb78d /tools/perf | |
parent | e4419b8edb6dead17cbc13a477b953399ee7571c (diff) |
perf hists browser: Honour symbol_conf.show_{nr_samples,total_period}
We lost that when we move it outside hist_entry__snprintf, but better
leave it untangled of 'perf diff' stuff (pair_hist, etc).
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-qlhb6ictf5twykog6x344s0b@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.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c index d76287513525..9e23bce98827 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c | |||
@@ -577,6 +577,16 @@ static int hist_browser__show_entry(struct hist_browser *self, | |||
577 | if (!current_entry || !self->b.navkeypressed) | 577 | if (!current_entry || !self->b.navkeypressed) |
578 | ui_browser__set_color(&self->b, HE_COLORSET_NORMAL); | 578 | ui_browser__set_color(&self->b, HE_COLORSET_NORMAL); |
579 | 579 | ||
580 | if (symbol_conf.show_nr_samples) { | ||
581 | slsmg_printf(" %11u", entry->nr_events); | ||
582 | width -= 12; | ||
583 | } | ||
584 | |||
585 | if (symbol_conf.show_total_period) { | ||
586 | slsmg_printf(" %12" PRIu64, entry->period); | ||
587 | width -= 13; | ||
588 | } | ||
589 | |||
580 | slsmg_write_nstring(s, width); | 590 | slsmg_write_nstring(s, width); |
581 | ++row; | 591 | ++row; |
582 | ++printed; | 592 | ++printed; |