public function Profiler::saveProfile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Profiler/Profiler.php \Symfony\Component\HttpKernel\Profiler\Profiler::saveProfile()
Saves a Profile.
Parameters
Profile $profile A Profile instance:
Return value
bool
1 call to Profiler::saveProfile()
- Profiler::import in vendor/
symfony/ http-kernel/ Profiler/ Profiler.php - Imports data into the profiler storage.
File
- vendor/
symfony/ http-kernel/ Profiler/ Profiler.php, line 110
Class
- Profiler
- Profiler.
Namespace
Symfony\Component\HttpKernel\ProfilerCode
public function saveProfile(Profile $profile) {
// late collect
foreach ($profile
->getCollectors() as $collector) {
if ($collector instanceof LateDataCollectorInterface) {
$collector
->lateCollect();
}
}
if (!($ret = $this->storage
->write($profile)) && null !== $this->logger) {
$this->logger
->warning('Unable to store the profiler information.', array(
'configured_storage' => get_class($this->storage),
));
}
return $ret;
}