Modules

Kohana_Profiler

Provides simple benchmarking and profiling. To display the statistics that have been collected, load the profiler/stats View:

echo View::factory('profiler/stats');
package
Kohana
category
Helpers
author
Kohana Team
copyright
© 2009-2012 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/kohana/profiler.php on line 14.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1466857569.6082
        "start_memory" => integer 1117232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6082
        "start_memory" => integer 1119472
        "stop_time" => float 1466857569.6083
        "stop_memory" => integer 1120160
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6083
        "start_memory" => integer 1123704
        "stop_time" => float 1466857569.6084
        "stop_memory" => integer 1124312
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.609
        "start_memory" => integer 1200776
        "stop_time" => float 1466857569.609
        "stop_memory" => integer 1201328
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6091
        "start_memory" => integer 1204832
        "stop_time" => float 1466857569.6092
        "stop_memory" => integer 1205424
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6093
        "start_memory" => integer 1213392
        "stop_time" => float 1466857569.6093
        "stop_memory" => integer 1213944
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6094
        "start_memory" => integer 1217408
        "stop_time" => float 1466857569.6094
        "stop_memory" => integer 1218016
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6096
        "start_memory" => integer 1226880
        "stop_time" => float 1466857569.6096
        "stop_memory" => integer 1227440
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6097
        "start_memory" => integer 1230880
        "stop_time" => float 1466857569.6097
        "stop_memory" => integer 1231528
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6107
        "start_memory" => integer 1326352
        "stop_time" => float 1466857569.6107
        "stop_memory" => integer 1326936
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6108
        "start_memory" => integer 1330416
        "stop_time" => float 1466857569.6108
        "stop_memory" => integer 1331008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.611
        "start_memory" => integer 1342792
        "stop_time" => float 1466857569.611
        "stop_memory" => integer 1343344
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6111
        "start_memory" => integer 1346768
        "stop_time" => float 1466857569.6111
        "stop_memory" => integer 1347336
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6114
        "start_memory" => integer 1381728
        "stop_time" => float 1466857569.6115
        "stop_memory" => integer 1382328
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6115
        "start_memory" => integer 1383400
        "stop_time" => float 1466857569.6115
        "stop_memory" => integer 1383936
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6116
        "start_memory" => integer 1387344
        "stop_time" => float 1466857569.6116
        "stop_memory" => integer 1387920
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6119
        "start_memory" => integer 1407168
        "stop_time" => float 1466857569.6119
        "stop_memory" => integer 1407872
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.612
        "start_memory" => integer 1411296
        "stop_time" => float 1466857569.612
        "stop_memory" => integer 1411864
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6126
        "start_memory" => integer 1507472
        "stop_time" => float 1466857569.6127
        "stop_memory" => integer 1508072
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6127
        "start_memory" => integer 1511576
        "stop_time" => float 1466857569.6128
        "stop_memory" => integer 1512176
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6131
        "start_memory" => integer 1551448
        "stop_time" => float 1466857569.6132
        "stop_memory" => integer 1551976
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6132
        "start_memory" => integer 1552616
        "stop_time" => float 1466857569.6132
        "stop_memory" => integer 1553192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.616
        "start_memory" => integer 1952376
        "stop_time" => float 1466857569.616
        "stop_memory" => integer 1952960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6161
        "start_memory" => integer 1956464
        "stop_time" => float 1466857569.6162
        "stop_memory" => integer 1957064
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6163
        "start_memory" => integer 1958696
        "stop_time" => float 1466857569.6163
        "stop_memory" => integer 1959296
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6164
        "start_memory" => integer 1962808
        "stop_time" => float 1466857569.6165
        "stop_memory" => integer 1963384
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6167
        "start_memory" => integer 1993032
        "stop_time" => float 1466857569.6168
        "stop_memory" => integer 1993592
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6168
        "start_memory" => integer 1997096
        "stop_time" => float 1466857569.6169
        "stop_memory" => integer 1997696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6175
        "start_memory" => integer 2059736
        "stop_time" => float 1466857569.6175
        "stop_memory" => integer 2060288
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6176
        "start_memory" => integer 2063728
        "stop_time" => float 1466857569.6177
        "stop_memory" => integer 2064296
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6187
        "start_memory" => integer 2123488
        "stop_time" => float 1466857569.6188
        "stop_memory" => integer 2124104
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6909
        "start_memory" => integer 2164976
        "stop_time" => float 1466857569.691
        "stop_memory" => integer 2165552
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6911
        "start_memory" => integer 2168976
        "stop_time" => float 1466857569.6911
        "stop_memory" => integer 2169816
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6918
        "start_memory" => integer 2196064
        "stop_time" => float 1466857569.6918
        "stop_memory" => integer 2196640
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6919
        "start_memory" => integer 2200120
        "stop_time" => float 1466857569.6919
        "stop_memory" => integer 2200712
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6929
        "start_memory" => integer 2218008
        "stop_time" => float 1466857569.693
        "stop_memory" => integer 2218576
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6931
        "start_memory" => integer 2222040
        "stop_time" => float 1466857569.6931
        "stop_memory" => integer 2222632
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6938
        "start_memory" => integer 2266088
        "stop_time" => float 1466857569.6938
        "stop_memory" => integer 2266688
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.694
        "start_memory" => integer 2278224
        "stop_time" => float 1466857569.694
        "stop_memory" => integer 2278800
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6941
        "start_memory" => integer 2282312
        "stop_time" => float 1466857569.6941
        "stop_memory" => integer 2282896
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6946
        "start_memory" => integer 2320912
        "stop_time" => float 1466857569.6946
        "stop_memory" => integer 2321512
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6948
        "start_memory" => integer 2333632
        "stop_time" => float 1466857569.6949
        "stop_memory" => integer 2334208
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6952
        "start_memory" => integer 2361224
        "stop_time" => float 1466857569.6953
        "stop_memory" => integer 2361824
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6955
        "start_memory" => integer 2369640
        "stop_time" => float 1466857569.6955
        "stop_memory" => integer 2370216
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6957
        "start_memory" => integer 2383368
        "stop_time" => float 1466857569.6958
        "stop_memory" => integer 2383968
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.696
        "start_memory" => integer 2390984
        "stop_time" => float 1466857569.696
        "stop_memory" => integer 2391576
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6962
        "start_memory" => integer 2404880
        "stop_time" => float 1466857569.6963
        "stop_memory" => integer 2405472
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6965
        "start_memory" => integer 2419104
        "stop_time" => float 1466857569.6965
        "stop_memory" => integer 2419696
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6967
        "start_memory" => integer 2429176
        "stop_time" => float 1466857569.6968
        "stop_memory" => integer 2429768
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.697
        "start_memory" => integer 2438440
        "stop_time" => float 1466857569.697
        "stop_memory" => integer 2439032
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6973
        "start_memory" => integer 2484384
        "stop_time" => float 1466857569.6973
        "stop_memory" => integer 2484960
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6976
        "start_memory" => integer 2507888
        "stop_time" => float 1466857569.6977
        "stop_memory" => integer 2508488
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6979
        "start_memory" => integer 2521784
        "stop_time" => float 1466857569.6979
        "stop_memory" => integer 2522360
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6982
        "start_memory" => integer 2541560
        "stop_time" => float 1466857569.6982
        "stop_memory" => integer 2542144
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6985
        "start_memory" => integer 2555800
        "stop_time" => float 1466857569.6985
        "stop_memory" => integer 2556368
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6986
        "start_memory" => integer 2559824
        "stop_time" => float 1466857569.6986
        "stop_memory" => integer 2560408
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.6988
        "start_memory" => integer 2582608
        "stop_time" => float 1466857569.6989
        "stop_memory" => integer 2583168
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.699
        "start_memory" => integer 2586600
        "stop_time" => float 1466857569.699
        "stop_memory" => integer 2587184
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7011
        "start_memory" => integer 2681112
        "stop_time" => float 1466857569.7012
        "stop_memory" => integer 2681688
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7068
        "start_memory" => integer 2712264
        "stop_time" => float 1466857569.7068
        "stop_memory" => integer 2712840
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7069
        "start_memory" => integer 2716320
        "stop_time" => float 1466857569.7069
        "stop_memory" => integer 2716912
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7099
        "start_memory" => integer 2736024
        "stop_time" => float 1466857569.71
        "stop_memory" => integer 2736608
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.71
        "start_memory" => integer 2740136
        "stop_time" => float 1466857569.7101
        "stop_memory" => integer 2740736
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7134
        "start_memory" => integer 2759920
        "stop_time" => float 1466857569.7134
        "stop_memory" => integer 2760480
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7135
        "start_memory" => integer 2763960
        "stop_time" => float 1466857569.7136
        "stop_memory" => integer 2765064
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7141
        "start_memory" => integer 2819592
        "stop_time" => float 1466857569.7141
        "stop_memory" => integer 2820192
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7176
        "start_memory" => integer 2827504
        "stop_time" => float 1466857569.7176
        "stop_memory" => integer 2828080
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7177
        "start_memory" => integer 2831584
        "stop_time" => float 1466857569.7177
        "stop_memory" => integer 2832184
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7281
        "start_memory" => integer 2871856
        "stop_time" => float 1466857569.7281
        "stop_memory" => integer 2872432
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7282
        "start_memory" => integer 2875960
        "stop_time" => float 1466857569.7282
        "stop_memory" => integer 2876560
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7283
        "start_memory" => integer 2892504
        "stop_time" => float 1466857569.7284
        "stop_memory" => integer 2893080
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7288
        "start_memory" => integer 2900384
        "stop_time" => float 1466857569.7289
        "stop_memory" => integer 2900952
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7289
        "start_memory" => integer 2904424
        "stop_time" => float 1466857569.729
        "stop_memory" => integer 2905016
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7297
        "start_memory" => integer 2954488
        "stop_time" => float 1466857569.7298
        "stop_memory" => integer 2955072
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7298
        "start_memory" => integer 2958576
        "stop_time" => float 1466857569.7299
        "stop_memory" => integer 2959176
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7337
        "start_memory" => integer 2978552
        "stop_time" => float 1466857569.7337
        "stop_memory" => integer 2979112
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7338
        "start_memory" => integer 2982584
        "stop_time" => float 1466857569.7338
        "stop_memory" => integer 2983176
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7344
        "start_memory" => integer 2998344
        "stop_time" => float 1466857569.7344
        "stop_memory" => integer 2998880
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7345
        "start_memory" => integer 3002288
        "stop_time" => float 1466857569.7345
        "stop_memory" => integer 3002864
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7357
        "start_memory" => integer 3009536
        "stop_time" => float 1466857569.7357
        "stop_memory" => integer 3010136
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7358
        "start_memory" => integer 3013648
        "stop_time" => float 1466857569.7358
        "stop_memory" => integer 3014248
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7385
        "start_memory" => integer 3049296
        "stop_time" => float 1466857569.7385
        "stop_memory" => integer 3049888
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7389
        "start_memory" => integer 3057584
        "stop_time" => float 1466857569.739
        "stop_memory" => integer 3058144
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7391
        "start_memory" => integer 3061632
        "stop_time" => float 1466857569.7391
        "stop_memory" => integer 3062224
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7417
        "start_memory" => integer 3079864
        "stop_time" => float 1466857569.7417
        "stop_memory" => integer 3080448
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7432
        "start_memory" => integer 3085048
        "stop_time" => float 1466857569.7432
        "stop_memory" => integer 3085616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7433
        "start_memory" => integer 3089080
        "stop_time" => float 1466857569.7434
        "stop_memory" => integer 3089672
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7452
        "start_memory" => integer 3183728
        "stop_time" => float 1466857569.7452
        "stop_memory" => integer 3184328
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7453
        "start_memory" => integer 3187880
        "stop_time" => float 1466857569.7454
        "stop_memory" => integer 3188472
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7457
        "start_memory" => integer 3202048
        "stop_time" => float 1466857569.7458
        "stop_memory" => integer 3202640
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7459
        "start_memory" => integer 3206192
        "stop_time" => float 1466857569.7459
        "stop_memory" => integer 3206800
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.747
        "start_memory" => integer 3211832
        "stop_time" => float 1466857569.747
        "stop_memory" => integer 3212400
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7471
        "start_memory" => integer 3215904
        "stop_time" => float 1466857569.7472
        "stop_memory" => integer 3216504
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7483
        "start_memory" => integer 3311296
        "stop_time" => float 1466857569.7483
        "stop_memory" => integer 3311888
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7484
        "start_memory" => integer 3315440
        "stop_time" => float 1466857569.7484
        "stop_memory" => integer 3316048
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7486
        "start_memory" => integer 3328088
        "stop_time" => float 1466857569.7486
        "stop_memory" => integer 3328656
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7487
        "start_memory" => integer 3332160
        "stop_time" => float 1466857569.7487
        "stop_memory" => integer 3332784
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7495
        "start_memory" => integer 3376424
        "stop_time" => float 1466857569.7496
        "stop_memory" => integer 3377000
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7497
        "start_memory" => integer 3380520
        "stop_time" => float 1466857569.7497
        "stop_memory" => integer 3381120
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7505
        "start_memory" => integer 3425752
        "stop_time" => float 1466857569.7505
        "stop_memory" => integer 3426328
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7506
        "start_memory" => integer 3429832
        "stop_time" => float 1466857569.7506
        "stop_memory" => integer 3430432
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7516
        "start_memory" => integer 3457744
        "stop_time" => float 1466857569.7516
        "stop_memory" => integer 3458336
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7517
        "start_memory" => integer 3461896
        "stop_time" => float 1466857569.7518
        "stop_memory" => integer 3462504
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7526
        "start_memory" => integer 3498720
        "stop_time" => float 1466857569.7527
        "stop_memory" => integer 3499320
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7528
        "start_memory" => integer 3502952
        "stop_time" => float 1466857569.7528
        "stop_memory" => integer 3503568
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.753
        "start_memory" => integer 3515712
        "stop_time" => float 1466857569.753
        "stop_memory" => integer 3516304
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7531
        "start_memory" => integer 3519928
        "stop_time" => float 1466857569.7531
        "stop_memory" => integer 3520544
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7539
        "start_memory" => integer 3572664
        "stop_time" => float 1466857569.7539
        "stop_memory" => integer 3573256
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.754
        "start_memory" => integer 3576864
        "stop_time" => float 1466857569.7541
        "stop_memory" => integer 3577480
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7549
        "start_memory" => integer 3610072
        "stop_time" => float 1466857569.7549
        "stop_memory" => integer 3610664
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.755
        "start_memory" => integer 3614288
        "stop_time" => float 1466857569.7551
        "stop_memory" => integer 3614904
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7559
        "start_memory" => integer 3643528
        "stop_time" => float 1466857569.7559
        "stop_memory" => integer 3644120
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.756
        "start_memory" => integer 3647728
        "stop_time" => float 1466857569.756
        "stop_memory" => integer 3648344
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7571
        "start_memory" => integer 3724264
        "stop_time" => float 1466857569.7571
        "stop_memory" => integer 3724856
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7572
        "start_memory" => integer 3728464
        "stop_time" => float 1466857569.7572
        "stop_memory" => integer 3729080
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7598
        "start_memory" => integer 3765616
        "stop_time" => float 1466857569.7599
        "stop_memory" => integer 3766192
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7601
        "start_memory" => integer 3769752
        "stop_time" => float 1466857569.7601
        "stop_memory" => integer 3770360
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7611
        "start_memory" => integer 3788688
        "stop_time" => float 1466857569.7612
        "stop_memory" => integer 3789224
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7613
        "start_memory" => integer 3792672
        "stop_time" => float 1466857569.7614
        "stop_memory" => integer 3793240
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7628
        "start_memory" => integer 3862800
        "stop_time" => float 1466857569.7628
        "stop_memory" => integer 3863384
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7629
        "start_memory" => integer 3866840
        "stop_time" => float 1466857569.7629
        "stop_memory" => integer 3867416
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7663
        "start_memory" => integer 3881616
        "stop_time" => float 1466857569.7664
        "stop_memory" => integer 3882176
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7665
        "start_memory" => integer 3885608
        "stop_time" => float 1466857569.7665
        "stop_memory" => integer 3886192
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7687
        "start_memory" => integer 3908032
        "stop_time" => float 1466857569.7688
        "stop_memory" => integer 3908592
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7689
        "start_memory" => integer 3912016
        "stop_time" => float 1466857569.7689
        "stop_memory" => integer 3912584
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7696
        "start_memory" => integer 3935728
        "stop_time" => float 1466857569.7696
        "stop_memory" => integer 3936296
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7697
        "start_memory" => integer 3939744
        "stop_time" => float 1466857569.7698
        "stop_memory" => integer 3940312
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7703
        "start_memory" => integer 3966232
        "stop_time" => float 1466857569.7704
        "stop_memory" => integer 3966800
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7705
        "start_memory" => integer 3970224
        "stop_time" => float 1466857569.7705
        "stop_memory" => integer 3971816
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7716
        "start_memory" => integer 4018936
        "stop_time" => float 1466857569.7717
        "stop_memory" => integer 4019504
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7718
        "start_memory" => integer 4022944
        "stop_time" => float 1466857569.7718
        "stop_memory" => integer 4023528
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7735
        "start_memory" => integer 4038080
        "stop_time" => float 1466857569.7735
        "stop_memory" => integer 4038640
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7736
        "start_memory" => integer 4042088
        "stop_time" => float 1466857569.7737
        "stop_memory" => integer 4042656
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7748
        "start_memory" => integer 4059280
        "stop_time" => float 1466857569.7748
        "stop_memory" => integer 4059864
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7749
        "start_memory" => integer 4063344
        "stop_time" => float 1466857569.775
        "stop_memory" => integer 4063936
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7755
        "start_memory" => integer 4080400
        "stop_time" => float 1466857569.7756
        "stop_memory" => integer 4080968
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7757
        "start_memory" => integer 4084472
        "stop_time" => float 1466857569.7757
        "stop_memory" => integer 4085064
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7762
        "start_memory" => integer 4098648
        "stop_time" => float 1466857569.7763
        "stop_memory" => integer 4099216
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7764
        "start_memory" => integer 4102720
        "stop_time" => float 1466857569.7764
        "stop_memory" => integer 4103312
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7769
        "start_memory" => integer 4116912
        "stop_time" => float 1466857569.777
        "stop_memory" => integer 4117480
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7771
        "start_memory" => integer 4120984
        "stop_time" => float 1466857569.7771
        "stop_memory" => integer 4121576
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7776
        "start_memory" => integer 4135176
        "stop_time" => float 1466857569.7777
        "stop_memory" => integer 4135744
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7778
        "start_memory" => integer 4139248
        "stop_time" => float 1466857569.7778
        "stop_memory" => integer 4139840
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7783
        "start_memory" => integer 4153424
        "stop_time" => float 1466857569.7784
        "stop_memory" => integer 4153992
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7784
        "start_memory" => integer 4157496
        "stop_time" => float 1466857569.7785
        "stop_memory" => integer 4158088
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.779
        "start_memory" => integer 4171672
        "stop_time" => float 1466857569.779
        "stop_memory" => integer 4172240
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7791
        "start_memory" => integer 4175744
        "stop_time" => float 1466857569.7792
        "stop_memory" => integer 4176336
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7796
        "start_memory" => integer 4189936
        "stop_time" => float 1466857569.7797
        "stop_memory" => integer 4190504
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7798
        "start_memory" => integer 4194008
        "stop_time" => float 1466857569.7798
        "stop_memory" => integer 4194600
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7804
        "start_memory" => integer 4208184
        "stop_time" => float 1466857569.7804
        "stop_memory" => integer 4208752
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7805
        "start_memory" => integer 4212256
        "stop_time" => float 1466857569.7806
        "stop_memory" => integer 4212848
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7811
        "start_memory" => integer 4226528
        "stop_time" => float 1466857569.7811
        "stop_memory" => integer 4227096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7812
        "start_memory" => integer 4230600
        "stop_time" => float 1466857569.7813
        "stop_memory" => integer 4231192
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7818
        "start_memory" => integer 4244800
        "stop_time" => float 1466857569.7818
        "stop_memory" => integer 4245368
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7819
        "start_memory" => integer 4248872
        "stop_time" => float 1466857569.7819
        "stop_memory" => integer 4249464
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7824
        "start_memory" => integer 4263048
        "stop_time" => float 1466857569.7825
        "stop_memory" => integer 4263616
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7826
        "start_memory" => integer 4267120
        "stop_time" => float 1466857569.7826
        "stop_memory" => integer 4267712
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7831
        "start_memory" => integer 4281280
        "stop_time" => float 1466857569.7832
        "stop_memory" => integer 4281848
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7833
        "start_memory" => integer 4285352
        "stop_time" => float 1466857569.7833
        "stop_memory" => integer 4285944
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7838
        "start_memory" => integer 4299528
        "stop_time" => float 1466857569.7838
        "stop_memory" => integer 4300096
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7839
        "start_memory" => integer 4303600
        "stop_time" => float 1466857569.784
        "stop_memory" => integer 4304192
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7845
        "start_memory" => integer 4317792
        "stop_time" => float 1466857569.7845
        "stop_memory" => integer 4318360
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7846
        "start_memory" => integer 4321864
        "stop_time" => float 1466857569.7847
        "stop_memory" => integer 4322456
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7852
        "start_memory" => integer 4336072
        "stop_time" => float 1466857569.7852
        "stop_memory" => integer 4336640
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7853
        "start_memory" => integer 4340144
        "stop_time" => float 1466857569.7854
        "stop_memory" => integer 4340736
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7859
        "start_memory" => integer 4354336
        "stop_time" => float 1466857569.786
        "stop_memory" => integer 4354904
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7861
        "start_memory" => integer 4358408
        "stop_time" => float 1466857569.7861
        "stop_memory" => integer 4359000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7867
        "start_memory" => integer 4372728
        "stop_time" => float 1466857569.7867
        "stop_memory" => integer 4373296
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7868
        "start_memory" => integer 4376800
        "stop_time" => float 1466857569.7868
        "stop_memory" => integer 4377392
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7874
        "start_memory" => integer 4391008
        "stop_time" => float 1466857569.7874
        "stop_memory" => integer 4391576
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7875
        "start_memory" => integer 4395080
        "stop_time" => float 1466857569.7875
        "stop_memory" => integer 4395672
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7881
        "start_memory" => integer 4409272
        "stop_time" => float 1466857569.7881
        "stop_memory" => integer 4409840
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7882
        "start_memory" => integer 4413344
        "stop_time" => float 1466857569.7882
        "stop_memory" => integer 4413936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7887
        "start_memory" => integer 4427536
        "stop_time" => float 1466857569.7888
        "stop_memory" => integer 4428104
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7889
        "start_memory" => integer 4431608
        "stop_time" => float 1466857569.7889
        "stop_memory" => integer 4432200
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7895
        "start_memory" => integer 4445784
        "stop_time" => float 1466857569.7896
        "stop_memory" => integer 4446352
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7896
        "start_memory" => integer 4449856
        "stop_time" => float 1466857569.7897
        "stop_memory" => integer 4450448
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7902
        "start_memory" => integer 4464032
        "stop_time" => float 1466857569.7903
        "stop_memory" => integer 4464600
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7904
        "start_memory" => integer 4468104
        "stop_time" => float 1466857569.7904
        "stop_memory" => integer 4468696
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.791
        "start_memory" => integer 4482296
        "stop_time" => float 1466857569.791
        "stop_memory" => integer 4482864
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7911
        "start_memory" => integer 4486368
        "stop_time" => float 1466857569.7912
        "stop_memory" => integer 4486960
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7917
        "start_memory" => integer 4500544
        "stop_time" => float 1466857569.7918
        "stop_memory" => integer 4501112
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7918
        "start_memory" => integer 4504616
        "stop_time" => float 1466857569.7919
        "stop_memory" => integer 4505208
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.793
        "start_memory" => integer 4519032
        "stop_time" => float 1466857569.7931
        "stop_memory" => integer 4519600
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7932
        "start_memory" => integer 4523104
        "stop_time" => float 1466857569.7932
        "stop_memory" => integer 4523696
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7952
        "start_memory" => integer 4546624
        "stop_time" => float 1466857569.7953
        "stop_memory" => integer 4547192
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7953
        "start_memory" => integer 4550656
        "stop_time" => float 1466857569.7954
        "stop_memory" => integer 4551232
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7965
        "start_memory" => integer 4632416
        "stop_time" => float 1466857569.7965
        "stop_memory" => integer 4632992
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7966
        "start_memory" => integer 4636456
        "stop_time" => float 1466857569.7967
        "stop_memory" => integer 4637048
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7987
        "start_memory" => integer 4738240
        "stop_time" => float 1466857569.7988
        "stop_memory" => integer 4738792
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.7989
        "start_memory" => integer 4742272
        "stop_time" => float 1466857569.799
        "stop_memory" => integer 4742856
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.802
        "start_memory" => integer 4775824
        "stop_time" => float 1466857569.8021
        "stop_memory" => integer 4776416
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8022
        "start_memory" => integer 4779936
        "stop_time" => float 1466857569.8023
        "stop_memory" => integer 4780536
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8032
        "start_memory" => integer 4806104
        "stop_time" => float 1466857569.8033
        "stop_memory" => integer 4806696
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8035
        "start_memory" => integer 4810272
        "stop_time" => float 1466857569.8035
        "stop_memory" => integer 4810880
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8052
        "start_memory" => integer 4829584
        "stop_time" => float 1466857569.8053
        "stop_memory" => integer 4830152
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8054
        "start_memory" => integer 4833688
        "stop_time" => float 1466857569.8055
        "stop_memory" => integer 4834288
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8079
        "start_memory" => integer 4852928
        "stop_time" => float 1466857569.8079
        "stop_memory" => integer 4853520
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8121
        "start_memory" => integer 4863200
        "stop_time" => float 1466857569.8122
        "stop_memory" => integer 4863776
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8125
        "start_memory" => integer 4872408
        "stop_time" => float 1466857569.8126
        "stop_memory" => integer 4872992
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8144
        "start_memory" => integer 4882392
        "stop_time" => float 1466857569.8144
        "stop_memory" => integer 4882944
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8146
        "start_memory" => integer 4886408
        "stop_time" => float 1466857569.8147
        "stop_memory" => integer 4887000
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8154
        "start_memory" => integer 4891032
        "stop_time" => float 1466857569.8154
        "stop_memory" => integer 4891592
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8156
        "start_memory" => integer 4895048
        "stop_time" => float 1466857569.8156
        "stop_memory" => integer 4895640
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8163
        "start_memory" => integer 4899592
        "stop_time" => float 1466857569.8164
        "stop_memory" => integer 4900152
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8165
        "start_memory" => integer 4903696
        "stop_time" => float 1466857569.8166
        "stop_memory" => integer 4904288
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.818
        "start_memory" => integer 4913264
        "stop_time" => float 1466857569.818
        "stop_memory" => integer 4913824
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8182
        "start_memory" => integer 4917288
        "stop_time" => float 1466857569.8182
        "stop_memory" => integer 4917912
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8189
        "start_memory" => integer 4920096
        "stop_time" => float 1466857569.819
        "stop_memory" => integer 4920736
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8192
        "start_memory" => integer 4927520
        "stop_time" => float 1466857569.8192
        "stop_memory" => integer 4928072
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8194
        "start_memory" => integer 4931536
        "stop_time" => float 1466857569.8195
        "stop_memory" => integer 4932120
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.823
        "start_memory" => integer 5163720
        "stop_time" => float 1466857569.823
        "stop_memory" => integer 5164312
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8241
        "start_memory" => integer 5221064
        "stop_time" => float 1466857569.8242
        "stop_memory" => integer 5221648
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.825
        "start_memory" => integer 5256048
        "stop_time" => float 1466857569.825
        "stop_memory" => integer 5256632
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8252
        "start_memory" => integer 5260152
        "stop_time" => float 1466857569.8252
        "stop_memory" => integer 5260752
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8259
        "start_memory" => integer 5266760
        "stop_time" => float 1466857569.826
        "stop_memory" => integer 5267320
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8267
        "start_memory" => integer 5293376
        "stop_time" => float 1466857569.8267
        "stop_memory" => integer 5293952
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8274
        "start_memory" => integer 5322936
        "stop_time" => float 1466857569.8274
        "stop_memory" => integer 5323528
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8281
        "start_memory" => integer 5350208
        "stop_time" => float 1466857569.8282
        "stop_memory" => integer 5350744
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8283
        "start_memory" => integer 5354248
        "stop_time" => float 1466857569.8284
        "stop_memory" => integer 5354832
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8313
        "start_memory" => integer 5382000
        "stop_time" => float 1466857569.8314
        "stop_memory" => integer 5382624
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8315
        "start_memory" => integer 5386472
        "stop_time" => float 1466857569.8316
        "stop_memory" => integer 5387104
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8343
        "start_memory" => integer 5418872
        "stop_time" => float 1466857569.8343
        "stop_memory" => integer 5419448
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8344
        "start_memory" => integer 5423016
        "stop_time" => float 1466857569.8345
        "stop_memory" => integer 5423632
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.838
        "start_memory" => integer 5488408
        "stop_time" => float 1466857569.8381
        "stop_memory" => integer 5488952
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8381
        "start_memory" => integer 5492496
        "stop_time" => float 1466857569.8382
        "stop_memory" => integer 5493104
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8386
        "start_memory" => integer 5503168
        "stop_time" => float 1466857569.8387
        "stop_memory" => integer 5503792
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8388
        "start_memory" => integer 5507272
        "stop_time" => float 1466857569.8388
        "stop_memory" => integer 5507864
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8395
        "start_memory" => integer 5552392
        "stop_time" => float 1466857569.8396
        "stop_memory" => integer 5552976
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8397
        "start_memory" => integer 5556512
        "stop_time" => float 1466857569.8397
        "stop_memory" => integer 5557120
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8402
        "start_memory" => integer 5577448
        "stop_time" => float 1466857569.8402
        "stop_memory" => integer 5578080
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8403
        "start_memory" => integer 5581656
        "stop_time" => float 1466857569.8403
        "stop_memory" => integer 5582256
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8414
        "start_memory" => integer 5630880
        "stop_time" => float 1466857569.8415
        "stop_memory" => integer 5631448
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8415
        "start_memory" => integer 5635008
        "stop_time" => float 1466857569.8416
        "stop_memory" => integer 5635600
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8421
        "start_memory" => integer 5657880
        "stop_time" => float 1466857569.8422
        "stop_memory" => integer 5658496
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8423
        "start_memory" => integer 5661992
        "stop_time" => float 1466857569.8423
        "stop_memory" => integer 5662568
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8434
        "start_memory" => integer 5735128
        "stop_time" => float 1466857569.8434
        "stop_memory" => integer 5735696
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8435
        "start_memory" => integer 5739184
        "stop_time" => float 1466857569.8436
        "stop_memory" => integer 5739768
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8476
        "start_memory" => integer 5758936
        "stop_time" => float 1466857569.8477
        "stop_memory" => integer 5759496
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8478
        "start_memory" => integer 5762968
        "stop_time" => float 1466857569.8478
        "stop_memory" => integer 5763608
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8488
        "start_memory" => integer 5823152
        "stop_time" => float 1466857569.8488
        "stop_memory" => integer 5823720
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8489
        "start_memory" => integer 5827248
        "stop_time" => float 1466857569.849
        "stop_memory" => integer 5827832
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8499
        "start_memory" => integer 5896976
        "stop_time" => float 1466857569.85
        "stop_memory" => integer 5897616
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.85
        "start_memory" => integer 5901176
        "stop_time" => float 1466857569.8501
        "stop_memory" => integer 5901760
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8511
        "start_memory" => integer 5919800
        "stop_time" => float 1466857569.8511
        "stop_memory" => integer 5920448
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8515
        "start_memory" => integer 5886368
        "stop_time" => float 1466857569.8515
        "stop_memory" => integer 5888688
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8521
        "start_memory" => integer 5924816
        "stop_time" => float 1466857569.8521
        "stop_memory" => integer 5926480
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1466857569.8522
        "start_memory" => integer 5926112
        "stop_time" => float 1466857569.8522
        "stop_memory" => integer 5927800
    )
)

