You are here

class TidewaysExtension in XHProf 8

Implements support for tideways extension.

Hierarchy

Expanded class hierarchy of TidewaysExtension

See also

https://tideways.io/profiler/downloads

1 file declares its use of TidewaysExtension
Profiler.php in src/Profiler.php

File

src/Extension/TidewaysExtension.php, line 10

Namespace

Drupal\xhprof\Extension
View source
class TidewaysExtension implements ExtensionInterface {

  /**
   * {@inheritdoc}
   */
  public static function isLoaded() {
    return extension_loaded('tideways');
  }

  /**
   * {@inheritdoc}
   */
  public function getOptions() {
    return [
      'FLAGS_CPU' => 'TIDEWAYS_FLAGS_CPU',
      'FLAGS_MEMORY' => 'TIDEWAYS_FLAGS_MEMORY',
      'FLAGS_NO_BUILTINS' => 'TIDEWAYS_FLAGS_NO_BUILTINS',
    ];
  }

  /**
   * {@inheritdoc}
   */
  public function enable($modifier, $options) {
    tideways_enable($modifier, $options);
  }

  /**
   * {@inheritdoc}
   */
  public function disable() {
    return tideways_disable();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TidewaysExtension::disable public function Disables the extension. Overrides ExtensionInterface::disable
TidewaysExtension::enable public function Enables the profiling with the extension. Overrides ExtensionInterface::enable
TidewaysExtension::getOptions public function Returns the options supported by this extension. Overrides ExtensionInterface::getOptions
TidewaysExtension::isLoaded public static function Returns TRUE if this extension is loaded into the PHP interpreter. Overrides ExtensionInterface::isLoaded