ActionController: benchmark should measure rendering

We have been cheating a little bit, now the measurement should be more
precise.
This commit is contained in:
Thomas Gelf 2014-06-25 20:34:33 +02:00
parent 3020273b36
commit 59dd80ed32

View File

@ -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();
}