Woshiadai Dev Notebook

May 19, 2009

cachegrind for Mac

Filed under: PHP

Start to learn how to do profiling and optimization for PHP code. Found Kcachegrind is handy to visualize XDebug data. There are other similar cachegrind tools:

1. Kcachegrind: you can get it from Macports, check out this if you don’t know how to get started with Macports. Note this might take a long time to install. In my case, I also need to install graphviz to see the call graph.

2. MacCallGrind: this displays the data in a table structure.

3. cachegrindvisualizer: this is a google code project, installed/coded using Adobe AIR, fairly cool UI. If you only need to see the call graph, you probably don’t need Kcachegrind anymore.

4. webgrind: a Web UI for the cachegrind data, also shows a table-like structure.






















Get free blog up and running in minutes with Blogsome
Theme designed by Ben de Groot