On Thu, 27 Apr 2023, tlaro...@polynum.com wrote:

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.


The *_p.a files are used for call-profiling. What you want is jemalloc's
allocation profiling which is a different beast entirely. For this you'll have to re-compile jemalloc with `JEMALLOC_PROF' defined either in the
Makefile:

src/external/bsd/jemalloc/lib/Makefile.inc

or, in the defs file:

src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h

-RVP

Reply via email to