interface ExtensionInterface in XHProf 8
Defines profiling extension.
Hierarchy
- interface \Drupal\xhprof\Extension\ExtensionInterface
Expanded class hierarchy of ExtensionInterface
All classes that implement ExtensionInterface
File
- src/
Extension/ ExtensionInterface.php, line 8
Namespace
Drupal\xhprof\ExtensionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExtensionInterface:: |
public | function | Disables the extension. | 4 |
ExtensionInterface:: |
public | function | Enables the profiling with the extension. | 4 |
ExtensionInterface:: |
public | function | Returns the options supported by this extension. | 4 |
ExtensionInterface:: |
public static | function | Returns TRUE if this extension is loaded into the PHP interpreter. | 4 |