From 1eeda582b5f5af3e2689fbbcf2fbfde3ed118d37 Mon Sep 17 00:00:00 2001 From: Oliver Eglseder Date: Wed, 1 Nov 2023 18:28:47 +0100 Subject: [PATCH] [BUGFIX] Show the sum of query duration when debugging queries --- .../MetricsAndDebug/Middleware/MetricsAndDebugMiddleware.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/Features/MetricsAndDebug/Middleware/MetricsAndDebugMiddleware.php b/Classes/Features/MetricsAndDebug/Middleware/MetricsAndDebugMiddleware.php index a4b771ad1..98176b188 100644 --- a/Classes/Features/MetricsAndDebug/Middleware/MetricsAndDebugMiddleware.php +++ b/Classes/Features/MetricsAndDebug/Middleware/MetricsAndDebugMiddleware.php @@ -95,6 +95,7 @@ protected function debugSqlQueries(): void if (!empty($queries)) { DebugUtility::debug($queries, 'Content Publisher Queries'); DebugUtility::debug($queriesByCaller, 'Queries By Caller'); + DebugUtility::debug(array_sum(array_column($queries, 'executionNS')), 'Timing'); } } }