diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 9edfde0b..627c8cd9 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -48,6 +48,17 @@ function rendertime_page_end(Friendica\App $a, &$o) //round($profiler->get('plugin'), 3) ) . ''; + $total = microtime(true) - $profiler->get('start'); + $rest = $total - ($profiler->get('ready') - $profiler->get('start')) - $profiler->get('init') - $profiler->get('content'); + $o = $o . '
' . DI::l10n()->t("Class-Init: %s, Boot: %s, Init: %s, Content: %s, Other: %s, Total: %s", + round($profiler->get('classinit') - $profiler->get('start'), 3), + round($profiler->get('ready') - $profiler->get('classinit'), 3), + round($profiler->get('init'), 3), + round($profiler->get('content'), 3), + round($rest, 3), + round($total, 3) + ) . '
'; + if ($profiler->isRendertime()) { $o .= '
';
 			$o .= $profiler->getRendertimeString(DI::config()->get('rendertime', 'minimal_time', 0));