With the help of Lorenzo Alberton tutorial, i get XHProf installed for drupal 6 on linux server. Now i need to get it installed on windows but i found that XHProf cant be installed on windows. Additionally, at drupal.org XHProf, is available for drupal 7 onwards. If anyone has installed XHProf for drupal 6 on windows then please share.


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!

| improve this answer | |

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.

| improve this answer | |
  • If any error throws related to dll try thread safe dll instead of non thread safe (nts) dll. Url to downlad: dev.freshsite.pl/php-extensions/xhprof.html – gvgvgvijayan Aug 1 '16 at 7:13
  • 1
    Before you start with the installation you have to know which .dll files are compatible with your environment, so find (1) if your php version is Non-Thread-Safe (nts) or Thread-Safe (ts), and (2) its Architecture. These will help you to download the correct library: (1) php -i|find "Thread" (2) php -i | find "Architecture" – mchar Sep 21 '16 at 11:29

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.

| improve this answer | |

Please, know that the XHProf extension is abandoned.

There is an open source (and free) alternative that is maintained and will work in Windows and Linux called Tideways.

This extension (Tideways) is a FORK of XHprof so it produces compatible output and is able to work with all XHprof compatible tools.

All details explained here:


Download and enable the Tideways PHP like any other extension. Updated windows binaries to be found here (https://ci.appveyor.com/project/tideways/php-profiler-extension/history

After that my recommendation is to use the Tideways cloud service, or if you are bankrupt, use any do-it-yourself XHProf compatible tools such as XHGui.

| improve this answer | |
  • What output Tideways it produces and where is it stored? I do not mean cloud version, only "drop in replacement" version of Tideways. Thanks. – Juraj Nemec Jul 23 '17 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.