You are here

public function Profiler::isLoaded in XHProf 8

Is any profiler extension loaded.

Return value

bool TRUE when more then one PHP supported profiler enabled, FALSE otherwise.

Overrides ProfilerInterface::isLoaded

1 call to Profiler::isLoaded()
Profiler::canEnable in src/Profiler.php
Returns whether a profiling can be enabled for the current request.

File

src/Profiler.php, line 146

Class

Profiler
Provides profiler service.

Namespace

Drupal\xhprof

Code

public function isLoaded() {
  return count($this
    ->getExtensions()) >= 1;
}