MediaWiki  REL1_23
ProfilerSimple Class Reference

Simple profiler base class. More...

Inheritance diagram for ProfilerSimple:
Collaboration diagram for ProfilerSimple:

List of all members.

Public Member Functions

 getErrorEntry ()
 getFunctionReport ()
 Returns a list of profiled functions.
 getRawData ()
 getZeroEntry ()
 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)
 updateEntry ($name, $elapsedCpu, $elapsedReal)

Public Attributes

 $errorEntry
 $mMinimumTime = 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 68 of file ProfilerSimple.php.

References array(), getErrorEntry(), Profiler\getInitialTime(), profileIn(), and profileOut().

Definition at line 44 of file ProfilerSimple.php.

References getZeroEntry().

Referenced by addInitialStack().

Returns a list of profiled functions.

Returns:
string

Reimplemented from Profiler.

Definition at line 132 of file ProfilerSimple.php.

Returns:
array

Reimplemented from Profiler.

Definition at line 126 of file ProfilerSimple.php.

References array().

Definition at line 34 of file ProfilerSimple.php.

References array().

Referenced by getErrorEntry(), and updateEntry().

Return whether this profiler stores data.

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

Reimplemented from Profiler.

Reimplemented in ProfilerSimpleUDP.

Definition at line 63 of file ProfilerSimple.php.

Log the whole profiling data into the database.

Reimplemented from Profiler.

Reimplemented in ProfilerSimpleTrace, ProfilerSimpleText, and ProfilerSimpleUDP.

Definition at line 137 of file ProfilerSimple.php.

ProfilerSimple::profileIn ( functionname)

Called by wfProfieIn()

Parameters:
$functionnameString

Reimplemented from Profiler.

Reimplemented in ProfilerSimpleTrace.

Definition at line 87 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 95 of file ProfilerSimple.php.

References Profiler\debug(), Profiler\debugGroup(), Profiler\getTime(), global, list, updateEntry(), and Profiler\updateTrxProfiling().

Referenced by addInitialStack().

Definition at line 83 of file ProfilerSimple.php.

ProfilerSimple::updateEntry ( name,
elapsedCpu,
elapsedReal 
)

Definition at line 50 of file ProfilerSimple.php.

References $name, and getZeroEntry().

Referenced by profileOut().


Member Data Documentation

ProfilerSimple::$errorEntry

Definition at line 32 of file ProfilerSimple.php.

ProfilerSimple::$mMinimumTime = 0

Definition at line 30 of file ProfilerSimple.php.


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