ComputeAndReport('Symfony kernel init'); $oKPI = new ExecutionKPI(); $oRequest = Request::createFromGlobals(); $oKPI->ComputeAndReport('Symfony request parsing/creation'); $oKPI = new ExecutionKPI(); /** @noinspection PhpUnhandledExceptionInspection */ $oResponse = $oKernel->handle($oRequest); $oResponse->send(); $oKPI->ComputeAndReport('Page execution and rendering'); $oKPI = new ExecutionKPI(); $oKernel->terminate($oRequest, $oResponse); $oKPI->ComputeAndReport('Symfony kernel termination'); ExecutionKPI::ReportStats();