zoukankan      html  css  js  c++  java
  • CodeIgniter(3.1.4)框架中添加执行时间统计代码

    CodeIgniter(3.1.4)框架中添加,执行时间统计代码:

    system/core/CodeIgniter.php最后行处。

    /*
     * ------------------------------------------------------
     *  custom code snippet.
     * ------------------------------------------------------
     *
     *  Statistic run time.
     *
     */
    p($BM->marker);
    p('total_execution_time: ' . $BM->elapsed_time('total_execution_time_start', 'total_execution_time_end') . ' SEC');
    p('loading_time: ' . $BM->elapsed_time('loading_time:_base_classes_start', 'loading_time:_base_classes_end') . ' SEC');
    p('controller_execution_time_( '.$class.' / '.$method.' )_time: '
        . $BM->elapsed_time('controller_execution_time_( '.$class.' / '.$method.' )_start'
            , 'controller_execution_time_( '.$class.' / '.$method.' )_end') . ' SEC');
    

      

  • 相关阅读:
    HDU 1159 Common Subsequence 动态规划
    poj2349 Arctic Network
    hdu1596 find the safest road
    poj 1011
    二进制枚举
    codeforces 626E Simple Skewness
    code for 1
    painting fence
    codeforces 797c minimal string
    POJ 3977
  • 原文地址:https://www.cnblogs.com/hfultrastrong/p/6773312.html
Copyright © 2011-2022 走看看