Jemalloc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "sniffer přeložit s: povolením #define HAVE_LIBJEMALLOC ve voipmonitor.cpp knihovnou -ljemalloc v Makefile spouštět takto: MALLOC_CONF='prof:true' ./voipmonitor --conf...") |
No edit summary |
||
Line 1: | Line 1: | ||
Better use [[Internal_support_hints#voipmonitor_sniffer_memory_leaks_detect_and_debug]] | |||
sniffer přeložit s: | sniffer přeložit s: | ||
povolením #define HAVE_LIBJEMALLOC ve voipmonitor.cpp | povolením #define HAVE_LIBJEMALLOC ve voipmonitor.cpp |
Revision as of 09:24, 7 May 2025
Better use Internal_support_hints#voipmonitor_sniffer_memory_leaks_detect_and_debug
sniffer přeložit s:
povolením #define HAVE_LIBJEMALLOC ve voipmonitor.cpp knihovnou -ljemalloc v Makefile
spouštět takto:
MALLOC_CONF='prof:true' ./voipmonitor --config-file=/etc/voipmonitor.conf -k -v1
výstup získat takto:
echo 'jemalloc_stat_full' | nc 127.0.0.1 5029 > je_prof
z výstupu pdf dělat takto:
jeprof --show_bytes --pdf ./voipmonitor 'je_prof' > je_prof.pdf
nebo přímo získat výstup do pdf:
echo 'jemalloc_stat_full' | nc 127.0.0.1 5029 > /tmp/je_prof; jeprof --show_bytes --pdf ./voipmonitor /tmp/je_prof > je_prof.pdf
jemalloc je nutno sestavit s optionem --enable-prof
./configure --enable-prof --libdir=/usr/local/lib64