tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

jemalloc profiling



I was trying to use the profiling capabilities of jemalloc and found
that there is a /usr/lib/libjemalloc_p.a that seems (from
/usr/src/distrib/sets/lists/comp/mi) to be the profiling version.

When setting MALLOC_CONF, the "normally" linked processes spit about
whether "Malformed conf string" (when using "opt.prof:true,...") or
"Invalid conf pair: x:y" ("prof:true,...") but I can ignore these and
guess that "prof:true,prof_leak:true,..." is valid for the programs
linked against libjemalloc_p---note that jemalloc(3) seems to be the
pristine version, and there is discrepancies with the NetBSD use since,
for example, no jemalloc/jemalloc.h (since it is integrated as
malloc implementation), and "opt.prof" etc. are mentionned while it
seems in MALLOC_CONF one needs "prof" etc.

But I don't get any report or dump with my program compiled against
libjemalloc_p.a so I'm in a blue whether this can work or not.

Is there some special incantation that makes it work? or is there the
necessity to install the debug set to expect it to work? Or is it simply
not possible to mix the profiling version on NetBSD because the not
profiling version is integrated in the libc?

TIA,
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index