From: Tim Starling Date: Tue, 21 Nov 2006 11:20:04 +0000 (+0000) Subject: profiling X-Git-Tag: 1.31.0-rc.0~55135 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=674f3561ddded7c7fb604dd0ca118c91255176b3;p=lhc%2Fweb%2Fwiklou.git profiling --- diff --git a/includes/StringUtils.php b/includes/StringUtils.php index 8a0e478c81..e56d4b602d 100644 --- a/includes/StringUtils.php +++ b/includes/StringUtils.php @@ -250,13 +250,18 @@ class ReplacementArray { function replace( $subject ) { if ( function_exists( 'fss_prep_replace' ) ) { + wfProfileIn( __METHOD__.'-fss' ); if ( $this->fss === false ) { $this->fss = fss_prep_replace( $this->data ); } - return fss_exec_replace( $this->fss, $subject ); + $result = fss_exec_replace( $this->fss, $subject ); + wfProfileOut( __METHOD__.'-fss' ); } else { - return strtr( $subject, $this->data ); + wfProfileIn( __METHOD__.'-strtr' ); + $result = strtr( $subject, $this->data ); + wfProfileOut( __METHOD__.'-strtr' ); } + return $result; } }