Skip to content

Commit

Permalink
Merge pull request #36698 from nextcloud/db-profile-start-time
Browse files Browse the repository at this point in the history
log start time of queries for profiler
  • Loading branch information
ChristophWurst authored Feb 15, 2023
2 parents 228911c + 426b342 commit a2422c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/DB/BacktraceDebugStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ public function startQuery($sql, ?array $params = null, ?array $types = null) {
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;
}
}

0 comments on commit a2422c9

Please sign in to comment.