1. 在系统配置文件config.php最底部加入 require_once(ROOT_DIR."/app/serveradm/xhprof.php");
  2. 用curl访问页面 curl -b xhprof=1 http://yourdomain/index.php/gallery.html?scontent=
  3. 进入xhprof列表查找你的访问的url
  4. 查看分析报告