(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