您的位置:首页 > 其它

xhprof安装和使用方法

2014-01-03 17:49 134 查看
(1)从http://dev.freshsite.pl/php-extensions/xhprof.html获取php的window扩展

(2)从http://pecl.php.net/package/xhprof获取html显示包放在网站目录下

(3)开启php扩展

[xhprof]
extension=php_xhprof.dll
; directory used by default implementation of the iXHProfRuns
; interface (namely, the XHProfRuns_Default class) for storing
; XHProf runs.
xhprof.output_dir="D:/software/xamp/htdocs/xhprof_log"
(4)页面测试

xhprof_enable();
test();
$data = xhprof_disable();
print_r($data);
test();
(5)通过web访问建立测试页面 参考 /article/5404072.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: