Kint
Kint

Reputation: 133

Xdebug vs xhprof

I was using xdebug to profile the use of multi curl in my php code, and the numbers didn't add up to the total, so I used xhprof instead, which seemed to provide better data. Why is xdebug providing seemingly bad profiling info, and is there a way to work around it? I would prefer to use xdebug's profiler, as there are more tools for it.

Upvotes: 6

Views: 5189

Answers (1)

Derick
Derick

Reputation: 36784

Xdebug's profiler works in a slightly different way and thus gives different results. (I also know there is a little bug in aggregating data). I would always suggest to use both Xdebug and XHprof.

Upvotes: 6

Related Questions