Made boot timing debug code more accurate.

This commit is contained in:
2009-08-17 19:48:48 +03:00
parent b3c17af11c
commit 383627421a
2 changed files with 4 additions and 3 deletions

View File

@@ -11,6 +11,8 @@
$config_path = dirname(dirname(__FILE__))."/config";
$start = microtime(true);
// initial boot and environment setup
require_once($config_path."/init/boot.php");
@@ -18,4 +20,6 @@ require_once($config_path."/init/boot.php");
// initialize zynapse
Zynapse::init();
echo "<br />\n<br />\nboot time: ".number_format(microtime(true) - $start, 6)." seconds<br />\n";
?>

View File

@@ -49,13 +49,10 @@ class Zynapse {
require_once(ZNAP_LIB_ROOT."/action_view.php");
require_once(ZNAP_LIB_ROOT."/active_session.php");
$start = microtime(true);
self::init_env();
self::init_base();
self::init_view();
echo microtime(true) - $start."<br />\n";
echo "hello world<br />\n";
echo self::$env->environment."<br />\n<br />\n";
}