You are here

public static function XHProfExtension::isLoaded in XHProf 8

Returns TRUE if this extension is loaded into the PHP interpreter.

Return value

bool TRUE when extension loaded or FALSE otherwise.

Overrides ExtensionInterface::isLoaded

1 call to XHProfExtension::isLoaded()
Profiler::getExtensions in src/Profiler.php
Returns a list of available PHP extensions for profiling.

File

src/Extension/XHProfExtension.php, line 15

Class

XHProfExtension
Implements support for PHP 7 XHProf extension.

Namespace

Drupal\xhprof\Extension

Code

public static function isLoaded() {
  return extension_loaded('xhprof');
}