public static function getDebugData() { if (self::isDebug()) { $aDebug[] = '共次总耗时:' . Yaf_G::getRunTime() . '毫秒'; if (isset(self::$_aInstance['orm'])) { $aDebug[] = Db_Orm::getDebugStat(); } if (isset(self::$_aInstance['cache'])) { $aDebug[] = Util_Memcache::getDebugStat(); } if (isset(self::$_aInstance['redis'])) { $aDebug[] = Util_Redis::getDebugStat(); } if (class_exists('Sdk_Base')) { $sInfo = Sdk_Base::getDebugStat(); if (!empty($sInfo)) { $aDebug[] = $sInfo; } } $sDebug = join(' ', $aDebug); $aDebug = self::getDebug()->getAll(); array_unshift($aDebug, $sDebug); return $aDebug; } return null; }