KCachegrind
A Docker image for the KCachegrind profiling tool with browser accessibility, which can be used in conjunction with Xdebug to view PHP profiling data.
Setup
docker-compose-kcachegrind.ymlversion: "3.9"services:nginx-xdebug:image: wodby/nginx:1.19environment:NGINX_VHOST_PRESET: phpNGINX_BACKEND_HOST: xdebugNGINX_SERVER_ROOT: /var/www/html/public
Usage
Step 1.
Start the containers:
docker compose -f docker-compose.yml -f docker-compose-kcachegrind.yml up -d
Step 2.
Navigate to your page on localhost:8000 to capture the profiling data.
Step 3.
Find KCachegrind on localhost:8001.