src/Environaut/Application.php
public function doRun(InputInterface $input, OutputInterface $output)
    {
        if ($input->hasParameterOption('--profile')) {
            $start_time = microtime(true);
        }

        $result = parent::doRun($input, $output);

        if (isset($start_time)) {
            $output->writeln(
                PHP_EOL . '<comment>Memory usage: ' . round(memory_get_usage() / 1024 / 1024, 2) .
                'MB (peak: ' . round(memory_get_peak_usage() / 1024 / 1024, 2) .
                'MB), time: ' . round(microtime(true) - $start_time, 2) . 's</comment>' . PHP_EOL
            );
        }

        return $result;
    }
public function doRun(InputInterface $input, OutputInterface $output)
    {
        if ($input->hasParameterOption('--profile')) {
            $start_time = microtime(true);
        }

        $result = parent::doRun($input, $output);

        if (isset($start_time)) {
            $output->writeln(
                PHP_EOL . '<comment>Memory usage: ' . round(memory_get_usage() / 1024 / 1024, 2) .
                'MB (peak: ' . round(memory_get_peak_usage() / 1024 / 1024, 2) .
                'MB), time: ' . round(microtime(true) - $start_time, 2) . 's</comment>' . PHP_EOL
            );
        }

        return $result;
    }
{@inheritDoc}