Methods

public static application( ) (defined in Kohana_Profiler)

Gets the total application run time and memory usage. Caches the result so that it can be compared between requests.

list($time, $memory) = Profiler::application();

Tags

Return Values

  • array - Execution time, memory

Source Code

public static function application()
{
	// Load the stats from cache, which is valid for 1 day
	$stats = Kohana::cache('profiler_application_stats', NULL, 3600 * 24);

	if ( ! is_array($stats) OR $stats['count'] > Profiler::$rollover)
	{
		// Initialize the stats array
		$stats = array(
			'min'   => array(
				'time'   => NULL,
				'memory' => NULL),
			'max'   => array(
				'time'   => NULL,
				'memory' => NULL),
			'total' => array(
				'time'   => NULL,
				'memory' => NULL),
			'count' => 0);
	}

	// Get the application run time
	$time = microtime(TRUE) - KOHANA_START_TIME;

	// Get the total memory usage
	$memory = memory_get_usage() - KOHANA_START_MEMORY;

	// Calculate max time
	if ($stats['max']['time'] === NULL OR $time > $stats['max']['time'])
	{
		$stats['max']['time'] = $time;
	}

	// Calculate min time
	if ($stats['min']['time'] === NULL OR $time < $stats['min']['time'])
	{
		$stats['min']['time'] = $time;
	}

	// Add to total time
	$stats['total']['time'] += $time;

	// Calculate max memory
	if ($stats['max']['memory'] === NULL OR $memory > $stats['max']['memory'])
	{
		$stats['max']['memory'] = $memory;
	}

	// Calculate min memory
	if ($stats['min']['memory'] === NULL OR $memory < $stats['min']['memory'])
	{
		$stats['min']['memory'] = $memory;
	}

	// Add to total memory
	$stats['total']['memory'] += $memory;

	// Another mark has been added to the stats
	$stats['count']++;

	// Determine the averages
	$stats['average'] = array(
		'time'   => $stats['total']['time'] / $stats['count'],
		'memory' => $stats['total']['memory'] / $stats['count']);

	// Cache the new stats
	Kohana::cache('profiler_application_stats', $stats);

	// Set the current application execution time and memory
	// Do NOT cache these, they are specific to the current request only
	$stats['current']['time']   = $time;
	$stats['current']['memory'] = $memory;

	// Return the total application run time and memory usage
	return $stats;
}

