/** * * 运行完成后的回调 * * * * 1. log中增加 时间消耗、内存消耗 统计 * * 2. 输出日志 * */ public static function execShutdownCallback() { Core_Timer::endRecord(); Core_Log::debug('php status', array('cost' => Core_Timer::getResult(), 'mem' => memory_get_peak_usage(TRUE))); }
public static function endRecord() { self::$end = (int) (microtime(TRUE) * 1000); }