perf report: Speed up exit path
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Aug 2010 22:41:44 +0000 (19:41 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Aug 2010 22:46:47 +0000 (19:46 -0300)
commit71e7cf3a37ba6189fa7215555e8e760b400fc23b
tree6b0fcb189beca167f8376e9d6ab9b3f598d861ae
parent33e26a1b492d21283d1372ddd547562d371dab98
perf report: Speed up exit path

When cmd_record exits the whole perf binary will exit right after,
so no need to traverse lots of complex data structures freeing them.

Sticked a comment for leak detectives and for a experiment with obstacks
to be performed so that we can speed up freeing that memory.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c