public function configure() { $this->setName('xdebug:profile'); $this->setDescription(<<<'EOT' Generate and optionally visulaize profiles with XDebug EOT ); RunnerHandler::configure($this); OutputDirHandler::configure($this); $this->addOption('gui', null, InputOption::VALUE_NONE); $this->addOption('gui-bin', null, InputOption::VALUE_REQUIRED, 'Bin to use to display cachegrind output', 'kcachegrind'); }
/** * {@inheritdoc} */ public function configure() { $this->setName('xdebug:trace'); $this->setDescription(<<<'EOT' Generate and optionally visulaize traces with XDebug EOT ); RunnerHandler::configure($this); OutputDirHandler::configure($this); $this->addOption('dump', null, InputOption::VALUE_NONE, 'Dump the raw trace XML'); $this->addOption('no-benchmark-filter', null, InputOption::VALUE_NONE, 'Do not filter functions surrounding the benchmark'); $this->addOption('trace-filter', null, InputOption::VALUE_REQUIRED, 'Regex function name filter'); $this->addOption('show-args', null, InputOption::VALUE_NONE, 'Show function arguments'); }
public function configure() { RunnerHandler::configure($this); ReportHandler::configure($this); $this->setName('run'); $this->setDescription('Run benchmarks'); $this->setHelp(<<<EOT Run benchmark files at given <comment>path</comment> \$ %command.full_name% /path/to/bench All bench marks under the given path will be executed recursively. EOT ); $this->addOption('dump-file', 'd', InputOption::VALUE_OPTIONAL, 'Dump XML result to named file'); $this->addOption('dump', null, InputOption::VALUE_NONE, 'Dump XML result to stdout and suppress all other output'); $this->addOption('iterations', null, InputOption::VALUE_REQUIRED, 'Override number of iteratios to run in (all) benchmarks'); $this->addOption('retry-threshold', 'r', InputOption::VALUE_REQUIRED, 'Set target allowable deviation', null); $this->addOption('sleep', null, InputOption::VALUE_REQUIRED, 'Number of microseconds to sleep between iterations'); $this->addOption('context', null, InputOption::VALUE_REQUIRED, 'Context label to apply to the suite result (useful when comparing reports)'); }
public function configure() { RunnerHandler::configure($this); ReportHandler::configure($this); TimeUnitHandler::configure($this); DumpHandler::configure($this); $this->setName('run'); $this->setDescription('Run benchmarks'); $this->setHelp(<<<'EOT' Run benchmark files at given <comment>path</comment> $ %command.full_name% /path/to/bench All bench marks under the given path will be executed recursively. EOT ); $this->addOption('iterations', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Override number of iteratios to run in (all) benchmarks'); $this->addOption('warmup', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Override number of warmup revolutions on all benchmarks'); $this->addOption('retry-threshold', 'r', InputOption::VALUE_REQUIRED, 'Set target allowable deviation', null); $this->addOption('sleep', null, InputOption::VALUE_REQUIRED, 'Number of microseconds to sleep between iterations'); $this->addOption('context', null, InputOption::VALUE_REQUIRED, 'Context label to apply to the suite result (useful when comparing reports)'); $this->addOption('store', null, InputOption::VALUE_NONE, 'Persist the results.'); }