Diblo Dk
Diblo Dk

Reputation: 663

TTFB - Track run time on php functions

I need to track the php functions run time to locate Time to First Byte problems?

Upvotes: 2

Views: 1397

Answers (1)

Charles
Charles

Reputation: 51411

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.

Upvotes: 5

Related Questions