PhpBench\Extensions\XDebug\Command\TraceCommand::execute PHP Метод

execute() публичный Метод

public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    public function execute(InputInterface $input, OutputInterface $output)
    {
        $outputDir = $this->outputDirHandler->handleOutputDir($input, $output);
        $this->output = $output;
        $dump = $input->getOption('dump');
        $suite = $this->runnerHandler->runFromInput($input, $output, ['executor' => ['executor' => 'xdebug_trace', 'output_dir' => $outputDir], 'iterations' => [1]]);
        if ($dump) {
            foreach ($suite->getIterations() as $iteration) {
                $this->renderDump($iteration, $output);
            }
            return;
        }
        $this->renderer->render($suite, $output, ['filter_benchmark' => !$input->getOption('no-benchmark-filter'), 'show_args' => $input->getOption('show-args'), 'filter' => $input->getOption('trace-filter')]);
    }