summaryrefslogtreecommitdiff
path: root/main/asterisk.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-04-11 02:59:19 +0000
committerMatthew Jordan <mjordan@digium.com>2014-04-11 02:59:19 +0000
commit4f30c7e91fb0ad4c9936336e6acbf1e0f4106dea (patch)
tree7e34242b2886f968c16249d41a45ec9ef33d0be6 /main/asterisk.c
parentaf95d8c1d26e3bfa9fb668729adbafe2fe34d906 (diff)
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. (5) The old refcounter implementation in utils/ has been removed. Review: https://reviewboard.asterisk.org/r/3377/ ........ Merged revisions 412114 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 412115 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 412153 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 3518002b5..a600db097 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -4267,6 +4267,8 @@ int main(int argc, char *argv[])
register_config_cli();
read_config_maps();
+ astobj2_init();
+
if (ast_opt_console) {
if (el_hist == NULL || el == NULL)
ast_el_initialize();
@@ -4376,8 +4378,6 @@ int main(int argc, char *argv[])
threadstorage_init();
- astobj2_init();
-
ast_format_attr_init();
ast_format_list_init();
if (ast_rtp_engine_init()) {