MediaWiki  1.29.1
Xhprof Class Reference

Convenience class for working with XHProf More...

Static Public Member Functions

static disable ()
 Stop xhprof profiler. More...
static enable ( $flags=0, $options=[])
 Start xhprof profiler. More...
static isEnabled ()
 Start xhprof profiler. More...

Static Protected Attributes

static $enabled

Detailed Description

Convenience class for working with XHProf

XHProf can be installed as a PECL package for use with PHP5 (Zend PHP) and is built-in to HHVM 3.3.0.

This also supports using the Tideways profiler, which additionally has support for PHP7.


Definition at line 32 of file Xhprof.php.

Member Function Documentation

◆ disable()

static Xhprof::disable ( )

Stop xhprof profiler.

array|null xhprof data from the run, or null if xhprof was not running.

Definition at line 67 of file Xhprof.php.

References tideways_disable().

Referenced by ProfilerXhprof\getXhprofData().

◆ enable()

static Xhprof::enable (   $flags = 0,
  $options = [] 

Start xhprof profiler.

Definition at line 48 of file Xhprof.php.

References $flags, $options, and tideways_enable().

Referenced by ProfilerXhprof\__construct().

◆ isEnabled()

static Xhprof::isEnabled ( )

Start xhprof profiler.

Definition at line 41 of file Xhprof.php.

References $enabled.

Member Data Documentation

◆ $enabled


Definition at line 36 of file Xhprof.php.

Referenced by isEnabled().

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