public function TimeDataCollector::updateMemoryUsage in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/DataCollector/TimeDataCollector.php \Drupal\webprofiler\DataCollector\TimeDataCollector::updateMemoryUsage()
- 8.2 webprofiler/src/DataCollector/TimeDataCollector.php \Drupal\webprofiler\DataCollector\TimeDataCollector::updateMemoryUsage()
- 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 69
Class
- TimeDataCollector
- Class TimeDataCollector.
Namespace
Drupal\webprofiler\DataCollectorCode
public function updateMemoryUsage() {
$this->data['memory'] = memory_get_peak_usage(TRUE);
}