public function TwigTracingExtension::leave in Raven: Sentry Integration 3.x
This method is called when execution is finished.
Parameters
\Twig\Profiler\Profile $profile: The profiling data.
File
- src/
Twig/ TwigTracingExtension.php, line 70
Class
- TwigTracingExtension
- Provides Twig performance tracing.
Namespace
Drupal\raven\TwigCode
public function leave(Profile $profile) : void {
if (!isset($this->spans[$profile])) {
return;
}
$this->spans[$profile]
->finish();
unset($this->spans[$profile]);
}