private function ContainerAwareTraceableEventDispatcher::updateProfiles

Updates the stopwatch data in the profile hierarchy.

Parameters

string $token Profile token:

Boolean $updateChildren Whether to update the children altogether:

1 call to ContainerAwareTraceableEventDispatcher::updateProfiles()
ContainerAwareTraceableEventDispatcher::dispatch in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php
Lazily loads listeners for this event from the dependency injection container.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php, line 273

Class

ContainerAwareTraceableEventDispatcher
Extends the ContainerAwareEventDispatcher to add some debugging tools.

Namespace

Symfony\Component\HttpKernel\Debug

Code

private function updateProfiles($token, $updateChildren) {
  if (!$this
    ->getContainer()
    ->has('profiler')) {
    return;
  }
  $this->profiler = $this
    ->getContainer()
    ->get('profiler');
  if (!($profile = $this->profiler
    ->loadProfile($token))) {
    return;
  }
  $this
    ->saveStopwatchInfoInProfile($profile, $updateChildren);
}