MediaWiki REL1_34
|
Logs profiling data into the local DB. More...
Public Member Functions | |
__construct (Profiler $collector, array $params) | |
canUse () | |
Can this output type be used? | |
log (array $stats) | |
Log MediaWiki-style profiling data. | |
Public Member Functions inherited from ProfilerOutput | |
logsToOutput () | |
May the log() try to write to standard output? | |
Private Attributes | |
bool | $perHost = false |
Whether to store host data with profiling calls. | |
Additional Inherited Members | |
Protected Attributes inherited from ProfilerOutput | |
Profiler | $collector |
array | $params = [] |
Configuration of $wgProfiler. | |
Logs profiling data into the local DB.
Definition at line 33 of file ProfilerOutputDb.php.
ProfilerOutputDb::__construct | ( | Profiler | $collector, |
array | $params | ||
) |
Profiler | $collector | The actual profiler |
array | $params | Configuration array, passed down from $wgProfiler |
Reimplemented from ProfilerOutput.
Definition at line 37 of file ProfilerOutputDb.php.
References ProfilerOutput\$collector, ProfilerOutput\$params, and wfDeprecated().
ProfilerOutputDb::canUse | ( | ) |
Can this output type be used?
Reimplemented from ProfilerOutput.
Definition at line 47 of file ProfilerOutputDb.php.
References wfReadOnly().
ProfilerOutputDb::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 52 of file ProfilerOutputDb.php.
References DB_MASTER, wfGetDB(), and wfHostname().
|
private |
Whether to store host data with profiling calls.
Definition at line 35 of file ProfilerOutputDb.php.