From: Chad Horohoe Date: Thu, 22 Oct 2009 12:12:12 +0000 (+0000) Subject: Add profiling to getEffectiveGroups() X-Git-Tag: 1.31.0-rc.0~39187 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=3a463e7d39ac811fada1bac2b3e38123a627c556;p=lhc%2Fweb%2Fwiklou.git Add profiling to getEffectiveGroups() --- diff --git a/includes/User.php b/includes/User.php index 6b5e8b6599..2cb0203dfd 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2053,6 +2053,7 @@ class User { */ function getEffectiveGroups( $recache = false ) { if ( $recache || is_null( $this->mEffectiveGroups ) ) { + wfProfileIn( __METHOD__ ); $this->mEffectiveGroups = $this->getGroups(); $this->mEffectiveGroups[] = '*'; if( $this->getId() ) { @@ -2066,6 +2067,7 @@ class User { # Hook for additional groups wfRunHooks( 'UserEffectiveGroups', array( &$this, &$this->mEffectiveGroups ) ); } + wfProfileOut( __METHOD__ ); } return $this->mEffectiveGroups; }