mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02: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
@ -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
|
// Cast preference app.show_benchmark to bool because preferences loaded from a preferences storage are
|
||||||
// always strings
|
// always strings
|
||||||
if ((bool) $user->getPreferences()->get('app.show_benchmark', false) === true) {
|
if ((bool) $user->getPreferences()->get('app.show_benchmark', false) === true) {
|
||||||
Benchmark::measure('Response ready');
|
|
||||||
$layout->benchmark = $this->renderBenchmark();
|
$layout->benchmark = $this->renderBenchmark();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -450,6 +449,8 @@ class ActionController extends Zend_Controller_Action
|
|||||||
*/
|
*/
|
||||||
protected function renderBenchmark()
|
protected function renderBenchmark()
|
||||||
{
|
{
|
||||||
|
$this->render();
|
||||||
|
Benchmark::measure('Response ready');
|
||||||
return Benchmark::renderToHtml();
|
return Benchmark::renderToHtml();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user