class XhprofCommands extends DrushCommands (View source)

Class XhprofCommands

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

XH_PROFILE_MEMORY

XH_PROFILE_CPU

XH_PROFILE_BUILTINS

Methods

getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

printFile(string $file)

Print the contents of a file.

optionsetXhProf($options = ['xh-link' => self::REQ])

No description

xhprofPost($result, CommandData $commandData)

Enable profiling via XHProf

xhprofInitialize(InputInterface $input, AnnotationData $annotationData)

Enable profiling via XHProf

static 
xhprofIsEnabled()

No description

static 
xhprofFlags(array $config)

Determines flags.

static 
xhprofEnable($flags)

Enable profiling.

xhprofFinishRun($namespace)

Disable profiling and save results.

Details

DrushConfig getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.

optionsetXhProf($options = ['xh-link' => self::REQ])

Parameters

$options

xhprofPost($result, CommandData $commandData)

Enable profiling via XHProf

Parameters

$result
CommandData $commandData

xhprofInitialize(InputInterface $input, AnnotationData $annotationData)

Enable profiling via XHProf

Parameters

InputInterface $input
AnnotationData $annotationData

static xhprofIsEnabled()

static xhprofFlags(array $config)

Determines flags.

TODO: Make these work for Tideways as well.

Parameters

array $config

static xhprofEnable($flags)

Enable profiling.

Parameters

$flags

xhprofFinishRun($namespace)

Disable profiling and save results.

Parameters

$namespace