From 6f859142cebdfbeefd50297c849bc134e18a3bfa Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Thu, 5 Aug 2010 19:41:44 -0300 Subject: [PATCH] --- yaml --- r: 209250 b: refs/heads/master c: 71e7cf3a37ba6189fa7215555e8e760b400fc23b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-report.c | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 969bf374c139..26194c7b20a4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 33e26a1b492d21283d1372ddd547562d371dab98 +refs/heads/master: 71e7cf3a37ba6189fa7215555e8e760b400fc23b diff --git a/trunk/tools/perf/builtin-report.c b/trunk/tools/perf/builtin-report.c index 4a7a74362451..55fc1f46892a 100644 --- a/trunk/tools/perf/builtin-report.c +++ b/trunk/tools/perf/builtin-report.c @@ -348,7 +348,18 @@ static int __cmd_report(void) hists__tty_browse_tree(&session->hists_tree, help); out_delete: - perf_session__delete(session); + /* + * Speed up the exit process, for large files this can + * take quite a while. + * + * XXX Enable this when using valgrind or if we ever + * librarize this command. + * + * Also experiment with obstacks to see how much speed + * up we'll get here. + * + * perf_session__delete(session); + */ return ret; }