|
MediaWiki master
|
Base class for profiling output. More...
Inherited by ProfilerOutputDump, ProfilerOutputStats, and 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. | |
| ProfilerOutput::__construct | ( | Profiler | $collector, |
| array | $params ) |
| Profiler | $collector | The actual profiler |
| array | $params | Configuration array, passed down from $wgProfiler |
Reimplemented in ProfilerOutputText.
Definition at line 28 of file ProfilerOutput.php.
References $collector, and $params.
| ProfilerOutput::canUse | ( | ) |
Can this output type be used?
Reimplemented in ProfilerOutputDump.
Definition at line 38 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 ProfilerOutputDump, ProfilerOutputStats, and ProfilerOutputText.
| ProfilerOutput::logsToOutput | ( | ) |
May the log() try to write to standard output?
Reimplemented in ProfilerOutputText.
Definition at line 47 of file ProfilerOutput.php.
|
protected |
Definition at line 18 of file ProfilerOutput.php.
Referenced by __construct(), and ProfilerOutputText\__construct().
|
protected |
Definition at line 20 of file ProfilerOutput.php.
|
protected |
Configuration of $wgProfiler.
Definition at line 22 of file ProfilerOutput.php.
Referenced by __construct(), and ProfilerOutputText\__construct().