Skip to main contentNedix.io

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.yml
version: "3.9"
services:
nginx-xdebug:
image: wodby/nginx:1.19
environment:
NGINX_VHOST_PRESET: php
NGINX_BACKEND_HOST: xdebug
NGINX_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.