jenkins-bot has submitted this change and it was merged.

Change subject: Remove obvious function-level profiling
......................................................................


Remove obvious function-level profiling

Change-Id: I481f1b2469fd6ae1d3491e35b26fd1946b92b582
---
M backend/CodeRepository.php
M backend/RepoStats.php
2 files changed, 0 insertions(+), 7 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/backend/CodeRepository.php b/backend/CodeRepository.php
index cf03b04..aec7549 100644
--- a/backend/CodeRepository.php
+++ b/backend/CodeRepository.php
@@ -315,7 +315,6 @@
         */
        public function getDiff( $rev, $useCache = '' ) {
                global $wgMemc, $wgCodeReviewMaxDiffPaths;
-               wfProfileIn( __METHOD__ );
 
                $data = null;
 
@@ -340,7 +339,6 @@
 
                // If an error has occurred, return it.
                if ( $data !== null ) {
-                       wfProfileOut( __METHOD__ );
                        return $data;
                }
 
@@ -415,7 +413,6 @@
                        }
                }
 
-               wfProfileOut( __METHOD__ );
                return $data;
        }
 
@@ -425,7 +422,6 @@
         */
        public function setDiffCache( CodeRevision $codeRev ) {
                global $wgMemc;
-               wfProfileIn( __METHOD__ );
 
                $rev1 = $codeRev->getId() - 1;
                $rev2 = $codeRev->getId();
@@ -444,7 +440,6 @@
                        array( 'cr_repo_id' => $this->id, 'cr_id' => 
$codeRev->getId() ),
                        __METHOD__
                );
-               wfProfileOut( __METHOD__ );
        }
 
        /**
diff --git a/backend/RepoStats.php b/backend/RepoStats.php
index 82f853e..d84d845 100644
--- a/backend/RepoStats.php
+++ b/backend/RepoStats.php
@@ -48,7 +48,6 @@
        }
 
        private function generate() {
-               wfProfileIn( __METHOD__ );
                $dbr = wfGetDB( DB_SLAVE );
 
                $this->revisions = $dbr->selectField( 'code_rev',
@@ -94,7 +93,6 @@
                                $this->newPerPath[$path] = $this->getPathNews( 
$path );
                        }
                }
-               wfProfileOut( __METHOD__ );
        }
 
        /**

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I481f1b2469fd6ae1d3491e35b26fd1946b92b582
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CodeReview
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to