ProfilerSimple Class Reference
[Profiler]

Simple profiler base class. More...

Inherits Profiler.

Inherited by ProfilerSimpleText, ProfilerSimpleTrace, and ProfilerSimpleUDP.

List of all members.

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


Detailed Description

Simple profiler base class.

Todo:
document methods (?)

Definition at line 16 of file ProfilerSimple.php.


Constructor & Destructor Documentation

ProfilerSimple::__construct (  ) 

Reimplemented from Profiler.

Reimplemented in ProfilerSimpleTrace.

Definition at line 20 of file ProfilerSimple.php.

References $wgRequestTime, and getCpuTime().


Member Function Documentation

ProfilerSimple::getCpuTime ( ru = null  ) 

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

Parameters:
$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().

Parameters:
$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.


Member Data Documentation

ProfilerSimple::$mMinimumTime = 0

Reimplemented in ProfilerSimpleTrace.

Definition at line 17 of file ProfilerSimple.php.

ProfilerSimple::$mProfileID = false

Reimplemented in ProfilerSimpleTrace.

Definition at line 18 of file ProfilerSimple.php.


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

Generated on Sat Sep 5 02:08:45 2009 for MediaWiki by  doxygen 1.5.9