Change-Id: I3d86d74e8a97eb578f392f9f1d918cc628d2bf4b
if ( self::isEnabled() ) {
throw new Exception( 'Profiling is already enabled.' );
}
if ( self::isEnabled() ) {
throw new Exception( 'Profiling is already enabled.' );
}
+
+ $args = [ $flags ];
+ if ( $options ) {
+ $args[] = $options;
+ }
+
self::$enabled = true;
self::callAny(
[
self::$enabled = true;
self::callAny(
[
'tideways_enable',
'tideways_xhprof_enable'
],
'tideways_enable',
'tideways_xhprof_enable'
],