xhprof安装小记

2016/5/20 posted in  PHP

xhprof安装步骤 https://github.com/longxinH/xhprof-apm/blob/php7/README_CN.md

1. 关闭opcache扩展
2. 增加php的内存限制到4GB

xgui安装步骤:https://github.com/perftools/xhgui

array {
    [函数名]=>
      array {
        ["ct"] => 调用次数 (int)
        ["wt"] => 函数方法执行的时间耗时 (int)
        ["cpu"] => 函数方法执行消耗的cpu时间 (int)
        ["mu"] => 函数方法所使用的内存 (int)
        ["pmu"] => 函数方法所使用的内存峰值 (int)
        ["files"] => array {
          [文件名] =>
            array {
              [行号] => 调用次数 (int)
            }
        }
    }
}