*
* @ingroup Maintenance
*/
-class TestFileOpPerformance extends Maintenance {
+class FileOpPerfTest extends Maintenance {
public function __construct() {
parent::__construct();
$this->addDescription( 'Test fileop performance' );
}
public function execute() {
- Profiler::setInstance( new ProfilerSimpleText( [] ) ); // clear
-
$backend = FileBackendGroup::singleton()->get( $this->getOption( 'b1' ) );
$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 ) {
}
}
-$maintClass = "TestFileOpPerformance";
+$maintClass = FileOpPerfTest::class;
require_once RUN_MAINTENANCE_IF_MAIN;