jokkedk/webgrind

Howto required

Closed this issue · 3 comments

Hi author, please write more details about how to use your tool. Add examples please.

Besides the installation process (which already has instructions), the only real action is clicking the "Update" button. Is there something in specific you believe requires documentation?

I installed as it was recommended, but I see only header and the table which should be bellow is missing. I suppose there should be some additional configuration. Am I right?

Make sure you have profiler enabled in Xdebug via php.ini

xdebug.profiler_enable = 1
xdebug.profiler_output_name = xdebug.out.%t
xdebug.profiler_output_dir = /tmp
xdebug.profiler_enable_trigger = 1

Then you can use something like this to generate bookmarklets that let you trigger profiling on/off: https://www.jetbrains.com/phpstorm/marklets/

After you loaded a page with profiling enabled, refresh webgrind and ideally you'll see cachegrind files in the dropdown in the top right. Select and click update.