You are here

public function Profiler::updateProfile in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Profiler/Profiler.php \Drupal\webprofiler\Profiler\Profiler::updateProfile()
  2. 8 webprofiler/src/Profiler/Profiler.php \Drupal\webprofiler\Profiler\Profiler::updateProfile()
  3. 4.x webprofiler/src/Profiler/Profiler.php \Drupal\webprofiler\Profiler\Profiler::updateProfile()

Parameters

\Symfony\Component\HttpKernel\Profiler\Profile $profile:

Return value

bool

File

webprofiler/src/Profiler/Profiler.php, line 70

Class

Profiler
Class Profiler

Namespace

Drupal\webprofiler\Profiler

Code

public function updateProfile(Profile $profile) {
  if (!($ret = $this->localStorage
    ->write($profile)) && NULL !== $this->localLogger) {
    $this->localLogger
      ->warning('Unable to store the profiler information.');
  }
  return $ret;
}