You are here

public function MemoryDataCollector::updateMemoryUsage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/DataCollector/MemoryDataCollector.php \Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector::updateMemoryUsage()

Updates the memory usage data.

2 calls to MemoryDataCollector::updateMemoryUsage()
MemoryDataCollector::collect in vendor/symfony/http-kernel/DataCollector/MemoryDataCollector.php
Collects data for the given Request and Response.
MemoryDataCollector::lateCollect in vendor/symfony/http-kernel/DataCollector/MemoryDataCollector.php
Collects data as late as possible.

File

vendor/symfony/http-kernel/DataCollector/MemoryDataCollector.php, line 71

Class

MemoryDataCollector
MemoryDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function updateMemoryUsage() {
  $this->data['memory'] = memory_get_peak_usage(true);
}