From 3a463e7d39ac811fada1bac2b3e38123a627c556 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 22 Oct 2009 12:12:12 +0000 Subject: [PATCH] Add profiling to getEffectiveGroups() --- includes/User.php | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.20.1