-
- Downloads
main/astobj2: Make REF_DEBUG a menuselect item; improve REF_DEBUG output
This patch does the following: (1) It makes REF_DEBUG a meneselect item. Enabling REF_DEBUG now enables REF_DEBUG globally throughout Asterisk. (2) The ref debug log file is now created in the AST_LOG_DIR directory. Every run will now blow away the previous run (as large ref files sometimes caused issues). We now also no longer open/close the file on each write, instead relying on fflush to make sure data gets written to the file (in case the ao2 call being performed is about to cause a crash) (3) It goes with a comma delineated format for the ref debug file. This makes parsing much easier. This also now includes the thread ID of the thread that caused ref change. (4) A new python script instead for refcounting has been added in the contrib/scripts folder. Review: https://reviewboard.asterisk.org/r/3377/ ........ Merged revisions 412114 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@412115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- build_tools/cflags.xml 3 additions, 0 deletionsbuild_tools/cflags.xml
- channels/chan_sip.c 0 additions, 15 deletionschannels/chan_sip.c
- channels/sip/security_events.c 0 additions, 2 deletionschannels/sip/security_events.c
- contrib/scripts/refcounter.py 171 additions, 0 deletionscontrib/scripts/refcounter.py
- include/asterisk/astobj2.h 70 additions, 59 deletionsinclude/asterisk/astobj2.h
- main/asterisk.c 2 additions, 2 deletionsmain/asterisk.c
- main/astobj2.c 38 additions, 21 deletionsmain/astobj2.c
- main/utils.c 8 additions, 1 deletionmain/utils.c
Loading
Please register or sign in to comment