From 6fcb33538fb85b5735761bd430ee8162030bcf8b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 2 Mar 2012 01:34:06 +0000 Subject: [PATCH] Added some lock call profiling --- includes/filerepo/backend/lockmanager/LockManager.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; } /** -- 2.20.1