Skip to content
This repository has been archived by the owner on Aug 25, 2019. It is now read-only.

Profiling

dietrichm edited this page Aug 11, 2011 · 1 revision

Profiling is done using the Xdebug extension to PHP. Results can be interpreted with an external tool.

Xdebug

Download/install

Enabling/running

In php.ini:

xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = /path/to/profiles

Call the forum with GET variable XDEBUG_PROFILE=1. This creates a cachegrind.out.x file.

Interpreting

KCacheGrind

Open cachegrind.out.x file for results.

WinCacheGrind

Untested. Information at http://sourceforge.net/projects/wincachegrind/

Clone this wiki locally