/** @var Profiler */
protected $collector;
/** @var array Configuration of $wgProfiler */
- protected $params = array();
+ protected $params = [];
/**
- * Constructor
* @param Profiler $collector The actual profiler
* @param array $params Configuration array, passed down from $wgProfiler
*/
return true;
}
- /**
- * Delegate to the proper method
- */
- public function log() {
- $this->logStandardData( $this->collector->getFunctionStats() );
- }
-
/**
* Log MediaWiki-style profiling data
*
* @param array $stats Result of Profiler::getFunctionStats()
*/
- abstract protected function logStandardData( array $stats );
+ abstract public function log( array $stats );
}