(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访问建立测试页面 参考
http://www.cnblogs.com/casatwy/archive/2013/01/17/2865241.html
本文指导如何安装并配置XHProf扩展,用于PHP应用性能监控与优化,包括下载、部署、启用扩展及展示分析结果。
912

被折叠的 条评论
为什么被折叠?



