]> 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:23:05 +0000 (06:23 -0600)
commit9c5a8066a6599366468c6b87f3badb21d90fac01
tree8fd85173ba5635e49d76d940d9343cf04b653136
parenta687c7919d43ffb8caa1ff3f2179e44bc3d94013
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