MediaWiki
1.32.5
|
Logs profiling data into the local DB. More...
Public Member Functions | |
__construct (Profiler $collector, array $params) | |
canUse () | |
Can this output type be used? More... | |
log (array $stats) | |
Log MediaWiki-style profiling data. More... | |
Private Attributes | |
bool | $perHost = false |
Whether to store host data with profiling calls. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ProfilerOutput | |
Profiler | $collector |
array | $params = [] |
Configuration of $wgProfiler. More... | |
Logs profiling data into the local DB.
Definition at line 33 of file ProfilerOutputDb.php.
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, and ProfilerOutput\$params.
ProfilerOutputDb::canUse | ( | ) |
Can this output type be used?
Reimplemented from ProfilerOutput.
Definition at line 46 of file ProfilerOutputDb.php.
References wfReadOnly().
ProfilerOutputDb::log | ( | array | $stats | ) |
Log MediaWiki-style profiling data.
array | $stats | Result of Profiler::getFunctionStats() |
Reimplemented from ProfilerOutput.
Definition at line 51 of file ProfilerOutputDb.php.
References $e, $fname, $name, as, DB_MASTER, Wikimedia\Rdbms\Database\endAtomic(), Wikimedia\Rdbms\IDatabase\getType(), Wikimedia\Rdbms\Database\startAtomic(), Wikimedia\Rdbms\Database\upsert(), use, wfGetDB(), and wfHostname().
|
private |
Whether to store host data with profiling calls.
Definition at line 35 of file ProfilerOutputDb.php.