You are here

interface ExtensionInterface in XHProf 8

Defines profiling extension.

Hierarchy

Expanded class hierarchy of ExtensionInterface

All classes that implement ExtensionInterface

File

src/Extension/ExtensionInterface.php, line 8

Namespace

Drupal\xhprof\Extension
View source
interface ExtensionInterface {

  /**
   * Returns TRUE if this extension is loaded into the PHP interpreter.
   *
   * @return bool
   *   TRUE when extension loaded or FALSE otherwise.
   */
  public static function isLoaded();

  /**
   * Returns the options supported by this extension.
   *
   * @return array
   *   Keyed array of allowed profiling options for the extension.
   */
  public function getOptions();

  /**
   * Enables the profiling with the extension.
   *
   * @param int $modifier
   *   Flags to add additional information to the profiling.
   * @param array $options
   *   An array of optional options.
   */
  public function enable($modifier, $options);

  /**
   * Disables the extension.
   *
   * @return array
   *   An array of profiling data, from the run.
   */
  public function disable();

}

Members

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