...
pcov is a high-performance alternative to XDebug. To set it up:
Install pcov :
Code Block pecl install pcov
Note and note the generated path to
pcov.so
, e.g./usr/local/lib/php/extensions/no-debug-non-zts-20230831/pcov.so
.:Code Block pecl install pcov
Update
php.ini
. Note here also that we update thememory_limit
to 8G:Code Block language ini memory_limit=8G [pcov] extension="path/to/pcov.so" pcov.enabled=1 pcov.exclude='~(vendor|tests|node_modules|.git|client|.scannerwork)~' pcov.initial.memory=1073741824 pcov.initial.files=30000
...