MediaWiki  1.28.0
Xhprof Class Reference

Convenience class for working with XHProf https://github.com/phacility/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 https://github.com/phacility/xhprof.

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

Since
1.28

Definition at line 28 of file Xhprof.php.

Member Function Documentation

static Xhprof::disable ( )
static

Stop xhprof profiler.

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

Definition at line 57 of file Xhprof.php.

Referenced by ProfilerXhprof\getXhprofData().

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

Start xhprof profiler.

Definition at line 44 of file Xhprof.php.

References $flags, and $options.

Referenced by ProfilerXhprof\__construct().

static Xhprof::isEnabled ( )
static

Start xhprof profiler.

Definition at line 37 of file Xhprof.php.

Member Data Documentation

Xhprof::$enabled
staticprotected

Definition at line 32 of file Xhprof.php.


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