How to change lg_prof_interval at runtime?
I am trying to use jemalloc to do memory profiling.
jeprof got stuck when handling dumped heap files
I want to profile memory allocation of my program. So I compile with JEMALLOC_PROF=1
and JEMALLOC_PROF_LIBUNWIND=1
, and run with export MALLOC_CONF="prof:true,prof_active:true,lg_prof_interval:25"
.
How can I track C++’s memory allocation module-wise by Allocator?
I have a large C++ program which uses much of the standard libraries. It also uses C-style allocation malloc much. I want to analyze how much memory is consumed in one module.
How can I allocate memory on a certain jemalloc’s arena in C++
From jrmalloc’s documents, I understand that there are some non-standad API like mallocx
. Calling such API which a MALLOCX_ARENA
flag one can specify which arena the alloc happens.
How can I allocate memory on a certain jemalloc’s arena in C++
From jrmalloc’s documents, I understand that there are some non-standad API like mallocx
. Calling such API which a MALLOCX_ARENA
flag one can specify which arena the alloc happens.