webgrind on wamp

andrei picture andrei · Jan 26, 2011 · Viewed 17.2k times · Source

I just installed wamp and the latest version comes with webgrind, but i cannot figure out how it works.It says

Select a cachegrind file above

And thats all.

Answer

jokkedk picture jokkedk · Jan 27, 2011

Webgrind is a parser/viewer for a profiling file format called cachegrind. The PHP extension Xdebug can (among other very useful things) generate these. For webgrind to work, Xdebug needs to be installed and enabled.

  1. Make sure Xdebug is installed and working (see the Xdebug docs for info on how to do that)
  2. Have Xdebug generate a profiling report by requesting a local PHP file
  3. Load webgrind in the browser and select a file in the popup-menu at the top
  4. Press update, and hopefully everything should work

The wiki on Google Code has more on configuring webgrind.