TidewaysExtension.php in XHProf 8
File
src/Extension/TidewaysExtension.php
View source
<?php
namespace Drupal\xhprof\Extension;
class TidewaysExtension implements ExtensionInterface {
public static function isLoaded() {
return extension_loaded('tideways');
}
public function getOptions() {
return [
'FLAGS_CPU' => 'TIDEWAYS_FLAGS_CPU',
'FLAGS_MEMORY' => 'TIDEWAYS_FLAGS_MEMORY',
'FLAGS_NO_BUILTINS' => 'TIDEWAYS_FLAGS_NO_BUILTINS',
];
}
public function enable($modifier, $options) {
tideways_enable($modifier, $options);
}
public function disable() {
return tideways_disable();
}
}