wamp 上的 webgrind
我刚刚安装了 wamp,最新版本附带了 webgrind,但我无法弄清楚它是如何工作的。它说
Select a cachegrind file above
仅此而已。
I just installed wamp and the latest version comes with webgrind, but i cannot figure out how it works.It says
Select a cachegrind file above
And thats all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Webgrind 是一个名为cachegrind 的分析文件格式的解析器/查看器。 PHP 扩展 Xdebug 可以(以及其他非常有用的东西)生成这些。为了使 webgrind 工作,需要安装并启用 Xdebug。
update
,希望一切正常Google 代码上的 wiki 提供了有关配置 webgrind 的更多信息。
Webgrind is a parser/viewer for a profiling file format called cachegrind. The PHP extension Xdebug can (among other very useful things) generate these. For webgrind to work, Xdebug needs to be installed and enabled.
update
, and hopefully everything should workThe wiki on Google Code has more on configuring webgrind.
1) 从他们的下载页面下载XDebug。
2) 将所有 DLL 文件放入 PHP 扩展目录中:
C:\wamp\bin\php\php5.xx\ext
3) 在
php.ini
文件位于C:\wamp\bin\php\php5.xx
:4) 将以下部分添加到 php.ini 中(首先搜索 [xdebug] 部分以确保它确实有效)尚不存在):
5)重新启动 Wamp 并验证扩展是否已加载。为此,请在
C:\wamp\www\
中添加文件pi.php
并在其中添加以下代码:6) 通过打开浏览器检查输出 :
http://localhost/pi.php
并搜索 XDebug。7) 从他们的下载页面下载 Webgrind 并解压到您的
中www
文件夹。8) 编辑位于
C:\wamp\www\webgrind\
的config.php
文件以更改存储目录:9) 在您解压的 Webgrind 目录中代码,添加一个
.htaccess
文件并将以下内容放入其中,以避免 webgrind 对其自身进行分析:10) 重新运行
http://localhost/pi.php
脚本以生成一些分析数据。11) 使用
http://localhost/webgrind
打开浏览器以显示结果。不要忘记单击更新
按钮!此答案基于 Jacob Moen 提供的答案。您可以在此处查看原始来源< /a>.
1) Download XDebug from their download page.
2) Put all DLL files in your PHP extension directory:
C:\wamp\bin\php\php5.x.x\ext
3) Add the following line in your
php.ini
file located inC:\wamp\bin\php\php5.x.x
:4) Add also the following section to your php.ini (search for the [xdebug] section first to make sure it does not exist yet):
5) Restart Wamp and verify that the extension was loaded. To do so, add a file
pi.php
inC:\wamp\www\
and put the following code in it:6) Check the output by opening your browser at
http://localhost/pi.php
and search for XDebug.7) Download Webgrind from their download page and extract in in your
www
folder.8) Edit the
config.php
file located inC:\wamp\www\webgrind\
to change the storage directories:9) In the Webgrind directory where you have extracted the code, add an
.htaccess
file and put this content in it to avoid webgrind from profiling itself:10) Rerun the
http://localhost/pi.php
script to generate some profiling data.11) Open your browser with
http://localhost/webgrind
to display the results. Do not forget to click theUpdate
button!This answer is based on an answer provided by Jacob Moen. You can view the original source here.
[Portugues pt_BR] 使用 LENTA
应用程序进行预启动,由于缓存研磨的配置而出现问题。
蟒蛇排序!
配置包括 Wamp 2.4、Apache 2.4、PHP 5.4 和 MySQL 5.6
[Portugues pt_BR]
É bom prestar atenção se a aplicação se tornar LENTA, tive problemas com isso por causa das configurações do cachegrind.
Boa sorte!
Minhas configurações são Wamp 2.4, Apache 2.4, PHP 5.4 e MySQL 5.6
使用这些参数更新 PHP.INI
重新启动所有服务
这应该可以工作。
Update the PHP.INI with these parameters
RESTART ALL SERVICES
this should be work.
您不必做太多事情....
我刚刚将该行编辑为
xdebug.profiler_enable = 1
这就是全部伙计。完全有效!
You don't have to do much....
I just edited the line to be
xdebug.profiler_enable = 1
Thats all buddy. Totally works!