xdebug、phpunit、phpdocumentor 都更新了

点发疯。

7月19日xdebug 更新到2.0;

7月23日phpunit 更新到3.1.4;

同日phpDocumentor 更新到1.4.0。 最近的更新真多啊!

别的放下不说,单说一下 windows 下 xdebug。

从这里下载 php 的 windows 扩展并放入 ext 目录。

http://xdebug.org/link.php?url=xdebug200-522-win

修改 php.ini 添加如下内容:

zend_extension_ts="E:\AppServ\php5\ext\php_xdebug-2.0.0-5.2.2.dll"

[xdebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.auto_trace = 1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.profiler_enable_trigger = 1
xdebug.trace_output_dir="E:\Sandbox\www\xdebug" 
xdebug.profiler_output_dir="E:\Sandbox\www\xdebug" 
xdebug.profiler_output_name="cachegrind.out.%s.%H.%u.profile" 

可以用下面的方法做性能测试:

http://ifang.xxiyy.com/?XDEBUG_PROFILE=1

我对 Zend  Framework 测试了一下,发现 Zend_Config 居然是一个资源大户,构造函数里的迭代实在是太消耗资源了。特别是有继承和多级子配置的时候。

差点忘了,windows 下查看性能测试文件要用:

http://sourceforge.net/projects/wincachegrind/

Join the Conversation

3 Comments

Leave a comment

Your email address will not be published. Required fields are marked *