enable profiling for memory leaks

Jason Evans jasone at canonware.com
Mon Nov 25 08:40:58 PST 2013

On Nov 24, 2013, at 11:56 PM, Eduardo Silva <edsiper at gmail.com> wrote:
> i have just integrated jemalloc in our open source project. I have linked jemalloc statically and after some tests i am not able to get any profiling file for analysis.
> jemalloc configure:
>    ./configure --enable-prof --with-jemalloc-prefix=je_ --enable-cc-silence
> once compiled and linked to my sources i do:
>    $ MALLOC_CONF=prof_leak:true,prof:true bin/monkey
> but on exit there is no details, do i am missing some steps ?

The prefix also applies to the environment variable you set.  Try:

	JE_MALLOC_CONF=prof_leak:true,prof:true bin/monkey


More information about the jemalloc-discuss mailing list