perf hist: Calculate max_sym name len and nr_entries
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 May 2010 16:57:51 +0000 (13:57 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 May 2010 22:49:08 +0000 (19:49 -0300)
commitfefb0b94bbab858be0909a7eb5ef357e0f996a79
treedb46b10241ad338db05e9ee68bb0ee45954d7b8a
parent1c02c4d2e92f2097f1bba63ec71560b0e05a7f36
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>
tools/perf/builtin-report.c
tools/perf/util/hist.c
tools/perf/util/hist.h
tools/perf/util/symbol.c
tools/perf/util/symbol.h