You are here

public function TimeDataCollector::updateMemoryUsage in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/TimeDataCollector.php \Drupal\webprofiler\DataCollector\TimeDataCollector::updateMemoryUsage()
  2. 8.2 webprofiler/src/DataCollector/TimeDataCollector.php \Drupal\webprofiler\DataCollector\TimeDataCollector::updateMemoryUsage()
  3. 4.x webprofiler/src/DataCollector/TimeDataCollector.php \Drupal\webprofiler\DataCollector\TimeDataCollector::updateMemoryUsage()

Updates the memory usage data.

2 calls to TimeDataCollector::updateMemoryUsage()
TimeDataCollector::collect in webprofiler/src/DataCollector/TimeDataCollector.php
Collects data for the given Request and Response.
TimeDataCollector::lateCollect in webprofiler/src/DataCollector/TimeDataCollector.php
Collects data as late as possible.

File

webprofiler/src/DataCollector/TimeDataCollector.php, line 70

Class

TimeDataCollector
Class TimeDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

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