r25203 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25202‎ | r25203 | r25204 >
Date:16:44, 27 August 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Profiling for property/type pages
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_OrderedListPage.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_PropertyPage.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_TypePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_OrderedListPage.php
@@ -52,12 +52,14 @@
5353 * Main method for addig all additional HTML to the output stream.
5454 */
5555 protected function showList() {
 56+ wfProfileIn( __METHOD__ . ' (SMW)');
5657 global $wgOut, $wgRequest;
5758 $this->from = $wgRequest->getVal( 'from' );
5859 $this->until = $wgRequest->getVal( 'until' );
5960 if ($this->initParameters()) {
6061 $wgOut->addHTML( $this->getHTML() );
6162 }
 63+ wfProfileOut( __METHOD__ . ' (SMW)');
6264 }
6365
6466 /**
Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_TypePage.php
@@ -62,6 +62,7 @@
6363 * shall be shown.
6464 */
6565 protected function getPages() {
 66+ wfProfileIn( __METHOD__ . ' (SMW)');
6667 $ti = htmlspecialchars( $this->mTitle->getText() );
6768 $nav = $this->getNavigationLinks();
6869 $r = '<a name="SMWResults"></a>' . $nav . "<div id=\"mw-pages\">\n";
@@ -71,6 +72,7 @@
7273
7374 $r .= $this->formatList();
7475 $r .= "\n</div>" . $nav;
 76+ wfProfileOut( __METHOD__ . ' (SMW)');
7577 return $r;
7678 }
7779
Index: trunk/extensions/SemanticMediaWiki/includes/articlepages/SMW_PropertyPage.php
@@ -71,12 +71,14 @@
7272 * shall be shown.
7373 */
7474 protected function getPages() {
 75+ wfProfileIn( __METHOD__ . ' (SMW)');
7576 $ti = htmlspecialchars( $this->mTitle->getText() );
7677 $nav = $this->getNavigationLinks();
7778 $r = '<a name="SMWResults"></a>' . $nav . "<div id=\"mw-pages\">\n";
7879 $r .= '<h2>' . wfMsg('smw_attribute_header',$ti) . "</h2>\n";
7980 $r .= wfMsg('smw_attributearticlecount', min($this->limit, count($this->articles))) . "\n";
8081 $r .= $this->shortList( $this->articles, $this->articles_start_char ) . "\n</div>" . $nav;
 82+ wfProfileOut( __METHOD__ . ' (SMW)');
8183 return $r;
8284 }
8385

Status & tagging log