You are here

public function TimeDataCollector::lateCollect in Zircon Profile 8

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

Collects data as late as possible.

Overrides LateDataCollectorInterface::lateCollect

File

vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php, line 55

Class

TimeDataCollector
TimeDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function lateCollect() {
  if (null !== $this->stopwatch && isset($this->data['token'])) {
    $this
      ->setEvents($this->stopwatch
      ->getSectionEvents($this->data['token']));
  }
  unset($this->data['token']);
}