Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Profile.php

function Profile::getPeakMemoryUsage

Returns the peak memory usage in bytes.

File

vendor/twig/twig/src/Profiler/Profile.php, line 129

Class

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

Namespace

Twig\Profiler

Code

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