Index: trunk/phase3/includes/JobQueue.php |
— | — | @@ -162,6 +162,8 @@ |
163 | 163 | */ |
164 | 164 | function refreshLinks() { |
165 | 165 | global $wgParser; |
| 166 | + $fname = 'Job::refreshLinks'; |
| 167 | + wfProfileIn( $fname ); |
166 | 168 | |
167 | 169 | $dbw =& wfGetDB( DB_MASTER ); |
168 | 170 | |
— | — | @@ -170,19 +172,26 @@ |
171 | 173 | |
172 | 174 | if ( is_null( $this->title ) ) { |
173 | 175 | $this->error = "refreshLinks: Invalid title"; |
| 176 | + wfProfileOut( $fname ); |
174 | 177 | return false; |
175 | 178 | } |
176 | 179 | |
177 | 180 | $revision = Revision::newFromTitle( $this->title ); |
178 | 181 | if ( !$revision ) { |
179 | 182 | $this->error = 'refreshLinks: Article not found "' . $this->title->getPrefixedDBkey() . '"'; |
| 183 | + wfProfileOut( $fname ); |
180 | 184 | return false; |
181 | 185 | } |
182 | 186 | |
| 187 | + wfProfileIn( "$fname-parse" ); |
183 | 188 | $options = new ParserOptions; |
184 | 189 | $parserOutput = $wgParser->parse( $revision->getText(), $this->title, $options, true, true, $revision->getId() ); |
| 190 | + wfProfileOut( "$fname-parse" ); |
| 191 | + wfProfileIn( "$fname-update" ); |
185 | 192 | $update = new LinksUpdate( $this->title, $parserOutput, false ); |
186 | 193 | $update->doUpdate(); |
| 194 | + wfProfileOut( "$fname-update" ); |
| 195 | + wfProfileOut( $fname ); |
187 | 196 | return true; |
188 | 197 | } |
189 | 198 | |