Re: [PATCH 1/3] perf tools: Allow to build with -ltcmalloc

2019-10-14 Thread Arnaldo Carvalho de Melo
Em Sun, Oct 13, 2019 at 06:33:22PM -0700, Andi Kleen escreveu: > > diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf > > index a099a8a89447..8f1ba986d3bf 100644 > > --- a/tools/perf/Makefile.perf > > +++ b/tools/perf/Makefile.perf > > @@ -114,6 +114,8 @@ include ../scripts/utilities.

Re: [PATCH 1/3] perf tools: Allow to build with -ltcmalloc

2019-10-13 Thread Andi Kleen
> diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf > index a099a8a89447..8f1ba986d3bf 100644 > --- a/tools/perf/Makefile.perf > +++ b/tools/perf/Makefile.perf > @@ -114,6 +114,8 @@ include ../scripts/utilities.mak > # Define NO_LIBZSTD if you do not want support of Zstandard based

[PATCH 1/3] perf tools: Allow to build with -ltcmalloc

2019-10-13 Thread Jiri Olsa
By using "make TCMALLOC=1" you can enable perf to be build for usage with libtcmalloc.so (gperftools). Get heap profile (tools/perf directory): $ $ make TCMALLOC=1 DEBUG=1 $ HEAPPROFILE=/tmp/heapprof ./perf ... $ pprof ./perf /tmp/heapprof.000* (pprof) top Total: 2335.5 MB 1735.1