r106945 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106944‎ | r106945 | r106946 >
Date:15:00, 21 December 2011
Author:maxsem
Status:ok
Tags:
Comment:
profiling
Modified paths:
  • /trunk/extensions/FeaturedFeeds/ApiFeaturedFeeds.php (modified) (history)
  • /trunk/extensions/FeaturedFeeds/FeaturedFeeds.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FeaturedFeeds/ApiFeaturedFeeds.php
@@ -15,6 +15,8 @@
1616 }
1717
1818 public function execute() {
 19+ wfProfileIn( __METHOD__ );
 20+
1921 $params = $this->extractRequestParams();
2022
2123 global $wgFeedClasses;
@@ -37,6 +39,8 @@
3840 );
3941
4042 ApiFormatFeedWrapper::setResult( $this->getResult(), $feedClass, $ourFeed['entries'] );
 43+
 44+ wfProfileOut( __METHOD__ );
4145 }
4246
4347
Index: trunk/extensions/FeaturedFeeds/FeaturedFeeds.body.php
@@ -58,6 +58,7 @@
5959 private static function getFeedsInternal( $langCode ) {
6060 global $wgFeaturedFeeds, $wgFeaturedFeedsDefaults, $wgContLang;
6161
 62+ wfProfileIn( __METHOD__ );
6263 $feedDefs = $wgFeaturedFeeds;
6364 wfRunHooks( 'FeaturedFeeds::getFeeds', array( &$feedDefs ) );
6465
@@ -121,6 +122,7 @@
122123
123124 $feeds[$name] = $feed;
124125 }
 126+ wfProfileOut( __METHOD__ );
125127
126128 return $feeds;
127129 }

Status & tagging log