<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] > 由于pear 版本不支持 php7 使用 github 的版本 > [https://github.com/longxinH/xhprof](https://github.com/longxinH/xhprof) ## 安裝 1. 安裝 ``` git clone https://github.com/longxinH/xhprof.git ./xhprof cd xhprof/extension/ /path/to/php7/bin/phpize ./configure --with-php-config=/path/to/php7/bin/php-config make && sudo make install sudo yum install -y graphviz ``` 2. 配置 ``` [xhprof] extension = xhprof.so xhprof.output_dir = /vagrant/xhprof/output ``` > 注意生成目錄的權限問題 > 配置好后重啟nginx 和php-fpm ## demo ``` xhprof_enable(); /*==================start index.php 文件==================*/ define('APPLICATION_PATH', dirname(__FILE__)); $application = new Yaf_Application( APPLICATION_PATH . "/conf/application.ini"); $application->bootstrap()->run(); /*==================end==================*/ $xhprof_data = xhprof_disable(); print_r($xhprof_data); include_once APPLICATION_PATH. "/application/library/ThirdParty/xhprof_lib/utils/xhprof_lib.php"; include_once APPLICATION_PATH. "/application/library/ThirdParty/xhprof_lib/utils/xhprof_runs.php"; // save raw data for this profiler run using default // implementation of iXHProfRuns. $xhprof_runs = new XHProfRuns_Default(); // save the run under a namespace "xhprof_foo" $run_id = $xhprof_runs->save_run($xhprof_data, "xhprof_foo"); echo "---------------\n". "Assuming you have set up the http based UI for \n". "XHProf at some address, you can view run at \n". "http://<xhprof-ui-address>/index.php?run=$run_id&source=xhprof_foo\n". "---------------\n"; ``` ## 顯示性能文件 **需要把github 項目中的 `xhprof_html` 目錄 和`xhprof_lib` 放到項目的根目錄中** 此時生成的`xhprof_foo` 文件 可以通過`xhprof_html`訪問到
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看