Rendertime: Ignorelist for page where rendertime doesn't look good.
authorMichael Vogel <ike@pirati.ca>
Thu, 15 Sep 2016 09:52:30 +0000 (09:52 +0000)
committerMichael Vogel <ike@pirati.ca>
Thu, 15 Sep 2016 09:52:30 +0000 (09:52 +0000)
rendertime/rendertime.php

index 548775a1077d421ac0d064a27ddf7dcbd1496b1f..38b50a53899ed169f664a8112be0d9a4af510a1b 100755 (executable)
@@ -26,7 +26,10 @@ function rendertime_page_end(&$a, &$o) {
 
        $duration = microtime(true)-$a->performance["start"];
 
-       if (is_site_admin() AND ($_GET["mode"] != "minimal") AND !$a->is_mobile AND !$a->is_tablet) {
+       $ignored_modules = array("fbrowser");
+       $ignored = in_array($a->module, $ignored_modules);
+
+       if (is_site_admin() AND ($_GET["mode"] != "minimal") AND !$a->is_mobile AND !$a->is_tablet AND !$ignored) {
                $o = $o.'<div class="renderinfo">'.sprintf(t("Database: %s, Network: %s, Rendering: %s, Session: %s, I/O: %s, Other: %s, Total: %s"),
                                                round($a->performance["database"], 3),
                                                round($a->performance["network"], 3),