src/Shell/QueueShell.php
public function stats() {
		$this->out('Jobs currently in the queue:');

		$types = $this->QueuedJobs->getTypes()->toArray();
		foreach ($types as $type) {
			$this->out('      ' . str_pad($type, 20, ' ', STR_PAD_RIGHT) . ': ' . $this->QueuedJobs->getLength($type));
		}
		$this->hr();
		$this->out('Total unfinished jobs: ' . $this->QueuedJobs->getLength());
		$this->out('Running workers (processes): ' . $this->QueueProcesses->findActive()->count());
		$this->out('Server name: ' . $this->QueueProcesses->buildServerString());
		$this->hr();
		$this->out('Finished job statistics:');
		$data = $this->QueuedJobs->getStats();
		foreach ($data as $item) {
			$this->out(' ' . $item['job_type'] . ': ');
			$this->out('   Finished Jobs in Database: ' . $item['num']);
			$this->out('   Average Job existence    : ' . str_pad(Number::precision($item['alltime']), 8, ' ', STR_PAD_LEFT) . 's');
			$this->out('   Average Execution delay  : ' . str_pad(Number::precision($item['fetchdelay']), 8, ' ', STR_PAD_LEFT) . 's');
			$this->out('   Average Execution time   : ' . str_pad(Number::precision($item['runtime']), 8, ' ', STR_PAD_LEFT) . 's');
		}
	}
public function stats() {
		$this->out('Jobs currently in the queue:');

		$types = $this->QueuedJobs->getTypes()->toArray();
		foreach ($types as $type) {
			$this->out('      ' . str_pad($type, 20, ' ', STR_PAD_RIGHT) . ': ' . $this->QueuedJobs->getLength($type));
		}
		$this->hr();
		$this->out('Total unfinished jobs: ' . $this->QueuedJobs->getLength());
		$this->out('Running workers (processes): ' . $this->QueueProcesses->findActive()->count());
		$this->out('Server name: ' . $this->QueueProcesses->buildServerString());
		$this->hr();
		$this->out('Finished job statistics:');
		$data = $this->QueuedJobs->getStats();
		foreach ($data as $item) {
			$this->out(' ' . $item['job_type'] . ': ');
			$this->out('   Finished Jobs in Database: ' . $item['num']);
			$this->out('   Average Job existence    : ' . str_pad(Number::precision($item['alltime']), 8, ' ', STR_PAD_LEFT) . 's');
			$this->out('   Average Execution delay  : ' . str_pad(Number::precision($item['fetchdelay']), 8, ' ', STR_PAD_LEFT) . 's');
			$this->out('   Average Execution time   : ' . str_pad(Number::precision($item['runtime']), 8, ' ', STR_PAD_LEFT) . 's');
		}
	}
public function stats ( ) { $ this -> out ( 'Jobs currently in the queue:' ) ; $ types = $ this -> QueuedJobs -> getTypes ( ) -> toArray ( ) ; foreach ( $ types as $ type ) { $ this -> out ( '      ' . str_pad ( $ type , 20 , ' ' , STR_PAD_RIGHT ) . ': ' . $ this -> QueuedJobs -> getLength ( $ type ) ) ; } $ this -> hr ( ) ; $ this -> out ( 'Total unfinished jobs: ' . $ this -> QueuedJobs -> getLength ( ) ) ; $ this -> out ( 'Running workers (processes): ' . $ this -> QueueProcesses -> findActive ( ) -> count ( ) ) ; $ this -> out ( 'Server name: ' . $ this -> QueueProcesses -> buildServerString ( ) ) ; $ this -> hr ( ) ; $ this -> out ( 'Finished job statistics:' ) ; $ data = $ this -> QueuedJobs -> getStats ( ) ; foreach ( $ data as $ item ) { $ this -> out ( ' ' . $ item [ 'job_type' ] . ': ' ) ; $ this -> out ( '   Finished Jobs in Database: ' . $ item [ 'num' ] ) ; $ this -> out ( '   Average Job existence    : ' . str_pad ( Number :: precision ( $ item [ 'alltime' ] ) , 8 , ' ' , STR_PAD_LEFT ) . 's' ) ; $ this -> out ( '   Average Execution delay  : ' . str_pad ( Number :: precision ( $ item [ 'fetchdelay' ] ) , 8 , ' ' , STR_PAD_LEFT ) . 's' ) ; $ this -> out ( '   Average Execution time   : ' . str_pad ( Number :: precision ( $ item [ 'runtime' ] ) , 8 , ' ' , STR_PAD_LEFT ) . 's' ) ; } }
Display some statistics about Finished Jobs.

@return void
Display some statistics about Finished Jobs .