Skip to content

Web GUI to browse Valgrind and Xdebug profiling reports.

License

Notifications You must be signed in to change notification settings

nedix/kcachegrind-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web GUI to browse Valgrind and Xdebug profiling reports.

Screenshot at Oct 13 19-36-16

Usage

C/C++

Gain performance insights of C and C++ applications using Valgrind with Callgrind as the profiling tool.

1. Capture a Callgrind profiling report with Valgrind

valgrind --tool=callgrind --dump-instr=yes --collect-jumps=yes <your program>

2. Start the KCachegrind service

docker run --rm -d -p 8080:80 -v "${PWD}:/data" --name kcachegrind nedix/kcachegrind

3. Open the profiling data with KCachegrind

  • Browse to the KCachegrind web interface on http://127.0.0.1:8080
  • Click on the Open button in the toolbar
  • Navigate to the /data directory using the sidebar
  • Open your profiling report

PHP

Gain performance insights of PHP applications using Xdebug as the profiling tool.

1. Download the Compose manifest to your project directory

wget https://raw.githubusercontent.com/nedix/kcachegrind-container/main/docs/examples/php/compose-kcachegrind.yml

2. Start the KCachegrind service

docker compose -f compose-kcachegrind.yml up

3. Capture a profiling report with Xdebug

4. Open the profiling data with KCachegrind

  • Browse to the KCachegrind web interface on http://127.0.0.1:8082
  • Click on the Open button in the toolbar
  • Navigate to the /data directory using the sidebar
  • Open your profiling report

Attribution