BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
ProfilerSectionOnly Class Reference
Inheritance diagram for ProfilerSectionOnly:
Collaboration diagram for ProfilerSectionOnly:

Public Member Functions

 __construct (array $params=[])
 
 scopedProfileIn ($section)
 
 close ()
 
 getFunctionStats ()
 
 getOutput ()
 
- Public Member Functions inherited from Profiler
 __construct (array $params)
 
 setProfileID ($id)
 
 getProfileID ()
 
 setContext ($context)
 
 getContext ()
 
 profileIn ($functionname)
 
 profileOut ($functionname)
 
 scopedProfileIn ($section)
 
 scopedProfileOut (ScopedCallback &$section=null)
 
 getTransactionProfiler ()
 
 close ()
 
 logData ()
 
 logDataPageOutputOnly ()
 
 getContentType ()
 
 setTemplated ($t)
 
 getTemplated ()
 
 getFunctionStats ()
 
 getOutput ()
 

Protected Member Functions

 getFunctionReport ()
 

Protected Attributes

 $sprofiler
 
- Protected Attributes inherited from Profiler
 $profileID = false
 
 $templated = false
 
 $params = []
 
 $context = null
 
 $trxProfiler
 

Additional Inherited Members

- Static Public Member Functions inherited from Profiler
static instance ()
 
static replaceStubInstance (Profiler $profiler)
 

Detailed Description

Profiler that only tracks explicit profiling sections

$wgProfiler['class'] = 'ProfilerSectionOnly';
$wgProfiler['output'] = 'text';
$wgProfiler['visible'] = true;
Author
Aaron Schulz
Since
1.25

Member Function Documentation

ProfilerSectionOnly::getFunctionReport ( )
protected

Get a report of profiled functions sorted by inclusive wall clock time in descending order.

Each line of the report includes this data:

  • Function name
  • Number of times function was called
  • Total wall clock time spent in function in microseconds
  • Minimum wall clock time spent in function in microseconds
  • Average wall clock time spent in function in microseconds
  • Maximum wall clock time spent in function in microseconds
  • Percentage of total wall clock time spent in function
  • Total delta of memory usage from start to end of function in bytes
Returns
string

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