perf hist: Calculate max_sym name len and nr_entries
Better done when we are adding entries, be it initially of when we're re-sorting the histograms. Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@ -296,13 +296,13 @@ static int __cmd_report(void)
|
||||
next = rb_first(&session->hists_tree);
|
||||
while (next) {
|
||||
struct hists *hists;
|
||||
u64 nr_hists;
|
||||
|
||||
hists = rb_entry(next, struct hists, rb_node);
|
||||
hists__collapse_resort(hists);
|
||||
nr_hists = hists__output_resort(hists);
|
||||
hists__output_resort(hists);
|
||||
if (use_browser)
|
||||
perf_session__browse_hists(&hists->entries, nr_hists,
|
||||
perf_session__browse_hists(&hists->entries,
|
||||
hists->nr_entries,
|
||||
hists->stats.total, help,
|
||||
input_name);
|
||||
else {
|
||||
|
Reference in New Issue
Block a user