Inherits Profiler.
Inherited by ProfilerSimpleText, ProfilerSimpleTrace, and ProfilerSimpleUDP.
Public Member Functions | |
__construct () | |
setMinimum ($min) | |
setProfileID ($id) | |
getProfileID () | |
profileIn ($functionname) | |
Called by wfProfieIn(). | |
profileOut ($functionname) | |
Called by wfProfieOut(). | |
getFunctionReport () | |
Returns a list of profiled functions. | |
getCpuTime ($ru=null) | |
getTime ($time=null) | |
Public Attributes | |
$mMinimumTime = 0 | |
$mProfileID = false |
Definition at line 16 of file ProfilerSimple.php.
ProfilerSimple::__construct | ( | ) |
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleTrace.
Definition at line 20 of file ProfilerSimple.php.
References $wgRequestTime, and getCpuTime().
ProfilerSimple::getCpuTime | ( | $ | ru = null |
) |
Definition at line 110 of file ProfilerSimple.php.
Referenced by ProfilerSimpleTrace::__construct(), __construct(), ProfilerSimpleTrace::profileIn(), profileIn(), ProfilerSimpleTrace::profileOut(), and profileOut().
ProfilerSimple::getFunctionReport | ( | ) |
Returns a list of profiled functions.
Also log it into the database if $wgProfileToDatabase is set to true.
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleText, and ProfilerSimpleUDP.
Definition at line 106 of file ProfilerSimple.php.
ProfilerSimple::getProfileID | ( | ) |
Definition at line 49 of file ProfilerSimple.php.
References wfWikiID().
Referenced by ProfilerSimpleUDP::getFunctionReport().
ProfilerSimple::getTime | ( | $ | time = null |
) |
Definition at line 122 of file ProfilerSimple.php.
ProfilerSimple::profileIn | ( | $ | functionname | ) |
Called by wfProfieIn().
$functionname | string |
Reimplemented from Profiler.
Reimplemented in ProfilerSimpleTrace.
Definition at line 57 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 65 of file ProfilerSimple.php.
References $wgDebugFunctionEntry, Profiler::debug(), and getCpuTime().
ProfilerSimple::setMinimum | ( | $ | min | ) |
Definition at line 41 of file ProfilerSimple.php.
ProfilerSimple::setProfileID | ( | $ | id | ) |
Definition at line 45 of file ProfilerSimple.php.
ProfilerSimple::$mMinimumTime = 0 |
ProfilerSimple::$mProfileID = false |