[SR-Dev] purpose of MDBG, difference between memlog, memdbg

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Mar 18 21:53:01 CET 2009


On Mar 18, 2009 at 13:11, Henning Westerholt <henning.westerholt at 1und1.de> wrote:
> Hi,
> 
> comparing the memory manager in sip-router and kamilio i wondered what is the 
> purpose of this mem/memdbg.h definitions. Both F_MALLOC and Q_MALLOC use 
> them, but also use the LOG(memlog,..) style of output informations. 
> 
> What is the difference between the memlog parameter (which we also have), and 
> the memdbg parameter? Google tells me that the first is the mem statistics 
> log level, and the former the mem debug level. Is this correct?

Yes, memdbg can be used to turn off malloc debugging info (if compiled
with malloc debugging). It's really very usefull :-)

Andrei



More information about the sr-dev mailing list