function TimeDataCollector::updateMemoryUsage

Updates the memory usage data.

2 calls to TimeDataCollector::updateMemoryUsage()
TimeDataCollector::collect in webprofiler/src/DataCollector/TimeDataCollector.php
TimeDataCollector::lateCollect in webprofiler/src/DataCollector/TimeDataCollector.php

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);
}