39 public static function enable( $flags = 0, $options = [] ) {
49 'tideways_xhprof_enable'
65 'tideways_xhprof_disable'
76 protected static function callAny( array $functions, array
$args = [] ) {
77 foreach ( $functions as $func ) {
78 if ( function_exists( $func ) ) {
79 return $func( ...
$args );
83 throw new Exception(
"Neither xhprof nor tideways are installed" );
Convenience class for working with XHProf https://github.com/phacility/xhprof.
static enable( $flags=0, $options=[])
Start profiler.
static disable()
Stop profiler.
static callAny(array $functions, array $args=[])
Call the first available function from $functions.