You are here

public function Twig_Profiler_Profile::getPeakMemoryUsage in Translation template extractor 7.3

Returns the peak memory usage in bytes.

Return value

int

File

vendor/Twig/Profiler/Profile.php, line 117

Class

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

Code

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