Profiling
The various profilers supported out of the box.
This environment supports Xdebug and Blackfire for profiling your application.
In the interests of performance, profilers are not installed by default. To enable each follow the relevant instructions below.
Execute the following command to build a webserver container with the Xdebug extension enabled.
Tweak Xdebug's configuration by editing docker/webserver/apache-*-php72/templates/xdebug.ini
Follow Xdebug's docs for information on how to trigger Xdebug profiling.
Execute the following command to build a webserver container with the Blackfire agent and probe enabled.
You will be asked for your Blackfire client and server credentials during build.
Tweak Blackfire's configuration by editing docker/webserver/apache-*-php72/templates/blackfire.ini
The simplest way to profile a page is via the CLI:
More information available at Blackfire's docs.