r81884 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81883‎ | r81884 | r81885 >
Date:12:09, 10 February 2011
Author:tstarling
Status:ok
Tags:
Comment:
Profiling fixes
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/Gadgets/Gadgets_body.php (modified) (history)
  • /branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoaderFileModule.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/Gadgets/Gadgets_body.php
@@ -363,6 +363,7 @@
364364 $struct = self::loadStructuredList();
365365 if ( !$struct ) {
366366 $gadgets = $struct;
 367+ wfProfileOut( __METHOD__ );
367368 return $gadgets;
368369 }
369370
@@ -494,4 +495,4 @@
495496 public function getDependencies() {
496497 return $this->dependencies;
497498 }
498 -}
\ No newline at end of file
 499+}
Index: branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoaderFileModule.php
@@ -353,6 +353,7 @@
354354 // If a module is nothing but a list of dependencies, we need to avoid
355355 // giving max() an empty array
356356 if ( count( $files ) === 0 ) {
 357+ wfProfileOut( __METHOD__ );
357358 return $this->modifiedTime[$context->getHash()] = 1;
358359 }
359360

Follow-up revisions

RevisionCommit summaryAuthorDate
r81908Merge r81884 (the other half is already in trunk)platonides18:05, 10 February 2011

Status & tagging log