MediaWiki  REL1_22
ProfilerSimple Class Reference

Simple profiler base class. More...

Inheritance diagram for ProfilerSimple:
Collaboration diagram for ProfilerSimple:

List of all members.

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.

Detailed Description

Simple profiler base class.

Todo:
document methods (?)

Definition at line 29 of file ProfilerSimple.php.


Member Function Documentation

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.

Deprecated:
in 1.20
Returns:
float|null

Definition at line 123 of file ProfilerSimple.php.

References Profiler\getInitialTime(), Profiler\getTime(), and wfDeprecated().

Returns a list of profiled functions.

Returns:
string

Reimplemented from Profiler.

Definition at line 108 of file ProfilerSimple.php.

Return whether this profiler stores data.

See also:
Profiler::logData()
Returns:
Boolean

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

Parameters:
$functionnameString

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

Parameters:
$functionnameString

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

Definition at line 56 of file ProfilerSimple.php.


Member Data Documentation

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.


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