diff options
author | Robin Appelman <robin@icewind.nl> | 2023-02-14 15:16:15 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-02-14 15:16:15 +0100 |
commit | 426b3429f708b20e43ff3ab3bb01c53e3645572c (patch) | |
tree | b326106f780a9860f76d4fefdedd091708501204 | |
parent | a705132c8d9eef7f4d0f030be76a2015a0b8ab6f (diff) | |
download | nextcloud-server-426b3429f708b20e43ff3ab3bb01c53e3645572c.tar.gz nextcloud-server-426b3429f708b20e43ff3ab3bb01c53e3645572c.zip |
log start time of queries for profiler
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/DB/BacktraceDebugStack.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/DB/BacktraceDebugStack.php b/lib/private/DB/BacktraceDebugStack.php index be37e5a35da..6a19be89225 100644 --- a/lib/private/DB/BacktraceDebugStack.php +++ b/lib/private/DB/BacktraceDebugStack.php @@ -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; } } |