r57998 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57997‎ | r57998 | r57999 >
Date:12:12, 22 October 2009
Author:demon
Status:ok
Tags:
Comment:
Add profiling to getEffectiveGroups()
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -2053,6 +2053,7 @@
20542054 */
20552055 function getEffectiveGroups( $recache = false ) {
20562056 if ( $recache || is_null( $this->mEffectiveGroups ) ) {
 2057+ wfProfileIn( __METHOD__ );
20572058 $this->mEffectiveGroups = $this->getGroups();
20582059 $this->mEffectiveGroups[] = '*';
20592060 if( $this->getId() ) {
@@ -2066,6 +2067,7 @@
20672068 # Hook for additional groups
20682069 wfRunHooks( 'UserEffectiveGroups', array( &$this, &$this->mEffectiveGroups ) );
20692070 }
 2071+ wfProfileOut( __METHOD__ );
20702072 }
20712073 return $this->mEffectiveGroups;
20722074 }

Status & tagging log