MediaWiki REL1_35
|
Adds profiler output to the HTTP response. More...
Public Member Functions | |
__construct (Profiler $collector, array $params) | |
log (array $stats) | |
Log MediaWiki-style profiling data. | |
logsToOutput () | |
May the log() try to write to standard output? | |
Public Member Functions inherited from ProfilerOutput | |
canUse () | |
Can this output type be used? | |
Private Attributes | |
float | $thresholdMs |
Min real time display threshold. | |
bool | $visible |
Whether to use visible text or a comment (for HTML responses) | |
Additional Inherited Members | |
Protected Attributes inherited from ProfilerOutput | |
Profiler | $collector |
array | $params = [] |
Configuration of $wgProfiler. | |
Adds profiler output to the HTTP response.
The least sophisticated profiler output class possible, view source! :)
Definition at line 29 of file ProfilerOutputText.php.
ProfilerOutputText::__construct | ( | Profiler | $collector, |
array | $params | ||
) |
Profiler | $collector | The actual profiler |
array | $params | Configuration array, passed down from $wgProfiler |
Reimplemented from ProfilerOutput.
Definition at line 36 of file ProfilerOutputText.php.
References ProfilerOutput\$collector, and ProfilerOutput\$params.
ProfilerOutputText::log | ( | array | $stats | ) |
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 from ProfilerOutput.
Definition at line 46 of file ProfilerOutputText.php.
References $thresholdMs, print, and wfIsCLI().
ProfilerOutputText::logsToOutput | ( | ) |
May the log() try to write to standard output?
Reimplemented from ProfilerOutput.
Definition at line 42 of file ProfilerOutputText.php.
|
private |
Min real time display threshold.
Definition at line 31 of file ProfilerOutputText.php.
Referenced by log().
|
private |
Whether to use visible text or a comment (for HTML responses)
Definition at line 34 of file ProfilerOutputText.php.