[asterisk-commits] rizzo: branch rizzo/astobj2 r47975 - /team/rizzo/astobj2/main/asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Nov 23 14:23:50 MST 2006


Author: rizzo
Date: Thu Nov 23 15:23:50 2006
New Revision: 47975

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47975
Log:
just to tune the statistics, add a profile counter for 1 second,
scaled by 1000 so we know how many ticks are in 1ms


Modified:
    team/rizzo/astobj2/main/asterisk.c

Modified: team/rizzo/astobj2/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/main/asterisk.c?view=diff&rev=47975&r1=47974&r2=47975
==============================================================================
--- team/rizzo/astobj2/main/asterisk.c (original)
+++ team/rizzo/astobj2/main/asterisk.c Thu Nov 23 15:23:50 2006
@@ -2648,6 +2648,13 @@
 	signal(SIGCHLD, child_handler);
 	signal(SIGPIPE, SIG_IGN);
 
+	{
+		int i = ast_add_profile("1 ms", 1000);
+		ast_mark(i, 1);
+		sleep(1);
+		ast_mark(i, 0);
+	}
+		
 	/* ensure that the random number generators are seeded with a different value every time
 	   Asterisk is started
 	*/



More information about the asterisk-commits mailing list