]> 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:15 +0000 (07:25 -0500)
commitb1c5753b78344d2fc6b4d209116dea1f50d76bcd
tree4dca23e1371bd0c25427e80005f81e57fa235716
parent6e75e2565d35ef8f46c6f67de41097374f987584
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