MediaWiki REL1_35
|
Base class for profiling output. More...
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 |
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 37 of file ProfilerOutput.php.
References $collector, and $params.
ProfilerOutput::canUse | ( | ) |
Can this output type be used?
Reimplemented in ProfilerOutputDump.
Definition at line 46 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 55 of file ProfilerOutput.php.
|
protected |
Definition at line 29 of file ProfilerOutput.php.
Referenced by __construct(), and ProfilerOutputText\__construct().
|
protected |
Configuration of $wgProfiler.
Definition at line 31 of file ProfilerOutput.php.
Referenced by __construct(), and ProfilerOutputText\__construct().