This code was referencing classes that no longer exist, so it was
removed. Profiling can still be accomplished the same way normal maint
scripts are profiled, by populating StartProfiler.php and passing
'--profiler ProfilerOutputText', or something similar, on the maint
script command line.
Change-Id: Ie037f6b224ec361c86b86369e2a4fff641908053
}
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 ) {