public static delete( string $token ) (defined in Kohana_Profiler)

Deletes a benchmark. If an error occurs during the benchmark, it is recommended to delete the benchmark to prevent statistics from being adversely affected.

Profiler::delete($token);

Parameters

  • string $token required - $token

Return Values

  • void

Source Code

public static function delete($token)
{
	// Remove the benchmark
	unset(Profiler::$_marks[$token]);
}

public static group_stats( [ mixed $groups = NULL ] ) (defined in Kohana_Profiler)

Gets the min, max, average and total of profiler groups as an array.

$stats = Profiler::group_stats('test');

Parameters

  • mixed $groups = NULL - Single group name string, or array with group names; all groups by default

Tags

Return Values

  • array - Min, max, average, total

Source Code

public static function group_stats($groups = NULL)
{
	// Which groups do we need to calculate stats for?
	$groups = ($groups === NULL)
		? Profiler::groups()
		: array_intersect_key(Profiler::groups(), array_flip( (array) $groups));

	// All statistics
	$stats = array();

	foreach ($groups as $group => $names)
	{
		foreach ($names as $name => $tokens)
		{
			// Store the stats for each subgroup.
			// We only need the values for "total".
			$_stats = Profiler::stats($tokens);
			$stats[$group][$name] = $_stats['total'];
		}
	}

	// Group stats
	$groups = array();

	foreach ($stats as $group => $names)
	{
		// Min and max are unknown by default
		$groups[$group]['min'] = $groups[$group]['max'] = array(
			'time' => NULL,
			'memory' => NULL);

		// Total values are always integers
		$groups[$group]['total'] = array(
			'time' => 0,
			'memory' => 0);

		foreach ($names as $total)
		{
			if ( ! isset($groups[$group]['min']['time']) OR $groups[$group]['min']['time'] > $total['time'])
			{
				// Set the minimum time
				$groups[$group]['min']['time'] = $total['time'];
			}
			if ( ! isset($groups[$group]['min']['memory']) OR $groups[$group]['min']['memory'] > $total['memory'])
			{
				// Set the minimum memory
				$groups[$group]['min']['memory'] = $total['memory'];
			}

			if ( ! isset($groups[$group]['max']['time']) OR $groups[$group]['max']['time'] < $total['time'])
			{
				// Set the maximum time
				$groups[$group]['max']['time'] = $total['time'];
			}
			if ( ! isset($groups[$group]['max']['memory']) OR $groups[$group]['max']['memory'] < $total['memory'])
			{
				// Set the maximum memory
				$groups[$group]['max']['memory'] = $total['memory'];
			}

			// Increase the total time and memory
			$groups[$group]['total']['time']   += $total['time'];
			$groups[$group]['total']['memory'] += $total['memory'];
		}

		// Determine the number of names (subgroups)
		$count = count($names);

		// Determine the averages
		$groups[$group]['average']['time']   = $groups[$group]['total']['time'] / $count;
		$groups[$group]['average']['memory'] = $groups[$group]['total']['memory'] / $count;
	}

	return $groups;
}

