Adding more wfProfileOut()

This commit is contained in:
Platonides 2011-02-10 16:11:34 +00:00
parent 30534ae136
commit aeb547b465
5 changed files with 13 additions and 6 deletions

View file

@ -725,6 +725,7 @@ class DBABagOStuff extends BagOStuff {
$handle = $this->getReader();
if ( !$handle ) {
wfProfileOut( __METHOD__ );
return null;
}
@ -755,6 +756,7 @@ class DBABagOStuff extends BagOStuff {
$handle = $this->getWriter();
if ( !$handle ) {
wfProfileOut( __METHOD__ );
return false;
}
@ -771,6 +773,7 @@ class DBABagOStuff extends BagOStuff {
$handle = $this->getWriter();
if ( !$handle ) {
wfProfileOut( __METHOD__ );
return false;
}
@ -789,6 +792,7 @@ class DBABagOStuff extends BagOStuff {
$handle = $this->getWriter();
if ( !$handle ) {
wfProfileOut( __METHOD__ );
return false;
}

View file

@ -722,6 +722,7 @@ class Linker {
return $this->linkKnown( $title, "$prefix$text$inside", array(), $query ) . $trail;
}
} else {
wfProfileOut( __METHOD__ );
return "<!-- ERROR -->{$prefix}{$text}{$trail}";
}
}
@ -1668,6 +1669,7 @@ class Linker {
*/
public function accesskey( $name ) {
if ( isset( $this->accesskeycache[$name] ) ) {
wfProfileOut( __METHOD__ );
return $this->accesskeycache[$name];
}
wfProfileIn( __METHOD__ );

View file

@ -2448,6 +2448,7 @@ class Parser {
}
if ( $stack > 0 ) {
wfDebug( __METHOD__.": Invalid input; not enough close tags (stack $stack, state $state)\n" );
wfProfileOut( __METHOD__ );
return false;
}
wfProfileOut( __METHOD__ );

View file

@ -265,9 +265,10 @@ class Parser_LinkHooks extends Parser
if( $return === false ) {
# False (no link) was returned, output plain wikitext
# Build it again as the hook is allowed to modify $paramText
return isset($paramText) ? "[[$titleText|$paramText]]" : "[[$titleText]]";
$return = isset($paramText) ? "[[$titleText|$paramText]]" : "[[$titleText]]";
}
# Content was returned, return it
wfProfileOut( __METHOD__ );
return $return;
}

View file

@ -173,15 +173,13 @@ class MWTidy {
$retval = -1;
}
wfProfileOut( __METHOD__ );
if( !$stderr && $cleansource == '' && $text != '' ) {
// Some kind of error happened, so we couldn't get the corrected text.
// Just give up; we'll use the source text and append a warning.
return null;
} else {
return $cleansource;
$cleansource = null;
}
wfProfileOut( __METHOD__ );
return $cleansource;
}
/**
@ -199,6 +197,7 @@ class MWTidy {
if( $stderr ) {
$retval = $tidy->getStatus();
wfProfileOut( __METHOD__ );
return $tidy->errorBuffer;
} else {
$tidy->cleanRepair();