TTFB - Track run time on php functions
I need to track the php functions run time to locate Time to First Byte pr开发者_Python百科oblems?
You have two major options:
- xdebug, one of the best PHP debuggers out there, suitable for running in a dev environment.
- 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.
精彩评论