]> source.dussan.org Git - nextcloud-server.git/commitdiff
log start time of queries for profiler 36698/head
authorRobin Appelman <robin@icewind.nl>
Tue, 14 Feb 2023 14:16:15 +0000 (15:16 +0100)
committerRobin Appelman <robin@icewind.nl>
Tue, 14 Feb 2023 14:16:15 +0000 (15:16 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/DB/BacktraceDebugStack.php

index be37e5a35da189ea2c5f6c7b9696ed4022905a88..6a19be892253f9844514ca238ca469a63486a5a0 100644 (file)
@@ -30,5 +30,6 @@ class BacktraceDebugStack extends DebugStack {
                parent::startQuery($sql, $params, $types);
                $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
                $this->queries[$this->currentQuery]['backtrace'] = $backtrace;
+               $this->queries[$this->currentQuery]['start'] = $this->start;
        }
 }