From: Aaron Schulz Date: Fri, 2 Mar 2012 01:34:06 +0000 (+0000) Subject: Added some lock call profiling X-Git-Tag: 1.31.0-rc.0~24430 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=6fcb33538fb85b5735761bd430ee8162030bcf8b;p=lhc%2Fweb%2Fwiklou.git Added some lock call profiling --- diff --git a/includes/filerepo/backend/lockmanager/LockManager.php b/includes/filerepo/backend/lockmanager/LockManager.php index 23603a4f94..be071c51e9 100644 --- a/includes/filerepo/backend/lockmanager/LockManager.php +++ b/includes/filerepo/backend/lockmanager/LockManager.php @@ -56,7 +56,10 @@ abstract class LockManager { * @return Status */ final public function lock( array $paths, $type = self::LOCK_EX ) { - return $this->doLock( array_unique( $paths ), $this->lockTypeMap[$type] ); + wfProfileIn( __METHOD__ ); + $status = $this->doLock( array_unique( $paths ), $this->lockTypeMap[$type] ); + wfProfileOut( __METHOD__ ); + return $status; } /** @@ -67,7 +70,10 @@ abstract class LockManager { * @return Status */ final public function unlock( array $paths, $type = self::LOCK_EX ) { - return $this->doUnlock( array_unique( $paths ), $this->lockTypeMap[$type] ); + wfProfileIn( __METHOD__ ); + $status = $this->doUnlock( array_unique( $paths ), $this->lockTypeMap[$type] ); + wfProfileOut( __METHOD__ ); + return $status; } /**