分析 php 代码的工具 [英] Tool to profile php code

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

问题描述

正在寻找一些 [免费软件/开源] 工具,以便在 win32 平台上轻松分析大型 php 项目.需要找出代码的哪一部分最耗时.很难为每个函数手动放置定时函数,循环...

Looking for some [freeware/opensource] tool in order to make it easy to profile a big php project on win32 platform. Need to find out which part of code is most time consuming. It's hard to manually put timing function for each function, loop...

推荐答案

您需要安装和配置 Xdebug.这是事实上的标准 PHP 调试和分析工具.

You'll want to install and configure Xdebug. It's sort of the de-facto standard PHP debugging and profiling tool.

WinCacheGrind 可以处理分析输出.这有点问题,但它可以胜任.

WinCacheGrind can crunch the profiling output. It's a bit buggy, but it does the job.

这篇关于分析 php 代码的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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