Index: trunk/core/kernel/startup.php =================================================================== diff -u -N -r4770 -r4771 --- trunk/core/kernel/startup.php (.../startup.php) (revision 4770) +++ trunk/core/kernel/startup.php (.../startup.php) (revision 4771) @@ -68,7 +68,7 @@ $debugger_start = getmicrotime(); include_once(KERNEL_PATH.'/utility/debugger.php'); $debugger_end = getmicrotime(); - if (isset($debugger)) { + if (isset($debugger) && dbg_ConstOn('DBG_PROFILE_INCLUDES')) { $debugger->profileStart('inc_globals', KERNEL_PATH.'/globals.php', $globals_start); $debugger->profileFinish('inc_globals', KERNEL_PATH.'/globals.php', $globals_end); $debugger->profilerAddTotal('includes', 'inc_globals');