I'm trying to solve some memory leaks, and I'm using jemalloc to dump heap profiles:
MALLOC_CONF=prof:true,lg_prof_interval:30,lg_prof_sample:17
Works as charm, but I don't know what I'm looking at :)
Does jemaloc heap profiling show all (sampled) allocations, or just the ones that haven't been free()-ed at the moment of taking a dump? Or to put it differently: is it an allocation profile, or "live" blocks profile?