From 1dc294114d0deae0105cf9d0289fbec2ea1e3e58 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 27 Jan 2018 11:59:27 -0800 Subject: [PATCH] Debug Mode: Highlight slow table performance. --- e107_handlers/db_debug_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/db_debug_class.php b/e107_handlers/db_debug_class.php index 2928ed934..dd5b3adaf 100644 --- a/e107_handlers/db_debug_class.php +++ b/e107_handlers/db_debug_class.php @@ -613,7 +613,9 @@ class e107_db_debug { $aSum['DB Count'] += $curTable['DB Count']; $curTable['%DB Count'] = number_format(100.0 * $curTable['DB Count'] / $sql->db_QueryCount(), 0); $curTable['%DB Time'] = number_format(100.0 * $curTable['DB Time'] / $db_time, 0); - $curTable['DB Time'] = number_format($curTable['DB Time'] * 1000.0, 1); + $timeLabel = number_format($curTable['DB Time'] * 1000.0, 1); + $curTable['DB Time'] = $this->highlight($timeLabel, ($curTable['DB Time'] * 1000), 500); // 500 msec + $text .= "" . implode(" ", array_values($curTable)) . " \n"; }