]> git.ipfire.org Git - thirdparty/asterisk.git/commit
astmm.c: Display backtrace with memory show allocations
authorGeorge Joseph <gjoseph@digium.com>
Mon, 23 Sep 2019 12:09:29 +0000 (06:09 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 23 Sep 2019 12:25:33 +0000 (07:25 -0500)
commite82f2f6e82c05016125b67e5fb1e5b4e0885b2dd
tree302e25879182c18b0efbcf8a591374cec4630514
parente79a3b428adecec7bb1222d7f22664493cc3e498
astmm.c:  Display backtrace with memory show allocations

You can currently capture backtraces of memory allocations but they
only get displayed when you stop asterisk and the atexit hooks
are enabled.  Now, if memory backtrace is on and you issue a
"memory show allocations" CLI command for a specific file, then
a backtrace will show for each allocation that occurred after
you turned "memory backtrace on".  The backtrace display is shown
only when a specific file's allocations are displayed to prevent
a massive CLI dump of every file's allocations.

Change-Id: Ic657afc1fc6ec7205e16eb36a97a611d235a2b4f
main/astmm.c