Updates the stopwatch data in the profile hierarchy.
string $token Profile token:
Boolean $updateChildren Whether to update the children altogether:
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);
}