[sr-dev] [kamailio] kex: per module memory debugging (#225)

Stefan Mititelu notifications at github.com
Mon Jun 29 16:50:17 CEST 2015


Kex module updated to also give some details about memory used by each module.
Changed f_*, q_* and tlsf_* memory stubs to also include the module name.
Added 2 new memory API functions(for each of the memory algos) which will
iterate throughout the memory fragments and agregate the memory size used by
each function in order to print it.
Tested with MEMMNG=0,1,2 and MEMDBG=0,1. Use "kamcmd mem.stat mod_name pkg/shm/all" to test
Updated doku.
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/225

-- Commit Summary --

  * kex: per module memory debugging

-- File Changes --

    M events.c (25)
    M events.h (4)
    M mem/f_malloc.c (135)
    M mem/f_malloc.h (47)
    M mem/mem.h (32)
    M mem/q_malloc.c (113)
    M mem/q_malloc.h (40)
    M mem/shm_mem.c (4)
    M mem/shm_mem.h (32)
    M mem/src_loc.h (2)
    M mem/tlsf.c (105)
    M mem/tlsf.h (32)
    M modules/ctl/binrpc_run.c (12)
    M modules/kex/doc/kex_admin.xml (76)
    M modules/kex/kex_mod.c (7)
    A modules/kex/mod_stats.c (288)
    A modules/kex/mod_stats.h (37)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/225.patch
https://github.com/kamailio/kamailio/pull/225.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/225
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150629/e206edfb/attachment-0001.html>


More information about the sr-dev mailing list