From 59dd80ed32e1dbb86f62f40d2caa3e9e208557e5 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 25 Jun 2014 20:34:33 +0200 Subject: [PATCH] ActionController: benchmark should measure rendering We have been cheating a little bit, now the measurement should be more precise. --- library/Icinga/Web/Controller/ActionController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index 17eb39411..412db5466 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -382,7 +382,6 @@ class ActionController extends Zend_Controller_Action // Cast preference app.show_benchmark to bool because preferences loaded from a preferences storage are // always strings if ((bool) $user->getPreferences()->get('app.show_benchmark', false) === true) { - Benchmark::measure('Response ready'); $layout->benchmark = $this->renderBenchmark(); } } @@ -450,6 +449,8 @@ class ActionController extends Zend_Controller_Action */ protected function renderBenchmark() { + $this->render(); + Benchmark::measure('Response ready'); return Benchmark::renderToHtml(); }