You are here

public function TimeDataCollector::collect in Devel 8.3

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

File

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

Class

TimeDataCollector
Class TimeDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function collect(Request $request, Response $response, \Exception $exception = NULL) {
  parent::collect($request, $response, $exception);
  $this->data['memory_limit'] = $this
    ->convertToBytes(ini_get('memory_limit'));
  $this
    ->updateMemoryUsage();
}