]> git.mxchange.org Git - friendica-addons.git/blobdiff - rendertime/rendertime.php
Merge pull request #140 from repat/master
[friendica-addons.git] / rendertime / rendertime.php
index 0792ce05c0d56ac180ac0f89f426303e13d6b275..dcbfb411ed09580d6280cf8b2a48509e96a42c9f 100755 (executable)
@@ -24,11 +24,20 @@ function rendertime_init_1(&$a) {
 
 function rendertime_page_end(&$a, &$o) {
 
-       $duration = round(microtime(true)-$a->performance["start"], 3);
+       $duration = microtime(true)-$a->performance["start"];
 
-       $o = $o.'<div class="renderinfo">'.sprintf(t("Rendertime: Database: %s, Network: %s, Rendering: %s, Total: %s"),
+       $o = $o.'<div class="renderinfo">'.sprintf(t("Performance: Database: %s, Network: %s, Rendering: %s, Parser: %s, I/O: %s, Other: %s, Total: %s"),
                                                round($a->performance["database"], 3),
                                                round($a->performance["network"], 3),
                                                round($a->performance["rendering"], 3),
-                                               $duration)."</div>";
+                                               round($a->performance["parser"], 3),
+                                               round($a->performance["file"], 3),
+                                               round($duration - $a->performance["database"] - $a->performance["network"]
+                                                        - $a->performance["rendering"] - $a->performance["parser"]
+                                                        - $a->performance["file"], 3),
+                                               round($duration, 3)
+                                               //round($a->performance["markstart"], 3)
+                                               //round($a->performance["plugin"], 3)
+                                               )."</div>";
+
 }