public function monitor(Daemon $daemon, $currentObject = null)
    {
        $currentMemory = $this->getMemoryUsage();
        if ($this->memory > 0 && $currentMemory > $this->memory) {
            $this->logger
                ->warning(
                    'Memory usage increased',
                    [
                        'bytes_increased_by'   => $currentMemory - $this->memory,
                        'bytes_current_memory' => $currentMemory
                    ]
                );
        }
        $this->memory = $currentMemory;
    }
public function monitor(Daemon $daemon, $currentObject = null)
    {
        $currentMemory = $this->getMemoryUsage();
        if ($this->memory > 0 && $currentMemory > $this->memory) {
            $this->logger
                ->warning(
                    'Memory usage increased',
                    [
                        'bytes_increased_by'   => $currentMemory - $this->memory,
                        'bytes_current_memory' => $currentMemory
                    ]
                );
        }
        $this->memory = $currentMemory;
    }
public function monitor ( Daemon $ daemon , $ currentObject = null ) { $ currentMemory = $ this -> getMemoryUsage ( ) ; if ( $ this -> memory > 0 && $ currentMemory > $ this -> memory ) { $ this -> logger -> warning ( 'Memory usage increased' , [ 'bytes_increased_by' => $ currentMemory - $ this -> memory , 'bytes_current_memory' => $ currentMemory ] ) ; } $ this -> memory = $ currentMemory ; }
Monitor the daemon

@param Daemon $daemon
@param mixed  $currentObject

@return void
Monitor the daemon