Exemple #1
0
 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;
 }
Exemple #2
0
	protected function _speed($name)
	{
		PQPConsole::logSpeed($name);	
	}