You are here

public function ProfilerInterface::canEnable in XHProf 8

Returns whether a profiling can be enabled for the current request.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request.

Return value

bool TRUE profiling can be enabled, FALSE otherwise.

1 method overrides ProfilerInterface::canEnable()
Profiler::canEnable in src/Profiler.php
Returns whether a profiling can be enabled for the current request.

File

src/ProfilerInterface.php, line 44

Class

ProfilerInterface
Provides interface to interact with profiler.

Namespace

Drupal\xhprof

Code

public function canEnable(Request $request);