On Thu, Mar 7, 2013 at 3:57 PM, Tim Starling <tstarling(a)wikimedia.org>wrote;wrote:
On 07/03/13 12:12, Asher Feldman wrote:
Ori - I think this has been discussed but
automated xhprof configuration
as
part of the vagrant dev env setup would be
amazing :)
I don't think xhprof is the best technology for PHP profiling. I
reported a bug a month ago which causes the times it reports to be
incorrect by a random factor, often 4 or so. No response so far. And
its web interface is packed full of XSS vulnerabilities. XDebug +
KCacheGrind is quite nice.
That's disappointing, I wonder if xhprof has become abandonware since
facebook moved away from zend. Have you looked at Webgrind (
http://code.google.com/p/webgrind/)? If not, I'd love to see it at least
get a security review. KCacheGrind is indeed super powerful and nice, and
well suited to a dev vm. I'm still interested in this sort of profiling
for a very small percentage of production requests though, such as 0.1% of
requests hitting a single server. Copying around cachegrind files and
using KCacheGrind wouldn't be very practical.