collector = $collector; $this->params = $params; } /** * Can this output type be used? * @return bool */ public function canUse() { 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 ); }