Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xdebug vs xhprof

Tags:

php

xdebug

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.

like image 374
Kint Avatar asked Mar 02 '12 23:03

Kint


1 Answers

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.

like image 158
Derick Avatar answered Nov 07 '22 13:11

Derick