aboutsummaryrefslogtreecommitdiffstats
path: root/includes/db/Database.php
diff options
context:
space:
mode:
authorJohn Du Hart <johnduhart@users.mediawiki.org>2011-12-04 18:29:57 +0000
committerJohn Du Hart <johnduhart@users.mediawiki.org>2011-12-04 18:29:57 +0000
commit0de3082ca442765b24c93f61688c7ef9d08bacde (patch)
tree1d4f45f5fdece3d035504bc1176c9119003526fa /includes/db/Database.php
parentfca12118debf2d3d33ca418f413325597934d05e (diff)
downloadmediawikicore-0de3082ca442765b24c93f61688c7ef9d08bacde.tar.gz
mediawikicore-0de3082ca442765b24c93f61688c7ef9d08bacde.zip
Adding new debugging toolbar
Needs a UI cleanup still, but for the most part is working.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/105122
Diffstat (limited to 'includes/db/Database.php')
-rw-r--r--includes/db/Database.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/db/Database.php b/includes/db/Database.php
index 6945cebbb2ce..30377699543c 100644
--- a/includes/db/Database.php
+++ b/includes/db/Database.php
@@ -840,9 +840,13 @@ abstract class DatabaseBase implements DatabaseType {
throw new MWException( 'Tainted query found' );
}
+ $queryId = MWDebug::query( $sql, $fname, $isMaster );
+
# Do the query and handle errors
$ret = $this->doQuery( $commentedSql );
+ MWDebug::queryTime( $queryId );
+
# Try reconnecting if the connection was lost
if ( false === $ret && $this->wasErrorReissuable() ) {
# Transaction is gone, like it or not