分析在 apache 中运行的 PHP [英] Profiling PHP running in apache

查看:22
本文介绍了分析在 apache 中运行的 PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道正在调用哪些函数以及每个请求在 apache 上运行的应用程序所花费的时间.

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 where i can get this data.
I also want to know how much time each function is taking.

应用程序正在运行,无法停止.
所以我需要在运行环境本身中获取详细信息.
提前致谢.

The application is running it cannot be stopped.
So i need to get the details in the running environment itself.
Thanks in advance.

推荐答案

最常用的行业工具之一是:http://www.xdebug.org/

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:

Xdebug 扩展通过提供大量有价值的调试信息来帮助您调试脚本.Xdebug 可以提供的调试信息包括以下内容:

"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"

这篇关于分析在 apache 中运行的 PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