MediaWiki  master
ProfilerOutput Class Reference

Base class for profiling output. More...

Inheritance diagram for ProfilerOutput:
Collaboration diagram for ProfilerOutput:

Public Member Functions

 __construct (Profiler $collector, array $params)
 
 canUse ()
 Can this output type be used? More...
 
 log (array $stats)
 Log MediaWiki-style profiling data. More...
 
 logsToOutput ()
 Does log() just send the data to the request/script output? More...
 

Protected Attributes

Profiler $collector
 
array $params = []
 Configuration of $wgProfiler. More...
 

Detailed Description

Base class for profiling output.

Since 1.25

Definition at line 27 of file ProfilerOutput.php.

Constructor & Destructor Documentation

◆ __construct()

ProfilerOutput::__construct ( Profiler  $collector,
array  $params 
)
Parameters
Profiler$collectorThe actual profiler
array$paramsConfiguration array, passed down from $wgProfiler

Definition at line 37 of file ProfilerOutput.php.

References $collector, and $params.

Member Function Documentation

◆ canUse()

ProfilerOutput::canUse ( )

Can this output type be used?

Returns
bool

Definition at line 46 of file ProfilerOutput.php.

◆ log()

ProfilerOutput::log ( array  $stats)
abstract

Log MediaWiki-style profiling data.

Parameters
array$statsResult of Profiler::getFunctionStats()

Referenced by logsToOutput().

◆ logsToOutput()

ProfilerOutput::logsToOutput ( )

Does log() just send the data to the request/script output?

Returns
bool
Since
1.33

Definition at line 55 of file ProfilerOutput.php.

References array(), and log().

Member Data Documentation

◆ $collector

Profiler ProfilerOutput::$collector
protected

Definition at line 29 of file ProfilerOutput.php.

Referenced by __construct().

◆ $params

array ProfilerOutput::$params = []
protected

Configuration of $wgProfiler.

Definition at line 31 of file ProfilerOutput.php.

Referenced by __construct().


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