MediaWiki  1.30.2
ProfilerOutputDump Class Reference

Profiler dumping output in xhprof dump file. More...

Inheritance diagram for ProfilerOutputDump:
Collaboration diagram for ProfilerOutputDump:

Public Member Functions

 canUse ()
 Can this output type be used? More...
 
 log (array $stats)
 Log MediaWiki-style profiling data. More...
 
- Public Member Functions inherited from ProfilerOutput
 __construct (Profiler $collector, array $params)
 

Protected Attributes

 $suffix = ".xhprof"
 
- Protected Attributes inherited from ProfilerOutput
Profiler $collector
 
array $params = []
 Configuration of $wgProfiler. More...
 

Detailed Description

Profiler dumping output in xhprof dump file.

Since
1.25

Definition at line 30 of file ProfilerOutputDump.php.

Member Function Documentation

◆ canUse()

ProfilerOutputDump::canUse ( )

Can this output type be used?

Returns
bool

Reimplemented from ProfilerOutput.

Definition at line 39 of file ProfilerOutputDump.php.

◆ log()

ProfilerOutputDump::log ( array  $stats)

Log MediaWiki-style profiling data.

Parameters
array$statsResult of Profiler::getFunctionStats()

Reimplemented from ProfilerOutput.

Definition at line 46 of file ProfilerOutputDump.php.

References $suffix, and serialize().

Member Data Documentation

◆ $suffix

ProfilerOutputDump::$suffix = ".xhprof"
protected

Definition at line 32 of file ProfilerOutputDump.php.

Referenced by log().


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