MediaWiki  REL1_24
ProfilerSimpleTrace Class Reference

Execution trace profiler. More...

Inheritance diagram for ProfilerSimpleTrace:
Collaboration diagram for ProfilerSimpleTrace:

List of all members.

Public Member Functions

 logData ()
 Log the data to some store or even the page output.
 profileIn ($functionname)
 Called by wfProfieIn()
 profileOut ($functionname)
 Called by wfProfieOut()

Protected Member Functions

 collateOnly ()
 Whether to internally just track aggregates and ignore the full stack trace.
 memoryDiff ()

Protected Attributes

 $memory = 0
 $trace = "Beginning trace: \n"

Detailed Description

Execution trace profiler.

Todo:
document methods (?)

Definition at line 29 of file ProfilerSimpleTrace.php.


Member Function Documentation

Whether to internally just track aggregates and ignore the full stack trace.

Only doing collation saves memory overhead but limits the use of certain features like that of graph generation for the debug toolbar.

Returns:
bool

Reimplemented from ProfilerStandard.

Definition at line 33 of file ProfilerSimpleTrace.php.

Log the data to some store or even the page output.

Reimplemented from ProfilerStandard.

Definition at line 72 of file ProfilerSimpleTrace.php.

References ProfilerStandard\getContentType(), and print.

Definition at line 66 of file ProfilerSimpleTrace.php.

References memory.

Referenced by profileIn(), and profileOut().

ProfilerSimpleTrace::profileIn ( functionname)

Called by wfProfieIn()

Parameters:
string$functionname

Reimplemented from ProfilerStandard.

Definition at line 37 of file ProfilerSimpleTrace.php.

References memoryDiff().

ProfilerSimpleTrace::profileOut ( functionname)

Called by wfProfieOut()

Parameters:
string$functionname

Reimplemented from ProfilerStandard.

Definition at line 44 of file ProfilerSimpleTrace.php.

References Profiler\getTime(), list, and memoryDiff().


Member Data Documentation

ProfilerSimpleTrace::$memory = 0 [protected]

Definition at line 31 of file ProfilerSimpleTrace.php.

ProfilerSimpleTrace::$trace = "Beginning trace: \n" [protected]

Definition at line 30 of file ProfilerSimpleTrace.php.


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