Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/189831
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CodeReview
refs/changes/31/189831/1
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: newchange
Gerrit-Change-Id: I481f1b2469fd6ae1d3491e35b26fd1946b92b582
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CodeReview
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits