|
MediaWiki master
|
Base class for profiling output. More...
Inherited by MediaWiki\Profiler\Output\ProfilerOutputDump, MediaWiki\Profiler\Output\ProfilerOutputStats, and MediaWiki\Profiler\Output\ProfilerOutputText.

Public Member Functions | |
| __construct (Profiler $collector, array $params) | |
| canUse () | |
| Can this output type be used? | |
| log (array $stats) | |
| Log MediaWiki-style profiling data. | |
| logsToOutput () | |
| May the log() try to write to standard output? | |
Protected Attributes | |
| Profiler | $collector |
| LoggerInterface | $logger |
| array | $params |
| Configuration of $wgProfiler. | |
| MediaWiki\Profiler\Output\ProfilerOutput::__construct | ( | Profiler | $collector, |
| array | $params ) |
| Profiler | $collector | The actual profiler |
| array | $params | Configuration array, passed down from $wgProfiler |
Reimplemented in MediaWiki\Profiler\Output\ProfilerOutputText.
Definition at line 31 of file ProfilerOutput.php.
References MediaWiki\Profiler\Output\ProfilerOutput\$collector, and MediaWiki\Profiler\Output\ProfilerOutput\$params.
| MediaWiki\Profiler\Output\ProfilerOutput::canUse | ( | ) |
Can this output type be used?
Reimplemented in MediaWiki\Profiler\Output\ProfilerOutputDump.
Definition at line 41 of file ProfilerOutput.php.
|
abstract |
Log MediaWiki-style profiling data.
For classes that enable logsToOutput(), this must not be called unless Profiler::setAllowOutput is enabled.
| array | $stats | Result of Profiler::getFunctionStats() |
Reimplemented in MediaWiki\Profiler\Output\ProfilerOutputDump, MediaWiki\Profiler\Output\ProfilerOutputStats, and MediaWiki\Profiler\Output\ProfilerOutputText.
| MediaWiki\Profiler\Output\ProfilerOutput::logsToOutput | ( | ) |
May the log() try to write to standard output?
Reimplemented in MediaWiki\Profiler\Output\ProfilerOutputText.
Definition at line 50 of file ProfilerOutput.php.
|
protected |
Definition at line 21 of file ProfilerOutput.php.
Referenced by MediaWiki\Profiler\Output\ProfilerOutput\__construct(), and MediaWiki\Profiler\Output\ProfilerOutputText\__construct().
|
protected |
Definition at line 23 of file ProfilerOutput.php.
|
protected |
Configuration of $wgProfiler.
Definition at line 25 of file ProfilerOutput.php.
Referenced by MediaWiki\Profiler\Output\ProfilerOutput\__construct(), and MediaWiki\Profiler\Output\ProfilerOutputText\__construct().