public static groups( ) (defined in Kohana_Profiler)

Returns all the benchmark tokens by group and name as an array.

$groups = Profiler::groups();

Return Values

  • array

Source Code

public static function groups()
{
	$groups = array();

	foreach (Profiler::$_marks as $token => $mark)
	{
		// Sort the tokens by the group and name
		$groups[$mark['group']][$mark['name']][] = $token;
	}

	return $groups;
}

public static start( string $group , string $name ) (defined in Kohana_Profiler)

Starts a new benchmark and returns a unique token. The returned token must be used when stopping the benchmark.

$token = Profiler::start('test', 'profiler');

Parameters

  • string $group required - Group name
  • string $name required - Benchmark name

Return Values

  • string

Source Code

public static function start($group, $name)
{
	static $counter = 0;

	// Create a unique token based on the counter
	$token = 'kp/'.base_convert($counter++, 10, 32);

	Profiler::$_marks[$token] = array
	(
		'group' => strtolower($group),
		'name'  => (string) $name,

		// Start the benchmark
		'start_time'   => microtime(TRUE),
		'start_memory' => memory_get_usage(),

		// Set the stop keys without values
		'stop_time'    => FALSE,
		'stop_memory'  => FALSE,
	);

	return $token;
}

public static stats( array $tokens ) (defined in Kohana_Profiler)

