/** * @param \Symfony\Component\HttpKernel\Event\PostResponseEvent $event */ public function onKernelTerminate(PostResponseEvent $event) { if ($this->profiler->isEnabled()) { $this->profiler->shutdown($this->xhprofRunId); } }