src/ProcessManager.php
protected function commandStats(array $data, ConnectionInterface $conn)
    {
        try {
            $slave = $this->slaves->getByConnection($conn);
            $slave->setUsedMemory($data['memory_usage']);
            if ($this->output->isVeryVerbose()) {
                $this->output->writeln(
                    sprintf(
                        'Current memory usage for worker %d: %.2f MB',
                        $slave->getPort(),
                        $data['memory_usage']
                    )
                );
            }
        } catch (\Exception $e) {
            // silent
        }
    }
protected function commandStats(array $data, ConnectionInterface $conn)
    {
        try {
            $slave = $this->slaves->getByConnection($conn);
            $slave->setUsedMemory($data['memory_usage']);
            if ($this->output->isVeryVerbose()) {
                $this->output->writeln(
                    sprintf(
                        'Current memory usage for worker %d: %.2f MB',
                        $slave->getPort(),
                        $data['memory_usage']
                    )
                );
            }
        } catch (\Exception $e) {
            // silent
        }
    }
protected function commandStats ( array $ data , ConnectionInterface $ conn ) { try { $ slave = $ this -> slaves -> getByConnection ( $ conn ) ; $ slave -> setUsedMemory ( $ data [ 'memory_usage' ] ) ; if ( $ this -> output -> isVeryVerbose ( ) ) { $ this -> output -> writeln ( sprintf ( 'Current memory usage for worker %d: %.2f MB' , $ slave -> getPort ( ) , $ data [ 'memory_usage' ] ) ) ; } } catch ( \ Exception $ e ) { // silent } }
Receive stats from the worker such as current memory use

@param array      $data
@param ConnectionInterface $conn
Receive stats from the worker such as current memory use