steffen: server/kolab-resource-handlers/kolab-resource-handlers/freebusy freebusy.class.php, 1.26, 1.27 pfb.php, 1.20, 1.21

cvs at intevation.de cvs at intevation.de
Tue Jun 14 16:46:22 CEST 2005


Author: steffen

Update of /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/freebusy
In directory doto:/tmp/cvs-serv32695/kolab-resource-handlers/freebusy

Modified Files:
	freebusy.class.php pfb.php 
Log Message:
added some profiling info. That Net_IMAP parser really has a problem...

Index: freebusy.class.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/freebusy/freebusy.class.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- freebusy.class.php	26 Jan 2005 07:32:31 -0000	1.26
+++ freebusy.class.php	14 Jun 2005 14:46:20 -0000	1.27
@@ -137,7 +137,9 @@
       $vCal->addComponent($vFb);
       return array($vCal->exportvCalendar(),$vCal->exportvCalendar());
     }
+	$getMessages_start = microtime_float();
     $messages = $this->imap->getMessages();
+	myLog("FreeBusy::imap->getMessages() took ".(microtime_float()-$getMessages_start)." secs.", RM_LOG_DEBUG);
     if( PEAR::isError( $messages ) ) return array( $messages, null);
     foreach ($messages as $textmsg) {
       $mimemsg = &MIME_Structure::parseTextMIMEMessage($textmsg);
@@ -416,4 +418,4 @@
   var $imap;
 };
 
-?>
\ No newline at end of file
+?>

Index: pfb.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/freebusy/pfb.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- pfb.php	14 Jun 2005 13:36:35 -0000	1.20
+++ pfb.php	14 Jun 2005 14:46:20 -0000	1.21
@@ -18,6 +18,14 @@
  *  Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
  */
 
+  // Profiling
+function microtime_float() {
+    list($usec, $sec) = explode(" ", microtime());
+    return ((float)$usec + (float)$sec);
+}
+$start_time = microtime_float();
+
+
 error_reporting(E_ALL);
 $max_execution_time = ini_get('max_execution_time');
 if( $max_execution_time < 200 ) ini_set('max_execution_time', '200');
@@ -194,6 +202,6 @@
 #print_r($acl);
 
 // Finish up
-myLog("pfb.php complete", RM_LOG_DEBUG);
+myLog("pfb.php complete, execution time was ".(microtime_float()-$start_time)." secs.", RM_LOG_DEBUG);
 shutdown();
 ?>





More information about the commits mailing list