PHP相当于对Linux的top命令 [英] PHP equivalent to Linux's top command

查看:199
本文介绍了PHP相当于对Linux的top命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个功能,将让我看到运行,显示我所有PHP脚本的当前状态,他们有多少内存/ IO / CPU在这一点上费时。

I'm looking for a feature that will allow me to see a current status of all php scripts running and showing me how much memory/io/cpu they are consuming at this point.

我有一个词preSS网站,有很多中安装的插件,和我目前有我怀疑都涉及到许多插件的一个性能问题。

I have a wordpress website that has a lot of plugins installed in it, and I'm currently having performance issues that I suspect are related to one of the many plugins.

我在寻找一个快速的方法来检查哪些脚本/插件,消耗了最多的IO /内存/ CPU。

I'm looking for a quick way to check which script/plugin is consuming the most IO/memory/cpu.

推荐答案

您可以安装的Xdebug 扩展程序并使用其分析功能的。配置文件会告诉你有多少时间在每个函数都花在所以你可能能够找到WP插件,消耗如此多的时间。

You can install the Xdebug extension and use its profiling functions. The profile will show you how much time is spent in each function so you'll probably be able to find the WP plugin that consumes so much time.

这篇关于PHP相当于对Linux的top命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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