From 383627421ab48619cf06508a1f539fb5df655dba Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 17 Aug 2009 19:48:48 +0300 Subject: [PATCH] Made boot timing debug code more accurate. --- public/dispatch.php | 4 ++++ vendor/zynapse/zynapse.php | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/dispatch.php b/public/dispatch.php index 3b5a94a..a1090bf 100644 --- a/public/dispatch.php +++ b/public/dispatch.php @@ -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 "
\n
\nboot time: ".number_format(microtime(true) - $start, 6)." seconds
\n"; + ?> \ No newline at end of file diff --git a/vendor/zynapse/zynapse.php b/vendor/zynapse/zynapse.php index ef2d405..35a5b53 100644 --- a/vendor/zynapse/zynapse.php +++ b/vendor/zynapse/zynapse.php @@ -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."
\n"; echo "hello world
\n"; echo self::$env->environment."
\n
\n"; }