public function gatherConsoleData() { $logs = PQPConsole::getLogs(); if ($logs['console']) { foreach ($logs['console'] as $key => $log) { if ($log['type'] == 'log') { $logs['console'][$key]['data'] = print_r($log['data'], true); } elseif ($log['type'] == 'memory') { $logs['console'][$key]['data'] = $this->getReadableFileSize($log['data']); } elseif ($log['type'] == 'speed') { $logs['console'][$key]['data'] = $this->getReadableTime(($log['data'] - $this->startTime) * 1000); } } } $this->output['logs'] = $logs; }
protected function _speed($name) { PQPConsole::logSpeed($name); }