MediaWiki REL1_34
|
Convenience class for working with XHProf https://github.com/phacility/xhprof. More...
Static Public Member Functions | |
static | disable () |
Stop xhprof profiler. | |
static | enable ( $flags=0, $options=[]) |
Start xhprof profiler. | |
static | isEnabled () |
Start xhprof profiler. | |
Static Protected Member Functions | |
static | callAny (array $functions, array $args=[]) |
Call the first available function from $functions. | |
Static Protected Attributes | |
static | $enabled |
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.
This also supports using the Tideways profiler https://github.com/tideways/php-profiler-extension, which additionally has support for PHP7.
Definition at line 32 of file Xhprof.php.
|
staticprotected |
Call the first available function from $functions.
array | $functions | |
array | $args |
Exception |
Definition at line 98 of file Xhprof.php.
References $args.
|
static |
Stop xhprof profiler.
Definition at line 78 of file Xhprof.php.
References callAny().
Referenced by ProfilerXhprof\getXhprofData().
|
static |
Start xhprof profiler.
int | $flags | |
array | $options |
Exception |
Definition at line 52 of file Xhprof.php.
References $args, and callAny().
Referenced by ProfilerXhprof\__construct().
|
static |
|
staticprotected |
Definition at line 36 of file Xhprof.php.
Referenced by isEnabled().