class TidewaysExtension in XHProf 8
Implements support for tideways extension.
Hierarchy
- class \Drupal\xhprof\Extension\TidewaysExtension implements ExtensionInterface
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\ExtensionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TidewaysExtension:: |
public | function |
Disables the extension. Overrides ExtensionInterface:: |
|
TidewaysExtension:: |
public | function |
Enables the profiling with the extension. Overrides ExtensionInterface:: |
|
TidewaysExtension:: |
public | function |
Returns the options supported by this extension. Overrides ExtensionInterface:: |
|
TidewaysExtension:: |
public static | function |
Returns TRUE if this extension is loaded into the PHP interpreter. Overrides ExtensionInterface:: |