cvs: php4 /ext/ircg ircg.c

From: Date: Mon, 13 Aug 2001 21:37:48 +0000
Subject: cvs: php4 /ext/ircg ircg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6790@lists.php.net to get a copy of this message
sas Mon Aug 13 17:37:48 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: print some more stats on format msg vs tokenizer invocations Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.101 php4/ext/ircg/ircg.c:1.102 --- php4/ext/ircg/ircg.c:1.101 Mon Aug 13 17:22:02 2001 +++ php4/ext/ircg/ircg.c Mon Aug 13 17:37:48 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ircg.c,v 1.101 2001/08/13 21:22:02 sas Exp $ */ +/* $Id: ircg.c,v 1.102 2001/08/13 21:37:48 sas Exp $ */ #include <time.h> @@ -44,7 +44,8 @@ static HashTable h_fmt_msgs; /* Integer IDs to php_fmt_msgs_t * */ static int irconn_id = 1; -static unsigned long irc_connects, irc_set_currents, irc_quit_handlers; +static unsigned long irc_connects, irc_set_currents, irc_quit_handlers, + exec_fmt_msgs, exec_token_compiler; /* {{{ Format string numbers */ enum { @@ -419,6 +420,8 @@ unsigned long len; char c; smart_str *s; + + exec_token_compiler++; if (fmt[0] == '\0') { f->t = NULL; @@ -488,6 +491,8 @@ const token_t *t = fmt_msg->t; int ntoken = fmt_msg->ntoken; + exec_fmt_msgs++; + #define IRCG_APPEND(what) \ switch (t[i].para.v & 7) { \ case P_JS: \ @@ -1812,6 +1817,10 @@ php_info_print_table_row(2, "scanner result cache misses", buf); sprintf(buf, "%lu", cache_collisions); php_info_print_table_row(2, "scanner result cache collisions", buf); + sprintf(buf, "%lu", exec_fmt_msgs); + php_info_print_table_row(2, "executed format messages", buf); + sprintf(buf, "%lu", exec_token_compiler); + php_info_print_table_row(2, "number of tokenizer invocations", buf); sprintf(buf, "%lu", irc_connects); php_info_print_table_row(2, "irc_connects", buf); sprintf(buf, "%lu", irc_set_currents);

« previous php.cvs (#6790) next »