From: Aaron Schulz Date: Mon, 28 Apr 2008 17:14:33 +0000 (+0000) Subject: Fix profiling X-Git-Tag: 1.31.0-rc.0~48027 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=a8bbdd8d7ed77ca81cbfe37b49d744fdfc6f64d0;p=lhc%2Fweb%2Fwiklou.git Fix profiling --- diff --git a/includes/Parser.php b/includes/Parser.php index 4d2bd38231..a5162d6aa7 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1520,6 +1520,8 @@ class Parser } if( is_null( $this->mTitle ) ) { + wfProfileOut( $fname ); + wfProfileOut( $fname.'-setup' ); throw new MWException( __METHOD__.": \$this->mTitle is null\n" ); } $nottalk = !$this->mTitle->isTalkPage(); @@ -1609,6 +1611,7 @@ class Parser # should be external links. if (preg_match('/^\b(?:' . wfUrlProtocols() . ')/', $m[1])) { $s .= $prefix . '[[' . $line ; + wfProfileOut( "$fname-misc" ); continue; }