Drupal - How to configure XHProf on windows?

I just finally installed the XHProf profiler under Windows7 x64 - PHP 5.3.x. Assuming that you have a functional PHP environment, this checklist should work for you too:

  • Download the pre-compiled XHProf 0.10.3 - PHP 5.3 VC9 NTS binary.

  • Paste the downloaded dll file to PHP extensions directory.
    (You can find the directory path in extension_dir directive of php.ini file.)

  • Append extension=php_xhprof.dll directive to the php.ini.

  • Restart the web server and searchphpinfo() output for XHProf. found? done!

  • You might also want to use XHGui fork instead of the built-in UI.


The only easy way I know of doing this on windows is with quickstart. You will need virtual box to run it, but it has xhprof & xdebug installed and pre-configured, along with many other goodies (editors, drush commands for quick setups of new projects, etc.

There is a video here explaining the procedure, and plenty of docs on the project page

Supports drupal 6 & 7. Great stuff, I have been using this every day for a good while now.

Hope that helps, good-luck!


See and follow this issue queue http://drupal.org/node/1011108. It does contain a link to download XHProf compiled as a .dll for Windows.

As for installation, see http://drupal.org/node/1421598.

Tags:

Debugging