zoukankan      html  css  js  c++  java
  • mac 下 配置 xhprof

    1: 下载 安装 xhprof

    wget http://pecl.php.net/get/xhprof-0.9.3.tgz
    tar zxf xhprof-0.9.3.tgz
    cd xhprof-0.9.3
    cd extension
    phpize (执行 此代码时报错, Cannot find autoconf. Please check your autoconf installation 解决方法见 5 )

    which php-config(#找到 php-config 这个文件的路径)


    ./configure  --with-php-config=/usr/bin/php-config #此处的地址就是上面你记录下来php-config的地址


    make
    make install

    提示:

    Installing shared extensions:     /usr/lib/php/extensions/no-debug-non-zts-20121212/

    2:配置php.ini

    php.ini文件 :您可以更新您的php.ini文件来自动加载您的扩展。将以下内容添加到你的php.ini文件。

    [xhprof]

     

    extension="no-debug-non-zts-20121212/xhprof.so"(#php.ini中extension_dir 已经存在了,所以直接写相对路径了)

    ; directory used by default implementation of the iXHProfRuns

     

    ; interface (namely, the XHProfRuns_Default class) for storing

     

    ; XHProf runs.

     

    ;

    xhprof.output_dir=<directory_for_storing_xhprof_runs >

     

    ps:<directory_for_storing_xhprof_runs > 这个地址是用来保存测量记录的目录,在页面输出测量得到的数据的时候,它会自动到这儿来找输出的文件

    5:安装 autoconf

    curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
    tar -xzvf m4-1.4.13.tar.gz
    cd m4-1.4.13
    ./configure –prefix=/usr/local
    make
    sudo make install


    cd ..
    curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
    tar -xzvf autoconf-2.65.tar.gz
    cd autoconf-2.65
    ./configure –prefix=/usr/local
    make
    sudo make install

    安装好 autoconf 后,继续 1的步骤

    mac 里面安装不成功
    linux 里面安装成功 

  • 相关阅读:
    Openwrt单独编译某一个模块而不是整个固件
    在ubuntu 14.04 编译android 2.3.1 错误解决办法
    使用cydia substrate 来进行android native hook
    使用Privoxy转化SSH到HTTP代理
    使用xposed 来解阿里ctf-2014 第三题
    一个android dex 转java源码工具
    git CVE-2014-9390 验证以及源码对比
    一键结束port 5037占用
    运动物体检测——光流法(摄像机固定)
    运动目标检测ViBe算法
  • 原文地址:https://www.cnblogs.com/yubinbin/p/4782429.html
Copyright © 2011-2022 走看看