Profiling PHP running in apache

后端 未结 4 1762
迷失自我
迷失自我 2020-12-21 23:27

I want to know what functions are being called and what time each request is taking for an application which is running on apache.

Is there any tool or any other way

4条回答
  •  我在风中等你
    2020-12-22 00:03

    One of the most used industry tools for this is: http://www.xdebug.org/

    I have used it religiously for a long time now! From it's front-page it does the following:

    "The Xdebug extension helps you debugging your script by providing a lot of valuable debug information. The debug information that Xdebug can provide includes the following:

    * stack traces and function traces in error messages with:
          o full parameter display for user defined functions
          o function name, file name and line indications
          o support for member functions
    * memory allocation
    * protection for infinite recursions"
    

提交回复
热议问题