剖析PHP在Apache中运行 [英] Profiling PHP running in apache

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

问题描述

我想知道哪些功能被称为并且每个请求正在采取什么时间是在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"

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

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