Re: [PATCH v2] perf data: Fix releasing event_class

From: Jiri Olsa
Date: Thu Jan 28 2016 - 14:42:31 EST


On Thu, Jan 28, 2016 at 05:09:30PM -0200, Arnaldo Carvalho de Melo wrote:

SNIP

> > however even with this patch I can see perf report getting
> > more memory every time it reloads the data.. either there's
> > something else, or I'm looking at it wrong ;-)
>
> So, for the last delete, IIRC that teardown was removed because it made
> the exit operation to be slower than just not calling
> perf_evlist__delete (or was it perf_session__delete, don't recall right
> now, probably the later, because it would delete all the threads, mmaps,
> etc).
>
> But yeah, for switching perf.data files on the fly, we better free all
> that up...

ook, I'll check some more and queue it in my next post

jirka