summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/copt.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/copt.lib.php')
-rw-r--r--frontends/php/include/copt.lib.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/php/include/copt.lib.php b/frontends/php/include/copt.lib.php
index c3fe8a60..ce1b3b05 100644
--- a/frontends/php/include/copt.lib.php
+++ b/frontends/php/include/copt.lib.php
@@ -86,7 +86,7 @@
** Eugene Grigorjev (eugene.grigorjev@zabbix.com)
**/
- //define("USE_PROFILING",1);
+ define("USE_PROFILING",1);
if(defined('USE_PROFILING'))
{
@@ -115,9 +115,11 @@ if(defined('USE_PROFILING'))
$endtime = COpt::getmicrotime();
if(is_null($type)) $type="global";
- echo "<br/>\nTime to execute (".$type."): ". bcsub($endtime,$starttime[$type],6)." seconds!\n<br/>";
+// echo "<br/>\nTime to execute (".$type."): ". bcsub($endtime,$starttime[$type],6)." seconds!\n<br/>";
+ echo "<br/>\nTime to execute (".$type."): ".($endtime-$starttime[$type])." seconds!\n<br/>";
}
}
+ COpt::profiling_start("page");
}
else
{