随笔分类 -  XHProf

facebook开发的php性能分析工具
使用xhprof会在nginx下报502 Bad Gateway错误
摘要:使用xhprof会在nginx下报502 Bad Gateway错误 在yii、thinkphp中使用xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);报502错误。 应该修改为以下配置: xhprof_enable(XHPROF_FLAGS 阅读全文

posted @ 2017-05-05 12:56 dongruiha 阅读(552) 评论(0) 推荐(0) 编辑

xhprof代码添加分析性能
摘要:[ //'call_user_func', //'call_user_func_array' ] ] ); //逻辑代码 //...... $xhprofData = xhprof_disable();// $xhprofData是数组形式的分析结果 require '../xhprof_lib/utils/xhp... 阅读全文

posted @ 2017-05-03 15:33 dongruiha 阅读(241) 评论(0) 推荐(0) 编辑

使用xhprof进行线上PHP性能追踪及分析
摘要:转自: http://avnpc.com/pages/profiler-php-performance-online-by-xhprof 阅读全文

posted @ 2017-05-03 15:10 dongruiha 阅读(241) 评论(0) 推荐(0) 编辑

XHProf报告字段含义
摘要:Function Name:方法名称。 Calls:方法被调用的次数。 Calls%:方法调用次数在同级方法总数调用次数中所占的百分比。 Incl.Wall Time(microsec):方法执行花费的时间,包括子方法的执行时间。(单位:微秒) IWall%:方法执行花费的时间百分比。 Excl. 阅读全文

posted @ 2017-05-03 15:02 dongruiha 阅读(369) 评论(0) 推荐(0) 编辑

使用XHProf查找PHP性能瓶颈
摘要:XHProf是facebook 开发的一个测试php性能的扩展,本文记录了在PHP应用中使用XHProf对PHP进行性能优化,查找性能瓶颈的方法。 转自: https://segmentfault.com/a/1190000003509917 阅读全文

posted @ 2017-05-03 14:55 dongruiha 阅读(298) 评论(0) 推荐(0) 编辑

导航