File
 
   - drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php, line 406
Class
  
  - TraceableEventDispatcher 
- Collects some data about event listeners.
Namespace
  Symfony\Component\HttpKernel\Debug
Code
private function postDispatch($eventName, Event $event) {
  switch ($eventName) {
    case KernelEvents::CONTROLLER:
      $this->stopwatch
        ->start('controller', 'section');
      break;
    case KernelEvents::RESPONSE:
      $token = $event
        ->getResponse()->headers
        ->get('X-Debug-Token');
      $this->stopwatch
        ->stopSection($token);
      if (HttpKernelInterface::MASTER_REQUEST === $event
        ->getRequestType()) {
        
        $this
          ->updateProfiles($token, true);
      }
      break;
    case KernelEvents::TERMINATE:
      $token = $event
        ->getResponse()->headers
        ->get('X-Debug-Token');
      
      try {
        $this->stopwatch
          ->stopSection($token);
      } catch (\LogicException $e) {
      }
      
      $this
        ->updateProfiles($token, false);
      break;
  }
  foreach ($this->wrappedListeners[$this->id] as $wrapped) {
    $this->dispatcher
      ->removeListener($eventName, $wrapped);
    $this->dispatcher
      ->addListener($eventName, $this->wrappedListeners[$this->id][$wrapped]);
  }
  unset($this->wrappedListeners[$this->id]);
}