用于基于 Apache 的实时系统的 PHP Profiler [英] PHP Profiler for a live system on top of Apache

查看:38
本文介绍了用于基于 Apache 的实时系统的 PHP Profiler的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Apache 服务器上有一个 PHP 网站,我想知道是否有工具和其他方法可以对此进行分析以找到代码的瓶颈.我需要知道的是哪些功能需要很长时间才能处理等.

I have a PHP website on a Apache server, and I would like to know if there are tools and other ways I can profile this to find bottlenecks on the code. What I need to know is what functions are taking long to process, etc.

类似于 gprof 的东西,除了实时 apache 服务器上的 PHP.

Something like gprof, except for PHP on live apache server.

还有什么其他方法可以找到 PHP 系统中的瓶颈.

What are other ways to find bottlenecks in a PHP system.

推荐答案

您可以使用 xdebug - 一次安装后,您可以通过多种方式触发 请求分析,最终得到一个 valgrind每个请求的格式配置文件.在 WinCacheGrindKCacheGrind 或类似的,并深入查找所有时间都花在哪里!

You can use xdebug - once installed you can trigger profiling of requests in a variety of ways, and you wind up with a valgrind format profile for each request. Load this in WinCacheGrind, KCacheGrind or similar and drill down to find where all the time is spent!

这篇关于用于基于 Apache 的实时系统的 PHP Profiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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