Home

Awesome

MageDIAnalyzer

MageDIAnalyzer helps to calculate and report how Magento modules affect Magento2 DI compilation process and boostrapping process.

Features:

Installation

The process is the same as for any other composer-based project:

git clone https://github.com/roma-glushko/mage-di-analyzer.git
cd mage-di-analyzer
composer install

Usage

Put your project to the production mode and copy DI metadata files from generated/metadata to the project tmp directory.

Then, MageDIAnalyzer will be able to check the files by running:

./bin/mage-di-analyzer analyze ./tmp/ -a global -f csv

Command Examples

./bin/mage-di-analyzer analyze ./tmp/ -a global -f csv
./bin/mage-di-analyzer analyze ./tmp/ -a adminhtml -f csv
./bin/mage-di-analyzer analyze ./tmp/ -a frontend -f csv
./bin/mage-di-analyzer analyze ./tmp/ -a crontab -f csv
./bin/mage-di-analyzer analyze ./tmp/ -a webapi_rest -f csv
./bin/mage-di-analyzer analyze ./tmp/ -a webapi_soap -f csv

Report Example

Module NameAreaArgumentsArgument SizePreferencesPreference SizeInstance TypesInstance Type Size
Magento_Frameworkcrontab1995714.79kB33538.44kB576.25kB
Magento_Catalogcrontab1019531.2kB28338.36kB232.87kB