From 185d1bc25536b72c05f6f3f3ded1e3dd9b78e925 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Mon, 2 Dec 2013 22:10:44 -0800 Subject: [PATCH] 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 --- includes/resourceloader/ResourceLoaderModule.php | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.20.1