Profiling with xhprof

Re: Profiling with xhprof

by Gareth J Barnard -
Number of replies: 2
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Thank you for your reply Juan smile.

I'm having a look and the XHProf and XHGui seem to be for 9.2 version and thus would be PHP 5.4?  I think it might be worth a go as the GUI looks good and Tideways is a paid for entity.

I wonder if MHQ should fork XHProf and maintain it as an element of the testing process, just like so much effort is put into Behat tests.  Something for a Moodle Association vote?

Food for thought!

Kind regards,

Gareth

In reply to Gareth J Barnard

Re: Profiling with xhprof

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Update:

Could not get xhprof to work but have now profiled with xdebug:

https://docs.moodle.org/dev/Profiling_PHP

and

https://xdebug.org/docs/profiler

with the Windows binaries from:

https://xdebug.org/download.php

I was not able to get Wincachegrind to work as it kept complaining about 'Cannot find call target' when opening the profile file.  So found a port of KCacheGrind called QCacheGrind: https://sourceforge.net/projects/qcachegrindwin/ which works.

In reply to Gareth J Barnard

Re: Profiling with xhprof

by Darko Miletić -

xdebug is the way to go. xhprof is abandoned and will not be updated.