dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Split common pre-setup code out of WebStart/doMaintenance"
[lhc/web/wiklou.git]
/
maintenance
/
fileOpPerfTest.php
diff --git
a/maintenance/fileOpPerfTest.php
b/maintenance/fileOpPerfTest.php
index
92547ca
..
4b6c619
100644
(file)
--- a/
maintenance/fileOpPerfTest.php
+++ b/
maintenance/fileOpPerfTest.php
@@
-42,8
+42,6
@@
class TestFileOpPerformance extends Maintenance {
}
public function execute() {
}
public function execute() {
- Profiler::setInstance( new ProfilerSimpleText( [] ) ); // clear
-
$backend = FileBackendGroup::singleton()->get( $this->getOption( 'b1' ) );
$this->doPerfTest( $backend );
$backend = FileBackendGroup::singleton()->get( $this->getOption( 'b1' ) );
$this->doPerfTest( $backend );
@@
-51,9
+49,6
@@
class TestFileOpPerformance extends Maintenance {
$backend = FileBackendGroup::singleton()->get( $this->getOption( 'b2' ) );
$this->doPerfTest( $backend );
}
$backend = FileBackendGroup::singleton()->get( $this->getOption( 'b2' ) );
$this->doPerfTest( $backend );
}
-
- Profiler::instance()->setTemplated( true );
- // NOTE: as of MW1.21, $profiler->logData() is called implicitly by doMaintenance.php.
}
protected function doPerfTest( FileBackend $backend ) {
}
protected function doPerfTest( FileBackend $backend ) {