perf top: Don't allocate the source parsing members upfront
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 Nov 2009 20:38:02 +0000 (18:38 -0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 19 Nov 2009 05:03:41 +0000 (06:03 +0100)
commitb269876c8d57fb8c801bea1fc34b461646c5abd0
treec9ac282b3a5f2d18a865180eb85c888f9e8cd338
parent5a8e5a3065bf04b7673262fd6c46123e4b888d2b
perf top: Don't allocate the source parsing members upfront

Defer to parse_source() time allocating it.

Now we use about this much memory:

 1724 root      20   0 42104  10m  940 S  0.0  0.4   0:00.23 perf

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1258490282-1821-3-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-top.c