public function Twig_Profiler_Profile::getPeakMemoryUsage in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Profiler/Profile.php \Twig_Profiler_Profile::getPeakMemoryUsage()
Returns the peak memory usage in bytes.
Return value
int
File
- vendor/
twig/ twig/ lib/ 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;
}