MediaWiki
REL1_22
|
Simple profiler base class. More...
Public Member Functions | |
getCpuTime ($ru=null) | |
Get the actual CPU time or the initial one if $ru is set. | |
getFunctionReport () | |
Returns a list of profiled functions. | |
isPersistent () | |
Return whether this profiler stores data. | |
logData () | |
Log the whole profiling data into the database. | |
profileIn ($functionname) | |
Called by wfProfieIn() | |
profileOut ($functionname) | |
Called by wfProfieOut() | |
setMinimum ($min) | |
Public Attributes | |
$errorEntry | |
$mMinimumTime = 0 | |
$zeroEntry = array( 'cpu' => 0.0, 'cpu_sq' => 0.0, 'real' => 0.0, 'real_sq' => 0.0, 'count' => 0 ) | |
Protected Member Functions | |
addInitialStack () | |
Add the inital item in the stack. |
Simple profiler base class.
Definition at line 29 of file ProfilerSimple.php.
ProfilerSimple::addInitialStack | ( | ) | [protected] |
Add the inital item in the stack.
Reimplemented from Profiler.
Definition at line 40 of file ProfilerSimple.php.
References array(), Profiler\getInitialTime(), profileIn(), and profileOut().
ProfilerSimple::getCpuTime | ( | $ | ru = null | ) |
Get the actual CPU time or the initial one if $ru is set.
Definition at line 123 of file ProfilerSimple.php.
References Profiler\getInitialTime(), Profiler\getTime(), and wfDeprecated().
Returns a list of profiled functions.
Reimplemented from Profiler.
Definition at line 108 of file ProfilerSimple.php.
Return whether this profiler stores data.
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleUDP.
Definition at line 35 of file ProfilerSimple.php.
Log the whole profiling data into the database.
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleTrace, ProfilerSimpleText, and ProfilerSimpleUDP.
Definition at line 113 of file ProfilerSimple.php.
ProfilerSimple::profileIn | ( | $ | functionname | ) |
Called by wfProfieIn()
$functionname | String |
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleTrace.
Definition at line 60 of file ProfilerSimple.php.
References array(), Profiler\debug(), Profiler\getTime(), and global.
Referenced by addInitialStack().
ProfilerSimple::profileOut | ( | $ | functionname | ) |
Called by wfProfieOut()
$functionname | String |
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleTrace.
Definition at line 68 of file ProfilerSimple.php.
References Profiler\debug(), Profiler\getTime(), global, list, and Profiler\updateTrxProfiling().
Referenced by addInitialStack().
ProfilerSimple::setMinimum | ( | $ | min | ) |
Definition at line 56 of file ProfilerSimple.php.
ProfilerSimple::$errorEntry |
Definition at line 33 of file ProfilerSimple.php.
ProfilerSimple::$mMinimumTime = 0 |
Definition at line 30 of file ProfilerSimple.php.
ProfilerSimple::$zeroEntry = array( 'cpu' => 0.0, 'cpu_sq' => 0.0, 'real' => 0.0, 'real_sq' => 0.0, 'count' => 0 ) |
Definition at line 32 of file ProfilerSimple.php.