mirror of
https://github.com/jimeh/zynapse.git
synced 2026-02-19 07:06:39 +00:00
Made boot timing debug code more accurate.
This commit is contained in:
@@ -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";
|
||||
|
||||
?>
|
||||
3
vendor/zynapse/zynapse.php
vendored
3
vendor/zynapse/zynapse.php
vendored
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user