MediaWiki  1.29.1
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)
 Constructor. More...
 canUse ()
 Can this output type be used? More...
 log (array $stats)
 Log MediaWiki-style profiling data. 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 


Profiler$collectorThe actual profiler
array$paramsConfiguration array, passed down from $wgProfiler

Reimplemented in ProfilerOutputDb, and ProfilerOutputText.

Definition at line 38 of file ProfilerOutput.php.

References $collector, and $params.

Member Function Documentation

◆ canUse()

ProfilerOutput::canUse ( )

Can this output type be used?


Reimplemented in ProfilerOutputDb, and ProfilerOutputDump.

Definition at line 47 of file ProfilerOutput.php.

◆ log()

ProfilerOutput::log ( array  $stats)

Log MediaWiki-style profiling data.

array$statsResult of Profiler::getFunctionStats()

Reimplemented in ProfilerOutputDb, ProfilerOutputDump, ProfilerOutputStats, and ProfilerOutputText.

Member Data Documentation

◆ $collector

Profiler ProfilerOutput::$collector

◆ $params

array ProfilerOutput::$params = []

Configuration of $wgProfiler.

Definition at line 31 of file ProfilerOutput.php.

Referenced by ProfilerOutputText\__construct(), ProfilerOutputDb\__construct(), and __construct().

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