Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/54528


Change subject: Added profile calls to Http::request().
......................................................................

Added profile calls to Http::request().

Change-Id: I06ef2e265160016cb707541af6099c3434ad019c
---
M includes/HttpFunctions.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/28/54528/1

diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php
index dc65c67..6897828 100644
--- a/includes/HttpFunctions.php
+++ b/includes/HttpFunctions.php
@@ -64,8 +64,10 @@
                        $options['timeout'] = 'default';
                }
 
+               wfProfileIn( __METHOD__ . "-$method" );
                $req = MWHttpRequest::factory( $url, $options );
                $status = $req->execute();
+               wfProfileOut( __METHOD__ . "-$method" );
 
                if ( $status->isOK() ) {
                        return $req->getContent();

-- 
To view, visit https://gerrit.wikimedia.org/r/54528
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I06ef2e265160016cb707541af6099c3434ad019c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to