MediaWiki  REL1_19
ProfilerSimple Class Reference

Simple profiler base class. More...

Inheritance diagram for ProfilerSimple:
Collaboration diagram for ProfilerSimple:

List of all members.

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)

Detailed Description

Simple profiler base class.

Todo:
document methods (?)

Definition at line 12 of file ProfilerSimple.php.


Constructor & Destructor Documentation

Reimplemented from Profiler.

Reimplemented in ProfilerSimpleText, and ProfilerSimpleTrace.

Definition at line 18 of file ProfilerSimple.php.

References $wgRequestTime, and getCpuTime().

Here is the call graph for this function:


Member Function Documentation

ProfilerSimple::getCpuTime ( ru = null)

Definition at line 107 of file ProfilerSimple.php.

Referenced by ProfilerSimpleTrace\__construct(), __construct(), ProfilerSimpleTrace\profileIn(), profileIn(), and profileOut().

Here is the caller graph for this function:

Returns a list of profiled functions.

Returns:
string

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()

Parameters:
$functionnameString

Reimplemented from Profiler.

Reimplemented in ProfilerSimpleTrace.

Definition at line 51 of file ProfilerSimple.php.

References $wgDebugFunctionEntry, Profiler\debug(), and getCpuTime().

Here is the call graph for this function:

ProfilerSimple::profileOut ( functionname)

Called by wfProfieOut()

Parameters:
$functionnameString

Reimplemented from Profiler.

Reimplemented in ProfilerSimpleTrace.

Definition at line 59 of file ProfilerSimple.php.

References $wgDebugFunctionEntry, Profiler\debug(), and getCpuTime().

Here is the call graph for this function:

Definition at line 47 of file ProfilerSimple.php.


Member Data Documentation

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.


The documentation for this class was generated from the following file: