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.
4 Answers
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!
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 inextension_dir
directive ofphp.ini
file.)Append
extension=php_xhprof.dll
directive to thephp.ini
.Restart the web server and search
phpinfo()
output forXHProf
. found? done!You might also want to use
XHGui
fork instead of the built-in UI.
-
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 Aug 1, 2016 at 7:13
-
1Before 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"
– mcharSep 21, 2016 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.
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.
-
What output Tideways it produces and where is it stored? I do not mean cloud version, only "drop in replacement" version of Tideways. Thanks. Jul 23, 2017 at 14:42
-
xhprof has RISEN FROM THE GRAVE and released version 2.0 in Dec 2019 and has since had multiple releases, with Windows DLL's available for download. pecl.php.net/package/xhprof– StickleyDec 16, 2020 at 2:34