Gets the min, max, average and total of a set of tokens as an array.

$stats = Profiler::stats($tokens);

Parameters

  • array $tokens required - Profiler tokens

Tags

Return Values

  • array - Min, max, average, total

Source Code

public static function stats(array $tokens)
{
	// Min and max are unknown by default
	$min = $max = array(
		'time' => NULL,
		'memory' => NULL);

	// Total values are always integers
	$total = array(
		'time' => 0,
		'memory' => 0);

	foreach ($tokens as $token)
	{
		// Get the total time and memory for this benchmark
		list($time, $memory) = Profiler::total($token);

		if ($max['time'] === NULL OR $time > $max['time'])
		{
			// Set the maximum time
			$max['time'] = $time;
		}

		if ($min['time'] === NULL OR $time < $min['time'])
		{
			// Set the minimum time
			$min['time'] = $time;
		}

		// Increase the total time
		$total['time'] += $time;

		if ($max['memory'] === NULL OR $memory > $max['memory'])
		{
			// Set the maximum memory
			$max['memory'] = $memory;
		}

		if ($min['memory'] === NULL OR $memory < $min['memory'])
		{
			// Set the minimum memory
			$min['memory'] = $memory;
		}

		// Increase the total memory
		$total['memory'] += $memory;
	}

	// Determine the number of tokens
	$count = count($tokens);

	// Determine the averages
	$average = array(
		'time' => $total['time'] / $count,
		'memory' => $total['memory'] / $count);

	return array(
		'min' => $min,
		'max' => $max,
		'total' => $total,
		'average' => $average);
}

public static stop( string $token ) (defined in Kohana_Profiler)

Stops a benchmark.

Profiler::stop($token);

Parameters

  • string $token required - $token

Return Values

  • void

Source Code

public static function stop($token)
{
	// Stop the benchmark
	Profiler::$_marks[$token]['stop_time']   = microtime(TRUE);
	Profiler::$_marks[$token]['stop_memory'] = memory_get_usage();
}

public static total( string $token ) (defined in Kohana_Profiler)

Gets the total execution time and memory usage of a benchmark as a list.

list($time, $memory) = Profiler::total($token);

Parameters

  • string $token required - $token

Return Values

  • array - Execution time, memory

Source Code

public static function total($token)
{
	// Import the benchmark data
	$mark = Profiler::$_marks[$token];

	if ($mark['stop_time'] === FALSE)
	{
		// The benchmark has not been stopped yet
		$mark['stop_time']   = microtime(TRUE);
		$mark['stop_memory'] = memory_get_usage();
	}

	return array
	(
		// Total time in seconds
		$mark['stop_time'] - $mark['start_time'],

		// Amount of memory in bytes
		$mark['stop_memory'] - $mark['start_memory'],
	);
}