MediaWiki
REL1_19
|
Simple profiler base class. More...
Public Member Functions | |
__construct ($params) | |
getCpuTime ($ru=null) | |
getFunctionReport () | |
Returns a list of profiled functions. | |
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) |
Simple profiler base class.
Definition at line 12 of file ProfilerSimple.php.
ProfilerSimple::__construct | ( | $ | params | ) |
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleText, and ProfilerSimpleTrace.
Definition at line 18 of file ProfilerSimple.php.
References $wgRequestTime, and getCpuTime().
ProfilerSimple::getCpuTime | ( | $ | ru = null | ) |
Definition at line 107 of file ProfilerSimple.php.
Referenced by ProfilerSimpleTrace\__construct(), __construct(), ProfilerSimpleTrace\profileIn(), profileIn(), and profileOut().
Returns a list of profiled functions.
Reimplemented from Profiler.
Definition at line 98 of file ProfilerSimple.php.
Log the whole profiling data into the database.
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleTrace, ProfilerSimpleText, and ProfilerSimpleUDP.
Definition at line 103 of file ProfilerSimple.php.
ProfilerSimple::profileIn | ( | $ | functionname | ) |
Called by wfProfieIn()
$functionname | String |
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleTrace.
Definition at line 51 of file ProfilerSimple.php.
References $wgDebugFunctionEntry, Profiler\debug(), and getCpuTime().
ProfilerSimple::profileOut | ( | $ | functionname | ) |
Called by wfProfieOut()
$functionname | String |
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleTrace.
Definition at line 59 of file ProfilerSimple.php.
References $wgDebugFunctionEntry, Profiler\debug(), and getCpuTime().
ProfilerSimple::setMinimum | ( | $ | min | ) |
Definition at line 47 of file ProfilerSimple.php.
ProfilerSimple::$errorEntry |
Definition at line 16 of file ProfilerSimple.php.
ProfilerSimple::$mMinimumTime = 0 |
Definition at line 13 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 15 of file ProfilerSimple.php.