log start time of queries for profiler

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2023-02-14 15:16:15 +01:00
parent a705132c8d
commit 426b3429f7
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View 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;
}
}