https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112866
Revision: 112866
Author: aaron
Date: 2012-03-02 01:34:06 +0000 (Fri, 02 Mar 2012)
Log Message:
-----------
Added some lock call profiling
Modified Paths:
--------------
trunk/phase3/includes/filerepo/backend/lockmanager/LockManager.php
Modified: trunk/phase3/includes/filerepo/backend/lockmanager/LockManager.php
===================================================================
--- trunk/phase3/includes/filerepo/backend/lockmanager/LockManager.php
2012-03-02 01:12:18 UTC (rev 112865)
+++ trunk/phase3/includes/filerepo/backend/lockmanager/LockManager.php
2012-03-02 01:34:06 UTC (rev 112866)
@@ -56,7 +56,10 @@
* @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 @@
* @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;
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs