MediaWiki
REL1_24
|
Profiler class for Mwprof. More...
Public Member Functions | |
close () | |
Close opened profiling sections. | |
getOutput () | |
Returns a profiling output to be stored in debug file. | |
getRawData () | |
isPersistent () | |
Return whether this profiler stores data. | |
isStub () | |
Return whether this a stub profiler. | |
logData () | |
Serialize profiling data and send to a profiling data aggregator. | |
profileIn ($inName) | |
Start a profiling section. | |
profileOut ($outName) | |
Close a profiling section. | |
updateRunningEntry ($name, $elapsedCpu, $elapsedWall) | |
Update an entry with timing data. | |
Public Attributes | |
const | TYPE_RUNNING = 2 |
const | TYPE_SINGLE = 1 |
Protected Attributes | |
array | $mCollated = array() |
Map of (function name => aggregate data array) *. | |
array | $mErrorEntry |
Cache of a standard broken collation entry *. | |
array | $mWorkStack = array() |
Queue of open profile calls with start data *. |
Profiler class for Mwprof.
Mwprof is a high-performance MediaWiki profiling data collector, designed to collect profiling data from multiple hosts running in tandem. This class serializes profiling samples into MessagePack arrays and sends them to an Mwprof instance via UDP.
Definition at line 35 of file ProfilerMwprof.php.
Close opened profiling sections.
Reimplemented from Profiler.
Definition at line 244 of file ProfilerMwprof.php.
Returns a profiling output to be stored in debug file.
Reimplemented from Profiler.
Definition at line 250 of file ProfilerMwprof.php.
Return whether this profiler stores data.
Called by Parser::braceSubstitution. If true, the parser will not generate per-title profiling sections, to avoid overloading the profiling data collector.
Reimplemented from Profiler.
Definition at line 49 of file ProfilerMwprof.php.
Return whether this a stub profiler.
Reimplemented from Profiler.
Definition at line 45 of file ProfilerMwprof.php.
Serialize profiling data and send to a profiling data aggregator.
Individual entries are represented as arrays and then encoded using MessagePack, an efficient binary data-interchange format. Encoded entries are accumulated into a buffer and sent in batch via UDP to the profiling data aggregator.
Reimplemented from Profiler.
Definition at line 195 of file ProfilerMwprof.php.
ProfilerMwprof::profileIn | ( | $ | inName | ) |
Start a profiling section.
Marks the beginning of the function or code-block that should be time and logged under some specific name.
string | $inName | Section to start |
Reimplemented from Profiler.
Definition at line 61 of file ProfilerMwprof.php.
ProfilerMwprof::profileOut | ( | $ | outName | ) |
Close a profiling section.
Marks the end of the function or code-block that should be timed and logged under some specific name.
string | $outName | Section to close |
Reimplemented from Profiler.
Definition at line 74 of file ProfilerMwprof.php.
ProfilerMwprof::updateRunningEntry | ( | $ | name, |
$ | elapsedCpu, | ||
$ | elapsedWall | ||
) |
Update an entry with timing data.
string | $name | Section name |
float | $elapsedCpu | Elapsed CPU time |
float | $elapsedWall | Elapsed wall-clock time |
Definition at line 97 of file ProfilerMwprof.php.
Map of (function name => aggregate data array) *.
Definition at line 38 of file ProfilerMwprof.php.
array ProfilerMwprof::$mErrorEntry [protected] |
Cache of a standard broken collation entry *.
Definition at line 39 of file ProfilerMwprof.php.
Queue of open profile calls with start data *.
Definition at line 36 of file ProfilerMwprof.php.
const ProfilerMwprof::TYPE_RUNNING = 2 |
Definition at line 43 of file ProfilerMwprof.php.
const ProfilerMwprof::TYPE_SINGLE = 1 |
Definition at line 42 of file ProfilerMwprof.php.