开发者

TTFB - Track run time on php functions

开发者 https://www.devze.com 2023-02-19 20:00 出处:网络
I need to track the php functions run time to locate Time to First Byte pr开发者_Python百科oblems?You have two major options:

I need to track the php functions run time to locate Time to First Byte pr开发者_Python百科oblems?


You have two major options:

  1. xdebug, one of the best PHP debuggers out there, suitable for running in a dev environment.
  2. xhprof, a tool designed by the Facebook folks, suitable for running on both dev and production servers. More docs

Both of these will let you gather performance metrics on your script, including how much time is spent inside each native PHP function.

0

精彩评论

暂无评论...
验证码 换一张
取 消