TLSF now has a debug mode, that will dump every memory block when xxx_status() is called, and a summary of still allocated blocks when xxx_sums() is called.
configure build with
make MEMDBG=1 MEMMNG=2 cfg
to enable maximum debuging informations (source location of mallocs and frees) You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/164
-- Commit Summary --
* mem: TLSF memory summary and sums implementation
-- File Changes --
M Makefile.defs (3) M mem/mem.h (21) M mem/q_malloc.c (2) M mem/q_malloc.h (2) M mem/shm_mem.h (12) M mem/tlsf.c (273) M mem/tlsf.h (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/164.patch https://github.com/kamailio/kamailio/pull/164.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/164
It can be merged.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/164#issuecomment-104008492
Merged #164.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/164#event-309984329