This add-on integrates php-spx (Simple Profiling eXtension) into your DDEV project.
ddev add-on get mdeboer/ddev-php-spx
ddev restart
After installation, make sure to commit the .ddev directory to version control.
| Command | Description |
|---|---|
ddev spx status |
See whether SPX extension has been loaded |
ddev spx on |
Enable SPX extension |
ddev spx off |
Disable SPX extension |
For information about the usage of SPX itself, please refer to the official documentation at https://github.com/NoiseByNorthwest/php-spx.
To change the Docker image:
ddev dotenv set .ddev/.env.php-spx --php-spx-docker-image="ddev/ddev-utilities:latest"
ddev add-on get mdeboer/ddev-php-spx
ddev restart
Make sure to commit the .ddev/.env.php-spx file to version control.
All customization options (use with caution):
| Variable | Flag | Default |
|---|---|---|
PHP_SPX_DOCKER_IMAGE |
--php-spx-docker-image |
ddev/ddev-utilities:latest |
Contributed and maintained by @mdeboer