mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
ActionController: benchmark should measure rendering
We have been cheating a little bit, now the measurement should be more precise.
This commit is contained in:
parent
3020273b36
commit
59dd80ed32
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue