code: public function getMemUsage($realmem = false)
      {
          if ($this->isRunning()) {
              $this->stop();
              $this->start();
          }
  
          return ($realmem !== false) ? $this->data["realmem"] : $this->data["emalloc"];
      }
docs: Returns the amount of memory allocated to PHP in bytes.
  
  @param  boolean $realmem
  @return integer