MediaWiki  master
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)
 
 logsToOutput ()
 
- Public Member Functions inherited from ProfilerOutput
 __construct (Profiler $collector, array $params)
 
 canUse ()
 Can this output type be used? More...
 
 log (array $stats)
 Log MediaWiki-style profiling data. More...
 
 logsToOutput ()
 May the log() try to write to standard output? More...
 

Private Attributes

float $thresholdMs
 Min real time display threshold. More...
 
bool $visible
 Whether to use visible text or a comment (for HTML responses) More...
 

Additional Inherited Members

- 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 
)

Definition at line 37 of file ProfilerOutputText.php.

Member Function Documentation

◆ log()

ProfilerOutputText::log ( array  $stats)

Definition at line 47 of file ProfilerOutputText.php.

References $thresholdMs, print, and wfIsCLI().

◆ logsToOutput()

ProfilerOutputText::logsToOutput ( )

Definition at line 43 of file ProfilerOutputText.php.

Member Data Documentation

◆ $thresholdMs

float ProfilerOutputText::$thresholdMs
private

Min real time display threshold.

Definition at line 32 of file ProfilerOutputText.php.

Referenced by log().

◆ $visible

bool ProfilerOutputText::$visible
private

Whether to use visible text or a comment (for HTML responses)

Definition at line 35 of file ProfilerOutputText.php.


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