MediaWiki  1.33.0
ProfilerOutputText Class Reference

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

Inheritance diagram for ProfilerOutputText:
Collaboration diagram for ProfilerOutputText:

Public Member Functions

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

Protected Attributes

float $thresholdMs
 Min real time display threshold. More...
 
- Protected Attributes inherited from ProfilerOutput
Profiler $collector
 
array $params = []
 Configuration of $wgProfiler. More...
 

Detailed Description

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

Since
1.25

Definition at line 30 of file ProfilerOutputText.php.

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented from ProfilerOutput.

Definition at line 34 of file ProfilerOutputText.php.

References ProfilerOutput\$collector, and ProfilerOutput\$params.

Member Function Documentation

◆ log()

ProfilerOutputText::log ( array  $stats)

Log MediaWiki-style profiling data.

Parameters
array$statsResult of Profiler::getFunctionStats()

Reimplemented from ProfilerOutput.

Definition at line 43 of file ProfilerOutputText.php.

References $out, $thresholdMs, use, and wfIsCLI().

◆ logsToOutput()

ProfilerOutputText::logsToOutput ( )

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

Returns
bool
Since
1.33

Reimplemented from ProfilerOutput.

Definition at line 39 of file ProfilerOutputText.php.

Member Data Documentation

◆ $thresholdMs

float ProfilerOutputText::$thresholdMs
protected

Min real time display threshold.

Definition at line 32 of file ProfilerOutputText.php.

Referenced by log().


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