how install xhprof for php 5.6 on windows

6.3k Views Asked by At

How to install the extension Xhprof on Windows for php-5.6? I found only this link: http://windows.php.net/downloads/pecl/releases/xhprof/0.10.6/

3

There are 3 best solutions below

3
On
  • Download the pre-compiled XHProf 0.10.6 - PHP 5.6 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.

0
On

Last Updated at http://windows.php.net/downloads/pecl/releases/xhprof

10/23/2013 12:29 PM        81960 php_xhprof-0.10.6-5.3-nts-vc9-x86.zip
10/23/2013 12:29 PM        82425 php_xhprof-0.10.6-5.3-ts-vc9-x86.zip
10/23/2013 12:29 PM        82506 php_xhprof-0.10.6-5.4-nts-vc9-x86.zip
10/23/2013 12:29 PM        83488 php_xhprof-0.10.6-5.4-ts-vc9-x86.zip
10/23/2013 12:29 PM        85630 php_xhprof-0.10.6-5.5-nts-vc11-x64.zip
10/23/2013 12:29 PM        85440 php_xhprof-0.10.6-5.5-nts-vc11-x86.zip
10/23/2013 12:29 PM        85741 php_xhprof-0.10.6-5.5-ts-vc11-x64.zip
10/23/2013 12:29 PM        85774 php_xhprof-0.10.6-5.5-ts-vc11-x86.zip

So no precompiled dll available Last commit: Latest commit 0bbf2a2 on 26 Feb 2015

0
On

XHProf was developed by Facebook and abandoned when they moved to HHVM. There is now a fork of the project called Tideways that promises to add support for PHP versions 5.6 and 7.

Unfortunately Tideways has renamed the functions their library provides so it won't be a simple drop-in replacement. Also, their Windows support seems to be pretty much WIP and their builds are failing a lot. If you feel lucky, you could try downloading the latest successfully built artifact from their AppVeyor project but for now it will make sense to do your profiling work on PHP 5.5 or some other platform than Windows.