How much does Xdebug profiling inflate the real execution time?

ぐ巨炮叔叔 提交于 2019-12-10 15:14:19

问题


I have an Xdebug cachegrind file in webgrind showing that 1061 different functions were called in 5865 milliseconds - when I disable profiling the script doesn't take that many milliseconds - I realize I could work this out but does anyone know the approximate percentage increase in execution time caused by Xdebug profiling?

Thanks


回答1:


It's really difficult to say a specific number or percentage since that depends in the type and quantity of function calls, variables used and options you set in your xdebug.ini.

Here you can check a bit of research and tests done by some people.
short information about xdebug and the lexer cals

xdebug support mailing list

But of course, the final answer is yours, your application, your coding standards and your configurations are the ones that will set the final overhead.

Just remember, that as a general rule, xdebug should not be active in a production server. Some people have it enabled and everything is ok, but it's usually not a good idea.

Bye



来源:https://stackoverflow.com/questions/12168426/how-much-does-xdebug-profiling-inflate-the-real-execution-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!