MediaWiki  1.23.15
ProfilerSimpleText Class Reference

The least sophisticated profiler output class possible, view your source! :) More...

Inheritance diagram for ProfilerSimpleText:
Collaboration diagram for ProfilerSimpleText:

Public Member Functions

 __construct ( $profileConfig)
 
 logData ()
 Log the whole profiling data into the database. More...
 
- Public Member Functions inherited from ProfilerSimple
 getErrorEntry ()
 
 getFunctionReport ()
 Returns a list of profiled functions. More...
 
 getRawData ()
 
 getZeroEntry ()
 
 isPersistent ()
 Return whether this profiler stores data. More...
 
 profileIn ( $functionname)
 Called by wfProfieIn() More...
 
 profileOut ( $functionname)
 Called by wfProfieOut() More...
 
 setMinimum ( $min)
 
 updateEntry ( $name, $elapsedCpu, $elapsedReal)
 
- Public Member Functions inherited from Profiler
 calltreeCount ( $stack, $start)
 Counts the number of profiled function calls sitting under the given point in the call graph. More...
 
 close ()
 Close opened profiling sections. More...
 
 debug ( $s)
 Add an entry in the debug log file. More...
 
 debugGroup ( $group, $s)
 Add an entry in the debug log group. More...
 
 getCallTree ()
 Returns a tree of function call instead of a list of functions. More...
 
 getCallTreeLine ( $entry)
 Callback to get a formatted line for the call tree. More...
 
 getCurrentSection ()
 Get the function name of the current profiling section. More...
 
 getOutput ()
 Returns a profiling output to be stored in debug file. More...
 
 getProfileID ()
 
 getTime ( $metric=false)
 Get the initial time of the request, based either on $wgRequestTime or $wgRUstart. More...
 
 isStub ()
 Return whether this a stub profiler. More...
 
 remapCallTree ( $stack)
 Recursive function the format the current profiling array into a tree. More...
 
 setProfileID ( $id)
 
 setTemplated ( $t)
 Mark this call as templated or not. More...
 
 transactionWritingIn ( $server, $db)
 Mark a DB as in a transaction with one or more writes pending. More...
 
 transactionWritingOut ( $server, $db)
 Mark a DB as no longer in a transaction. More...
 

Static Public Member Functions

static format ( $item, $key, $totalReal)
 
static sort ( $a, $b)
 
- Static Public Member Functions inherited from Profiler
static instance ()
 Singleton. More...
 
static setInstance (Profiler $p)
 Set the profiler to a specific profiler instance. More...
 

Public Attributes

 $visible = false
 
- Public Attributes inherited from ProfilerSimple
 $errorEntry
 
 $mMinimumTime = 0
 
- Public Attributes inherited from Profiler
 $mCalls = array()
 
 $mCollated = array()
 
 $mCollateDone = false
 
 $mPeriods = array()
 
 $mTemplated = false
 
 $mTotals = array()
 
 $mWorkStack = array()
 

Static Private Attributes

static $out
 

Additional Inherited Members

- Static Public Attributes inherited from Profiler
static $__instance = null
 
- Protected Member Functions inherited from ProfilerSimple
 addInitialStack ()
 Add the inital item in the stack. More...
 
- Protected Member Functions inherited from Profiler
 collateData ()
 
 getContentType ()
 Get the content type sent out to the client. More...
 
 getInitialTime ( $metric=false)
 Get the initial time of the request, based either on $wgRequestTime or $wgRUstart. More...
 
 updateTrxProfiling ( $method, $realtime)
 Register the name and time of a method for slow DB trx detection. More...
 
- Static Protected Member Functions inherited from Profiler
static calculateOverhead ( $profileCount)
 Dummy calls to wfProfileIn/wfProfileOut to calculate its overhead. More...
 
- Protected Attributes inherited from Profiler
 $mDBLockThreshold = 5.0
 
 $mDBTrxHoldingLocks = array()
 
 $mDBTrxMethodTimes = array()
 
 $mProfileID = false
 
 $mStack = array()
 
 $mTimeMetric = 'wall'
 

Detailed Description

The least sophisticated profiler output class possible, view your source! :)

Put the following 2 lines in StartProfiler.php:

$wgProfiler['class'] = 'ProfilerSimpleText'; $wgProfiler['visible'] = true;

Definition at line 34 of file ProfilerSimpleText.php.

Constructor & Destructor Documentation

◆ __construct()

ProfilerSimpleText::__construct (   $profileConfig)

Reimplemented from Profiler.

Definition at line 38 of file ProfilerSimpleText.php.

Member Function Documentation

◆ format()

static ProfilerSimpleText::format (   $item,
  $key,
  $totalReal 
)
static

Definition at line 73 of file ProfilerSimpleText.php.

References $out.

◆ logData()

ProfilerSimpleText::logData ( )

Log the whole profiling data into the database.

Reimplemented from ProfilerSimple.

Definition at line 45 of file ProfilerSimpleText.php.

References $out, array(), Profiler\close(), and Profiler\getContentType().

◆ sort()

static ProfilerSimpleText::sort (   $a,
  $b 
)
static

Definition at line 69 of file ProfilerSimpleText.php.

Member Data Documentation

◆ $out

ProfilerSimpleText::$out
staticprivate

Definition at line 36 of file ProfilerSimpleText.php.

◆ $visible

ProfilerSimpleText::$visible = false

Definition at line 35 of file ProfilerSimpleText.php.


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