You are here

public function Twig_Profiler_Profile::getMemoryUsage in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/Profiler/Profile.php \Twig_Profiler_Profile::getMemoryUsage()

Returns the memory usage in bytes.

Return value

int

File

vendor/twig/twig/lib/Twig/Profiler/Profile.php, line 107

Class

Twig_Profiler_Profile
@author Fabien Potencier <fabien@symfony.com>

Code

public function getMemoryUsage() {
  return isset($this->ends['mu']) && isset($this->starts['mu']) ? $this->ends['mu'] - $this->starts['mu'] : 0;
}