protected $params = [];
/**
- * Constructor
* @param Profiler $collector The actual profiler
* @param array $params Configuration array, passed down from $wgProfiler
*/
}
/**
- * Log MediaWiki-style profiling data
+ * May the log() try to write to standard output?
+ * @return bool
+ * @since 1.33
+ */
+ public function logsToOutput() {
+ return false;
+ }
+
+ /**
+ * Log MediaWiki-style profiling data.
+ *
+ * For classes that enable logsToOutput(), this must not
+ * be called unless Profiler::setAllowOutput is enabled.
*
* @param array $stats Result of Profiler::getFunctionStats()
*/