Made MALLOC_DEBUG less CPU intensive by default.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 27 Aug 2013 18:52:23 +0000 (18:52 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 27 Aug 2013 18:52:23 +0000 (18:52 +0000)
commit3540c7ac6eca33609c294baa1fbcf56722536f6a
tree3419e765e4feef95c35dbc0f1e208fea7897bf80
parentc32f8a5ca972db19719c7512380c820ba972014a
Made MALLOC_DEBUG less CPU intensive by default.

Storing a backtrace for each allocation in anticipation of a memory
management problem is very CPU intensive.

* Added the CLI "memory backtrace {on|off}" command to request that the
backtrace be gathered only on request.  The backtrace is off by default.

(issue ASTERISK-22221)
Reported by: Matt Jordan
........

Merged revisions 397809 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/astmm.c