MediaWiki REL1_37
|
Convenience class for working with XHProf https://github.com/phacility/xhprof. More...
Static Public Member Functions | |
static | disable () |
Stop profiler. | |
static | enable ( $flags=0, $options=[]) |
Start profiler. | |
Static Protected Member Functions | |
static | callAny (array $functions, array $args=[]) |
Call the first available function from $functions. | |
Convenience class for working with XHProf https://github.com/phacility/xhprof.
XHProf can be installed via PECL.
This also supports using the Tideways profiler https://github.com/tideways/php-xhprof-extension.
Definition at line 31 of file Xhprof.php.
|
staticprotected |
Call the first available function from $functions.
array | $functions | |
array | $args |
Exception |
Definition at line 76 of file Xhprof.php.
References $args.
|
static |
Stop profiler.
Definition at line 61 of file Xhprof.php.
References callAny().
Referenced by ProfilerXhprof\getXhprofData().
|
static |
Start profiler.
int | $flags | |
array | $options |
Definition at line 39 of file Xhprof.php.
References $args, and callAny().
Referenced by ProfilerXhprof\__construct().