From: Tim Starling Date: Fri, 24 Feb 2006 07:50:23 +0000 (+0000) Subject: profiling X-Git-Tag: 1.6.0~291 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=0c1fb32f6e7543e7ca6559b29f21e288c69043bf;p=lhc%2Fweb%2Fwiklou.git profiling --- diff --git a/includes/LinkBatch.php b/includes/LinkBatch.php index fed9359793..43282abe00 100644 --- a/includes/LinkBatch.php +++ b/includes/LinkBatch.php @@ -60,7 +60,7 @@ class LinkBatch { * Return an array mapping PDBK to ID */ function executeInto( &$cache ) { - $fname = 'LinkBatch::execute'; + $fname = 'LinkBatch::executeInto'; wfProfileIn( $fname ); // Do query $res = $this->doQuery(); @@ -97,7 +97,7 @@ class LinkBatch { * Perform the existence test query, return a ResultWrapper with page_id fields */ function doQuery() { - $fname = 'LinkBatch::execute'; + $fname = 'LinkBatch::doQuery'; $namespaces = array(); if ( !count( $this->data ) ) { @@ -111,6 +111,7 @@ class LinkBatch { $page = $dbr->tableName( 'page' ); $set = $this->constructSet( 'page', $dbr ); if ( $set === false ) { + wfProfileOut( $fname ); return false; } $sql = "SELECT page_id, page_namespace, page_title FROM $page WHERE $set";