enable profiling for memory leaks

Eduardo Silva edsiper at gmail.com
Mon Nov 25 08:54:31 PST 2013


thanks! that worked :)


On Mon, Nov 25, 2013 at 10:40 AM, Jason Evans <jasone at canonware.com> wrote:

> 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
>
> Jason




-- 
Eduardo Silva
http://edsiper.linuxchile.cl
http://monkey-project.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20131125/bd8d43e4/attachment.html>


More information about the jemalloc-discuss mailing list