From: Ori Livneh Date: Tue, 3 Dec 2013 06:10:44 +0000 (-0800) Subject: Added wfProfileOut for early returns in ResourceLoaderModule::getDefinitionMtime X-Git-Tag: 1.31.0-rc.0~17824 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=185d1bc25536b72c05f6f3f3ded1e3dd9b78e925;p=lhc%2Fweb%2Fwiklou.git Added wfProfileOut for early returns in ResourceLoaderModule::getDefinitionMtime I added the profiling calls in PS13 of I00cf086c9 but forgot to add wfProfileOuts for the early returns. Change-Id: Ibcd22daba8da0e087376553bca271796e0d207e5 --- diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 26092af324..db84dcf0d9 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -448,6 +448,7 @@ abstract class ResourceLoaderModule { wfProfileIn( __METHOD__ ); $summary = $this->getDefinitionSummary( $context ); if ( $summary === null ) { + wfProfileOut( __METHOD__ ); return 0; } @@ -469,6 +470,7 @@ abstract class ResourceLoaderModule { $data = $cache->get( $key ); if ( is_int( $data ) && $data > 0 ) { // We've seen this hash before, re-use the timestamp of when we first saw it. + wfProfileOut( __METHOD__ ); return $data; }