public function getMemUsage($realmem = false)
    {
        if ($this->isRunning()) {
            $this->stop();
            $this->start();
        }

        return ($realmem !== false) ? $this->data["realmem"] : $this->data["emalloc"];
    }
public function getMemUsage($realmem = false)
    {
        if ($this->isRunning()) {
            $this->stop();
            $this->start();
        }

        return ($realmem !== false) ? $this->data["realmem"] : $this->data["emalloc"];
    }
Returns the amount of memory allocated to PHP in bytes.

@param  boolean $realmem
@return integer