xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/path/to/folder/for/cachegrind/files"
xdebug.profiler_output_name = "callgrind.out.%t.%p"
Note: This requires Homebrew be installed. See http://brew.sh/ for instructions.
-
Install QT (this will take a while)
brew install qt --HEAD
-
Install QCacheGrind
brew install qcachegrind
-
Create a Symlink in your Applications folder.
brew linkapps
-
Install Graphviz (for producing call graphs)
brew install graphviz sudo ln -s /usr/local/bin/dot /usr/bin/dot
You should be all setup. Now, visit the application in the browser, and it should create files in the path you specified in the XDebug config. Open the QCacheGrind.app
application and open one of the files.
Webgrind is also a solid option.