From: Aaron Date: Thu, 17 May 2012 21:18:45 +0000 (-0700) Subject: [FileBackend] Added profiling to doQuickOperationsInternal(). X-Git-Tag: 1.31.0-rc.0~23581 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=bbb113150125378e1a89edc58d0c228d05cafe87;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Added profiling to doQuickOperationsInternal(). Change-Id: I98ce4bdfb61bf55b5306dabf0f20427c26319c3c --- diff --git a/includes/filerepo/backend/FileBackendStore.php b/includes/filerepo/backend/FileBackendStore.php index 5537e9378f..62c32ebae6 100644 --- a/includes/filerepo/backend/FileBackendStore.php +++ b/includes/filerepo/backend/FileBackendStore.php @@ -943,6 +943,8 @@ abstract class FileBackendStore extends FileBackend { * @throws MWException */ final protected function doQuickOperationsInternal( array $ops ) { + wfProfileIn( __METHOD__ ); + wfProfileIn( __METHOD__ . '-' . $this->name ); $status = Status::newGood(); $async = $this->parallelize; @@ -955,6 +957,8 @@ abstract class FileBackendStore extends FileBackend { foreach ( $ops as $index => $params ) { $method = $params['op'] . 'Internal'; // e.g. "storeInternal" if ( !MWInit::methodExists( __CLASS__, $method ) ) { + wfProfileOut( __METHOD__ . '-' . $this->name ); + wfProfileOut( __METHOD__ ); throw new MWException( "Operation '{$params['op']}' is not supported." ); } $subStatus = $this->$method( array( 'async' => $async ) + $params ); @@ -987,6 +991,8 @@ abstract class FileBackendStore extends FileBackend { } } + wfProfileOut( __METHOD__ . '-' . $this->name ); + wfProfileOut( __METHOD__ ); return $status; }