PHP性能分析,测试

来源:互联网 发布:八爪鱼数据采集能干嘛 编辑:程序博客网 时间:2024/06/03 12:28

    • phpdbg
    • strace
    • xdebugkcachegrind

phpdbg

/usr/local/php5.6/bin/phpdbgexec /www/index.phpb 22[L24      0x7fd58508f1b8 ZEND_INCLUDE_OR_EVAL           C41                  <unused>             @0                   /www/index.php] 00023:     require_once "./../include/config.inc.php";>00024:     require_once "./../include/functions.inc.php"; 00025:     require_once "./../include/auto_load.php"; 00026: 

strace

xdebug+kcachegrind

 1. pecl install xdebug 2. php.ini[Xdebug]zend_extension=xdebug.soxdebug.profiler_enable=onxdebug.trace_output_dir="/tmp/xdebug"xdebug.profiler_output_dir="/tmp/xdebug" 3.  取出/tmp/xdebug/cachegrind...
原创粉丝点击