public static function addExcludeRegexp($regexp) { self::$excludeRegexp = $regexp; }
public static function close() { if (self::getConfig('optimize', 'classes_combine')) { Lms_NameScheme_Autoload::compileTo(APP_ROOT . '/includes/All.php'); } foreach (self::$_config['databases'] as $dbAlias => $dbConfig) { if (Lms_Db::isInstanciated($dbAlias)) { $db = Lms_Db::get($dbAlias); $sqlStatistics = $db->getStatistics(); $time = round(1000 * $sqlStatistics['time']); $count = $sqlStatistics['count']; Lms_Debug::debug("Database {$dbAlias} time: {$time} ms ({$count} queries)"); } } foreach (Lms_Timers::getTimers() as $name => $timer) { $time = round(1000 * $timer->getSumTime()); Lms_Debug::debug('Profiling "' . $name . '": ' . $time . ' ms (' . $timer->getCount() . ')'); } Lms_Debug::debug('Used memory: ' . round(memory_get_usage() / 1024) . ' KB'); self::$_mainTimer->stop(); $time = round(1000 * self::$_mainTimer->getSumTime()); Lms_Debug::debug("Execution time: {$time} ms"); }