- https://symfony.com/doc/current/components/console/helpers/progressbar.html
- https://symfony.com/doc/current/components/stopwatch.html
- https://github.com/arnaud-lb/php-memory-profiler
- Под Mac Judy компилируем из исходников (инструкция прилагается) https://sourceforge.net/projects/judy/.
pecl install memprof
brew install qcachegrind
memprof_dump_callgrind(fopen('callgrind.dump', 'wb'));
MEMPROF_PROFILE=1 bin/console <command> --env=prod
qcachegrind <file>
- Клонируем с моего форка https://github.com/vudaltsov/php-meminfo +
git checkout php74_support
и дальше устанавливаем как описано в README. - Подробная инструкция по анализу: https://github.com/BitOne/php-meminfo/blob/master/doc/hunting_down_memory_leaks.md.
- symfony/symfony#32418,
$this->getApplication()->reset();