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 1496070787.2019
        "start_memory" => integer 1116440
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2019
        "start_memory" => integer 1118688
        "stop_time" => float 1496070787.2019
        "stop_memory" => integer 1119376
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.202
        "start_memory" => integer 1122920
        "stop_time" => float 1496070787.2021
        "stop_memory" => integer 1123528
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2026
        "start_memory" => integer 1200000
        "stop_time" => float 1496070787.2027
        "stop_memory" => integer 1200552
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2028
        "start_memory" => integer 1204056
        "stop_time" => float 1496070787.2028
        "stop_memory" => integer 1204648
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2029
        "start_memory" => integer 1212608
        "stop_time" => float 1496070787.203
        "stop_memory" => integer 1213160
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.203
        "start_memory" => integer 1216624
        "stop_time" => float 1496070787.2031
        "stop_memory" => integer 1217232
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2032
        "start_memory" => integer 1226064
        "stop_time" => float 1496070787.2033
        "stop_memory" => integer 1226624
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2033
        "start_memory" => integer 1230064
        "stop_time" => float 1496070787.2034
        "stop_memory" => integer 1230712
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2041
        "start_memory" => integer 1325600
        "stop_time" => float 1496070787.2042
        "stop_memory" => integer 1326176
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2042
        "start_memory" => integer 1329656
        "stop_time" => float 1496070787.2043
        "stop_memory" => integer 1330248
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2044
        "start_memory" => integer 1342032
        "stop_time" => float 1496070787.2045
        "stop_memory" => integer 1342584
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2045
        "start_memory" => integer 1346008
        "stop_time" => float 1496070787.2046
        "stop_memory" => integer 1346576
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2049
        "start_memory" => integer 1380968
        "stop_time" => float 1496070787.2049
        "stop_memory" => integer 1381568
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2049
        "start_memory" => integer 1382640
        "stop_time" => float 1496070787.205
        "stop_memory" => integer 1383176
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.205
        "start_memory" => integer 1386584
        "stop_time" => float 1496070787.2051
        "stop_memory" => integer 1387160
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2053
        "start_memory" => integer 1406408
        "stop_time" => float 1496070787.2054
        "stop_memory" => integer 1407112
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2054
        "start_memory" => integer 1410536
        "stop_time" => float 1496070787.2055
        "stop_memory" => integer 1411104
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2061
        "start_memory" => integer 1506712
        "stop_time" => float 1496070787.2061
        "stop_memory" => integer 1507312
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2062
        "start_memory" => integer 1510816
        "stop_time" => float 1496070787.2062
        "stop_memory" => integer 1511416
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2067
        "start_memory" => integer 1550736
        "stop_time" => float 1496070787.2067
        "stop_memory" => integer 1551264
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2067
        "start_memory" => integer 1551904
        "stop_time" => float 1496070787.2068
        "stop_memory" => integer 1552480
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2094
        "start_memory" => integer 1951664
        "stop_time" => float 1496070787.2094
        "stop_memory" => integer 1952248
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2095
        "start_memory" => integer 1955752
        "stop_time" => float 1496070787.2096
        "stop_memory" => integer 1956352
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2097
        "start_memory" => integer 1957984
        "stop_time" => float 1496070787.2097
        "stop_memory" => integer 1958584
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2098
        "start_memory" => integer 1962096
        "stop_time" => float 1496070787.2098
        "stop_memory" => integer 1962672
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2101
        "start_memory" => integer 1992320
        "stop_time" => float 1496070787.2101
        "stop_memory" => integer 1992880
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2102
        "start_memory" => integer 1996384
        "stop_time" => float 1496070787.2102
        "stop_memory" => integer 1996984
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2107
        "start_memory" => integer 2059016
        "stop_time" => float 1496070787.2108
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2108
        "start_memory" => integer 2063000
        "stop_time" => float 1496070787.2109
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2119
        "start_memory" => integer 2122784
        "stop_time" => float 1496070787.2119
        "stop_memory" => integer 2123400
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2854
        "start_memory" => integer 2164312
        "stop_time" => float 1496070787.2854
        "stop_memory" => integer 2164888
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2855
        "start_memory" => integer 2168312
        "stop_time" => float 1496070787.2855
        "stop_memory" => integer 2169152
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2861
        "start_memory" => integer 2195400
        "stop_time" => float 1496070787.2862
        "stop_memory" => integer 2195976
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2862
        "start_memory" => integer 2199456
        "stop_time" => float 1496070787.2863
        "stop_memory" => integer 2200048
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2867
        "start_memory" => integer 2217344
        "stop_time" => float 1496070787.2868
        "stop_memory" => integer 2217912
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2869
        "start_memory" => integer 2221376
        "stop_time" => float 1496070787.2869
        "stop_memory" => integer 2221968
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2875
        "start_memory" => integer 2265424
        "stop_time" => float 1496070787.2875
        "stop_memory" => integer 2266024
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2877
        "start_memory" => integer 2277560
        "stop_time" => float 1496070787.2877
        "stop_memory" => integer 2278136
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2877
        "start_memory" => integer 2281648
        "stop_time" => float 1496070787.2878
        "stop_memory" => integer 2282232
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2882
        "start_memory" => integer 2320248
        "stop_time" => float 1496070787.2882
        "stop_memory" => integer 2320848
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2884
        "start_memory" => integer 2332968
        "stop_time" => float 1496070787.2885
        "stop_memory" => integer 2333544
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2888
        "start_memory" => integer 2360560
        "stop_time" => float 1496070787.2888
        "stop_memory" => integer 2361160
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.289
        "start_memory" => integer 2368976
        "stop_time" => float 1496070787.289
        "stop_memory" => integer 2369552
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2892
        "start_memory" => integer 2382704
        "stop_time" => float 1496070787.2893
        "stop_memory" => integer 2383304
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2894
        "start_memory" => integer 2390320
        "stop_time" => float 1496070787.2895
        "stop_memory" => integer 2390912
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2897
        "start_memory" => integer 2404216
        "stop_time" => float 1496070787.2897
        "stop_memory" => integer 2404808
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2899
        "start_memory" => integer 2418440
        "stop_time" => float 1496070787.2899
        "stop_memory" => integer 2419032
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2901
        "start_memory" => integer 2428512
        "stop_time" => float 1496070787.2901
        "stop_memory" => integer 2429104
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2903
        "start_memory" => integer 2437776
        "stop_time" => float 1496070787.2904
        "stop_memory" => integer 2438368
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2906
        "start_memory" => integer 2483720
        "stop_time" => float 1496070787.2906
        "stop_memory" => integer 2484296
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2909
        "start_memory" => integer 2507224
        "stop_time" => float 1496070787.2909
        "stop_memory" => integer 2507824
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2911
        "start_memory" => integer 2521120
        "stop_time" => float 1496070787.2912
        "stop_memory" => integer 2521696
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2914
        "start_memory" => integer 2540896
        "stop_time" => float 1496070787.2914
        "stop_memory" => integer 2541480
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2916
        "start_memory" => integer 2555136
        "stop_time" => float 1496070787.2917
        "stop_memory" => integer 2555704
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2917
        "start_memory" => integer 2559160
        "stop_time" => float 1496070787.2917
        "stop_memory" => integer 2559744
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2919
        "start_memory" => integer 2581944
        "stop_time" => float 1496070787.292
        "stop_memory" => integer 2582504
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.292
        "start_memory" => integer 2585936
        "stop_time" => float 1496070787.2921
        "stop_memory" => integer 2586520
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2941
        "start_memory" => integer 2680448
        "stop_time" => float 1496070787.2942
        "stop_memory" => integer 2681024
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2995
        "start_memory" => integer 2711600
        "stop_time" => float 1496070787.2995
        "stop_memory" => integer 2712176
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.2996
        "start_memory" => integer 2715680
        "stop_time" => float 1496070787.2996
        "stop_memory" => integer 2716272
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3027
        "start_memory" => integer 2735392
        "stop_time" => float 1496070787.3028
        "stop_memory" => integer 2735976
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3029
        "start_memory" => integer 2739504
        "stop_time" => float 1496070787.3029
        "stop_memory" => integer 2740104
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3062
        "start_memory" => integer 2759312
        "stop_time" => float 1496070787.3063
        "stop_memory" => integer 2759872
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3064
        "start_memory" => integer 2763352
        "stop_time" => float 1496070787.3064
        "stop_memory" => integer 2764456
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3069
        "start_memory" => integer 2819008
        "stop_time" => float 1496070787.3069
        "stop_memory" => integer 2819608
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3113
        "start_memory" => integer 2826904
        "stop_time" => float 1496070787.3114
        "stop_memory" => integer 2827480
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3115
        "start_memory" => integer 2831008
        "stop_time" => float 1496070787.3115
        "stop_memory" => integer 2831608
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3218
        "start_memory" => integer 2871296
        "stop_time" => float 1496070787.3219
        "stop_memory" => integer 2871872
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.322
        "start_memory" => integer 2875400
        "stop_time" => float 1496070787.322
        "stop_memory" => integer 2876000
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3222
        "start_memory" => integer 2891968
        "stop_time" => float 1496070787.3222
        "stop_memory" => integer 2892544
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3227
        "start_memory" => integer 2899864
        "stop_time" => float 1496070787.3227
        "stop_memory" => integer 2900432
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3228
        "start_memory" => integer 2903904
        "stop_time" => float 1496070787.3228
        "stop_memory" => integer 2904496
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3235
        "start_memory" => integer 2953920
        "stop_time" => float 1496070787.3236
        "stop_memory" => integer 2954504
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3237
        "start_memory" => integer 2958008
        "stop_time" => float 1496070787.3237
        "stop_memory" => integer 2958608
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3274
        "start_memory" => integer 2978008
        "stop_time" => float 1496070787.3274
        "stop_memory" => integer 2978568
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3275
        "start_memory" => integer 2982040
        "stop_time" => float 1496070787.3276
        "stop_memory" => integer 2982632
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3281
        "start_memory" => integer 2997800
        "stop_time" => float 1496070787.3282
        "stop_memory" => integer 2998336
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3282
        "start_memory" => integer 3001744
        "stop_time" => float 1496070787.3283
        "stop_memory" => integer 3002320
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3294
        "start_memory" => integer 3009000
        "stop_time" => float 1496070787.3294
        "stop_memory" => integer 3009600
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3295
        "start_memory" => integer 3013112
        "stop_time" => float 1496070787.3296
        "stop_memory" => integer 3013712
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3321
        "start_memory" => integer 3048760
        "stop_time" => float 1496070787.3321
        "stop_memory" => integer 3049352
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3325
        "start_memory" => integer 3057048
        "stop_time" => float 1496070787.3326
        "stop_memory" => integer 3057608
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3327
        "start_memory" => integer 3061096
        "stop_time" => float 1496070787.3327
        "stop_memory" => integer 3061688
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3352
        "start_memory" => integer 3079328
        "stop_time" => float 1496070787.3352
        "stop_memory" => integer 3079912
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3367
        "start_memory" => integer 3084512
        "stop_time" => float 1496070787.3367
        "stop_memory" => integer 3085080
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3368
        "start_memory" => integer 3088544
        "stop_time" => float 1496070787.3368
        "stop_memory" => integer 3089136
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3385
        "start_memory" => integer 3183192
        "stop_time" => float 1496070787.3385
        "stop_memory" => integer 3183792
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3386
        "start_memory" => integer 3187344
        "stop_time" => float 1496070787.3386
        "stop_memory" => integer 3187936
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.339
        "start_memory" => integer 3201512
        "stop_time" => float 1496070787.339
        "stop_memory" => integer 3202104
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3391
        "start_memory" => integer 3205656
        "stop_time" => float 1496070787.3391
        "stop_memory" => integer 3206264
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3402
        "start_memory" => integer 3211296
        "stop_time" => float 1496070787.3403
        "stop_memory" => integer 3211864
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3403
        "start_memory" => integer 3215368
        "stop_time" => float 1496070787.3404
        "stop_memory" => integer 3215968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3413
        "start_memory" => integer 3310768
        "stop_time" => float 1496070787.3413
        "stop_memory" => integer 3311360
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3414
        "start_memory" => integer 3314912
        "stop_time" => float 1496070787.3414
        "stop_memory" => integer 3315520
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3416
        "start_memory" => integer 3327560
        "stop_time" => float 1496070787.3416
        "stop_memory" => integer 3328128
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3417
        "start_memory" => integer 3331632
        "stop_time" => float 1496070787.3417
        "stop_memory" => integer 3332256
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3424
        "start_memory" => integer 3375896
        "stop_time" => float 1496070787.3425
        "stop_memory" => integer 3376472
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3425
        "start_memory" => integer 3379992
        "stop_time" => float 1496070787.3426
        "stop_memory" => integer 3380592
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3432
        "start_memory" => integer 3425224
        "stop_time" => float 1496070787.3432
        "stop_memory" => integer 3425800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3433
        "start_memory" => integer 3429304
        "stop_time" => float 1496070787.3433
        "stop_memory" => integer 3429904
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.344
        "start_memory" => integer 3457216
        "stop_time" => float 1496070787.3441
        "stop_memory" => integer 3457808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3442
        "start_memory" => integer 3461368
        "stop_time" => float 1496070787.3442
        "stop_memory" => integer 3461976
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.345
        "start_memory" => integer 3498192
        "stop_time" => float 1496070787.345
        "stop_memory" => integer 3498792
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3451
        "start_memory" => integer 3502424
        "stop_time" => float 1496070787.3452
        "stop_memory" => integer 3503040
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3454
        "start_memory" => integer 3515184
        "stop_time" => float 1496070787.3454
        "stop_memory" => integer 3515776
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3455
        "start_memory" => integer 3519400
        "stop_time" => float 1496070787.3456
        "stop_memory" => integer 3520016
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3468
        "start_memory" => integer 3572136
        "stop_time" => float 1496070787.3468
        "stop_memory" => integer 3572728
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3469
        "start_memory" => integer 3576336
        "stop_time" => float 1496070787.347
        "stop_memory" => integer 3576952
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3478
        "start_memory" => integer 3609544
        "stop_time" => float 1496070787.3479
        "stop_memory" => integer 3610136
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.348
        "start_memory" => integer 3613760
        "stop_time" => float 1496070787.348
        "stop_memory" => integer 3614376
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3487
        "start_memory" => integer 3643000
        "stop_time" => float 1496070787.3487
        "stop_memory" => integer 3643592
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3488
        "start_memory" => integer 3647200
        "stop_time" => float 1496070787.3488
        "stop_memory" => integer 3647816
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3498
        "start_memory" => integer 3723736
        "stop_time" => float 1496070787.3498
        "stop_memory" => integer 3724328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3499
        "start_memory" => integer 3727936
        "stop_time" => float 1496070787.3499
        "stop_memory" => integer 3728552
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3514
        "start_memory" => integer 3765072
        "stop_time" => float 1496070787.3515
        "stop_memory" => integer 3765648
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3516
        "start_memory" => integer 3769208
        "stop_time" => float 1496070787.3516
        "stop_memory" => integer 3769816
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3522
        "start_memory" => integer 3788144
        "stop_time" => float 1496070787.3523
        "stop_memory" => integer 3788680
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3523
        "start_memory" => integer 3792128
        "stop_time" => float 1496070787.3524
        "stop_memory" => integer 3792696
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3533
        "start_memory" => integer 3862280
        "stop_time" => float 1496070787.3533
        "stop_memory" => integer 3862864
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3534
        "start_memory" => integer 3866320
        "stop_time" => float 1496070787.3534
        "stop_memory" => integer 3866896
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3566
        "start_memory" => integer 3881096
        "stop_time" => float 1496070787.3566
        "stop_memory" => integer 3881656
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3567
        "start_memory" => integer 3885088
        "stop_time" => float 1496070787.3568
        "stop_memory" => integer 3885672
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3588
        "start_memory" => integer 3907512
        "stop_time" => float 1496070787.3588
        "stop_memory" => integer 3908072
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3589
        "start_memory" => integer 3911496
        "stop_time" => float 1496070787.359
        "stop_memory" => integer 3912064
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3595
        "start_memory" => integer 3935208
        "stop_time" => float 1496070787.3596
        "stop_memory" => integer 3935776
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3597
        "start_memory" => integer 3939208
        "stop_time" => float 1496070787.3597
        "stop_memory" => integer 3939776
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3603
        "start_memory" => integer 3965728
        "stop_time" => float 1496070787.3603
        "stop_memory" => integer 3966296
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3604
        "start_memory" => integer 3969720
        "stop_time" => float 1496070787.3605
        "stop_memory" => integer 3971312
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3614
        "start_memory" => integer 4018432
        "stop_time" => float 1496070787.3615
        "stop_memory" => integer 4019000
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3615
        "start_memory" => integer 4022440
        "stop_time" => float 1496070787.3616
        "stop_memory" => integer 4023024
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3631
        "start_memory" => integer 4037568
        "stop_time" => float 1496070787.3631
        "stop_memory" => integer 4038128
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3632
        "start_memory" => integer 4041576
        "stop_time" => float 1496070787.3633
        "stop_memory" => integer 4042144
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3642
        "start_memory" => integer 4058776
        "stop_time" => float 1496070787.3643
        "stop_memory" => integer 4059360
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3644
        "start_memory" => integer 4062840
        "stop_time" => float 1496070787.3644
        "stop_memory" => integer 4063432
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3649
        "start_memory" => integer 4079896
        "stop_time" => float 1496070787.365
        "stop_memory" => integer 4080464
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.365
        "start_memory" => integer 4083968
        "stop_time" => float 1496070787.3651
        "stop_memory" => integer 4084560
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3655
        "start_memory" => integer 4098144
        "stop_time" => float 1496070787.3656
        "stop_memory" => integer 4098712
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3657
        "start_memory" => integer 4102216
        "stop_time" => float 1496070787.3657
        "stop_memory" => integer 4102808
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3662
        "start_memory" => integer 4116408
        "stop_time" => float 1496070787.3662
        "stop_memory" => integer 4116976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3663
        "start_memory" => integer 4120480
        "stop_time" => float 1496070787.3664
        "stop_memory" => integer 4121072
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3669
        "start_memory" => integer 4134672
        "stop_time" => float 1496070787.3669
        "stop_memory" => integer 4135240
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.367
        "start_memory" => integer 4138744
        "stop_time" => float 1496070787.3671
        "stop_memory" => integer 4139336
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3676
        "start_memory" => integer 4152920
        "stop_time" => float 1496070787.3676
        "stop_memory" => integer 4153488
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3677
        "start_memory" => integer 4156992
        "stop_time" => float 1496070787.3677
        "stop_memory" => integer 4157584
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3682
        "start_memory" => integer 4171168
        "stop_time" => float 1496070787.3682
        "stop_memory" => integer 4171736
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3683
        "start_memory" => integer 4175240
        "stop_time" => float 1496070787.3684
        "stop_memory" => integer 4175832
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3688
        "start_memory" => integer 4189432
        "stop_time" => float 1496070787.3689
        "stop_memory" => integer 4190000
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.369
        "start_memory" => integer 4193504
        "stop_time" => float 1496070787.369
        "stop_memory" => integer 4194096
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3695
        "start_memory" => integer 4207680
        "stop_time" => float 1496070787.3695
        "stop_memory" => integer 4208248
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3696
        "start_memory" => integer 4211752
        "stop_time" => float 1496070787.3696
        "stop_memory" => integer 4212344
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3701
        "start_memory" => integer 4226024
        "stop_time" => float 1496070787.3702
        "stop_memory" => integer 4226592
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3702
        "start_memory" => integer 4230096
        "stop_time" => float 1496070787.3703
        "stop_memory" => integer 4230688
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3707
        "start_memory" => integer 4244272
        "stop_time" => float 1496070787.3708
        "stop_memory" => integer 4244840
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3709
        "start_memory" => integer 4248344
        "stop_time" => float 1496070787.3709
        "stop_memory" => integer 4248936
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3714
        "start_memory" => integer 4262520
        "stop_time" => float 1496070787.3714
        "stop_memory" => integer 4263088
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3715
        "start_memory" => integer 4266592
        "stop_time" => float 1496070787.3715
        "stop_memory" => integer 4267184
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.372
        "start_memory" => integer 4280752
        "stop_time" => float 1496070787.372
        "stop_memory" => integer 4281320
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3721
        "start_memory" => integer 4284824
        "stop_time" => float 1496070787.3722
        "stop_memory" => integer 4285416
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3726
        "start_memory" => integer 4299000
        "stop_time" => float 1496070787.3727
        "stop_memory" => integer 4299568
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3728
        "start_memory" => integer 4303072
        "stop_time" => float 1496070787.3728
        "stop_memory" => integer 4303664
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3733
        "start_memory" => integer 4317264
        "stop_time" => float 1496070787.3734
        "stop_memory" => integer 4317832
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3734
        "start_memory" => integer 4321336
        "stop_time" => float 1496070787.3735
        "stop_memory" => integer 4321928
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3739
        "start_memory" => integer 4335544
        "stop_time" => float 1496070787.374
        "stop_memory" => integer 4336112
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3741
        "start_memory" => integer 4339616
        "stop_time" => float 1496070787.3741
        "stop_memory" => integer 4340208
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3746
        "start_memory" => integer 4353808
        "stop_time" => float 1496070787.3746
        "stop_memory" => integer 4354376
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3747
        "start_memory" => integer 4357880
        "stop_time" => float 1496070787.3747
        "stop_memory" => integer 4358472
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3752
        "start_memory" => integer 4372200
        "stop_time" => float 1496070787.3752
        "stop_memory" => integer 4372768
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3753
        "start_memory" => integer 4376272
        "stop_time" => float 1496070787.3754
        "stop_memory" => integer 4376864
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3758
        "start_memory" => integer 4390480
        "stop_time" => float 1496070787.3759
        "stop_memory" => integer 4391048
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.376
        "start_memory" => integer 4394552
        "stop_time" => float 1496070787.376
        "stop_memory" => integer 4395144
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3765
        "start_memory" => integer 4408744
        "stop_time" => float 1496070787.3765
        "stop_memory" => integer 4409312
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3766
        "start_memory" => integer 4412816
        "stop_time" => float 1496070787.3766
        "stop_memory" => integer 4413408
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3771
        "start_memory" => integer 4427008
        "stop_time" => float 1496070787.3771
        "stop_memory" => integer 4427576
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3772
        "start_memory" => integer 4431080
        "stop_time" => float 1496070787.3773
        "stop_memory" => integer 4431672
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3777
        "start_memory" => integer 4445256
        "stop_time" => float 1496070787.3778
        "stop_memory" => integer 4445824
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3778
        "start_memory" => integer 4449328
        "stop_time" => float 1496070787.3779
        "stop_memory" => integer 4449920
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3783
        "start_memory" => integer 4463504
        "stop_time" => float 1496070787.3784
        "stop_memory" => integer 4464072
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3785
        "start_memory" => integer 4467576
        "stop_time" => float 1496070787.3785
        "stop_memory" => integer 4468168
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.379
        "start_memory" => integer 4481768
        "stop_time" => float 1496070787.379
        "stop_memory" => integer 4482336
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3791
        "start_memory" => integer 4485840
        "stop_time" => float 1496070787.3791
        "stop_memory" => integer 4486432
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3796
        "start_memory" => integer 4500016
        "stop_time" => float 1496070787.3796
        "stop_memory" => integer 4500584
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3797
        "start_memory" => integer 4504088
        "stop_time" => float 1496070787.3798
        "stop_memory" => integer 4504680
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3808
        "start_memory" => integer 4518504
        "stop_time" => float 1496070787.3809
        "stop_memory" => integer 4519072
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.381
        "start_memory" => integer 4522576
        "stop_time" => float 1496070787.381
        "stop_memory" => integer 4523168
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3829
        "start_memory" => integer 4546096
        "stop_time" => float 1496070787.383
        "stop_memory" => integer 4546664
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3831
        "start_memory" => integer 4550128
        "stop_time" => float 1496070787.3831
        "stop_memory" => integer 4550704
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3841
        "start_memory" => integer 4631888
        "stop_time" => float 1496070787.3841
        "stop_memory" => integer 4632464
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3842
        "start_memory" => integer 4635928
        "stop_time" => float 1496070787.3842
        "stop_memory" => integer 4636520
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3854
        "start_memory" => integer 4737640
        "stop_time" => float 1496070787.3854
        "stop_memory" => integer 4738192
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3855
        "start_memory" => integer 4741672
        "stop_time" => float 1496070787.3855
        "stop_memory" => integer 4742256
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3874
        "start_memory" => integer 4775224
        "stop_time" => float 1496070787.3875
        "stop_memory" => integer 4775816
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3876
        "start_memory" => integer 4779336
        "stop_time" => float 1496070787.3876
        "stop_memory" => integer 4779936
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3882
        "start_memory" => integer 4805504
        "stop_time" => float 1496070787.3882
        "stop_memory" => integer 4806096
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3883
        "start_memory" => integer 4809672
        "stop_time" => float 1496070787.3884
        "stop_memory" => integer 4810280
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3893
        "start_memory" => integer 4828984
        "stop_time" => float 1496070787.3894
        "stop_memory" => integer 4829552
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3895
        "start_memory" => integer 4833080
        "stop_time" => float 1496070787.3895
        "stop_memory" => integer 4833680
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3909
        "start_memory" => integer 4852296
        "stop_time" => float 1496070787.3909
        "stop_memory" => integer 4852888
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3933
        "start_memory" => integer 4862632
        "stop_time" => float 1496070787.3933
        "stop_memory" => integer 4863208
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3935
        "start_memory" => integer 4871808
        "stop_time" => float 1496070787.3936
        "stop_memory" => integer 4872392
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3946
        "start_memory" => integer 4881768
        "stop_time" => float 1496070787.3946
        "stop_memory" => integer 4882320
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3947
        "start_memory" => integer 4885776
        "stop_time" => float 1496070787.3948
        "stop_memory" => integer 4886360
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3952
        "start_memory" => integer 4890400
        "stop_time" => float 1496070787.3952
        "stop_memory" => integer 4890960
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3953
        "start_memory" => integer 4894544
        "stop_time" => float 1496070787.3954
        "stop_memory" => integer 4895144
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3958
        "start_memory" => integer 4899040
        "stop_time" => float 1496070787.3959
        "stop_memory" => integer 4899600
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3959
        "start_memory" => integer 4903136
        "stop_time" => float 1496070787.396
        "stop_memory" => integer 4903712
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3968
        "start_memory" => integer 4912704
        "stop_time" => float 1496070787.3968
        "stop_memory" => integer 4913296
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3969
        "start_memory" => integer 4916824
        "stop_time" => float 1496070787.397
        "stop_memory" => integer 4917400
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3974
        "start_memory" => integer 4919536
        "stop_time" => float 1496070787.3974
        "stop_memory" => integer 4920168
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3976
        "start_memory" => integer 4926968
        "stop_time" => float 1496070787.3976
        "stop_memory" => integer 4927520
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3977
        "start_memory" => integer 4930960
        "stop_time" => float 1496070787.3977
        "stop_memory" => integer 4931544
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.3995
        "start_memory" => integer 5163080
        "stop_time" => float 1496070787.3995
        "stop_memory" => integer 5163672
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4002
        "start_memory" => integer 5220440
        "stop_time" => float 1496070787.4002
        "stop_memory" => integer 5221024
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4007
        "start_memory" => integer 5255448
        "stop_time" => float 1496070787.4007
        "stop_memory" => integer 5256032
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4008
        "start_memory" => integer 5259584
        "stop_time" => float 1496070787.4008
        "stop_memory" => integer 5260184
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4012
        "start_memory" => integer 5266192
        "stop_time" => float 1496070787.4013
        "stop_memory" => integer 5266752
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4016
        "start_memory" => integer 5292856
        "stop_time" => float 1496070787.4017
        "stop_memory" => integer 5293432
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4021
        "start_memory" => integer 5322392
        "stop_time" => float 1496070787.4021
        "stop_memory" => integer 5322984
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4025
        "start_memory" => integer 5349696
        "stop_time" => float 1496070787.4025
        "stop_memory" => integer 5350232
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4026
        "start_memory" => integer 5353736
        "stop_time" => float 1496070787.4026
        "stop_memory" => integer 5354336
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4045
        "start_memory" => integer 5381464
        "stop_time" => float 1496070787.4046
        "stop_memory" => integer 5382088
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4047
        "start_memory" => integer 5385888
        "stop_time" => float 1496070787.4048
        "stop_memory" => integer 5386512
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4071
        "start_memory" => integer 5418328
        "stop_time" => float 1496070787.4072
        "stop_memory" => integer 5418904
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4073
        "start_memory" => integer 5422488
        "stop_time" => float 1496070787.4074
        "stop_memory" => integer 5423096
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4107
        "start_memory" => integer 5487816
        "stop_time" => float 1496070787.4107
        "stop_memory" => integer 5488368
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4108
        "start_memory" => integer 5491912
        "stop_time" => float 1496070787.4109
        "stop_memory" => integer 5492504
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4113
        "start_memory" => integer 5502624
        "stop_time" => float 1496070787.4113
        "stop_memory" => integer 5503176
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4114
        "start_memory" => integer 5506696
        "stop_time" => float 1496070787.4115
        "stop_memory" => integer 5507296
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4121
        "start_memory" => integer 5551832
        "stop_time" => float 1496070787.4122
        "stop_memory" => integer 5552464
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4122
        "start_memory" => integer 5555968
        "stop_time" => float 1496070787.4123
        "stop_memory" => integer 5556536
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4127
        "start_memory" => integer 5576912
        "stop_time" => float 1496070787.4128
        "stop_memory" => integer 5577528
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4128
        "start_memory" => integer 5581048
        "stop_time" => float 1496070787.4129
        "stop_memory" => integer 5581648
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4139
        "start_memory" => integer 5630336
        "stop_time" => float 1496070787.4139
        "stop_memory" => integer 5630896
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.414
        "start_memory" => integer 5634464
        "stop_time" => float 1496070787.414
        "stop_memory" => integer 5635056
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4145
        "start_memory" => integer 5657352
        "stop_time" => float 1496070787.4145
        "stop_memory" => integer 5657928
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4146
        "start_memory" => integer 5661424
        "stop_time" => float 1496070787.4147
        "stop_memory" => integer 5661984
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4156
        "start_memory" => integer 5734584
        "stop_time" => float 1496070787.4156
        "stop_memory" => integer 5735160
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4157
        "start_memory" => integer 5738608
        "stop_time" => float 1496070787.4158
        "stop_memory" => integer 5739192
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4201
        "start_memory" => integer 5758368
        "stop_time" => float 1496070787.4202
        "stop_memory" => integer 5758928
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4202
        "start_memory" => integer 5762424
        "stop_time" => float 1496070787.4203
        "stop_memory" => integer 5763064
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.421
        "start_memory" => integer 5822560
        "stop_time" => float 1496070787.4211
        "stop_memory" => integer 5823128
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4212
        "start_memory" => integer 5826640
        "stop_time" => float 1496070787.4212
        "stop_memory" => integer 5827240
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4223
        "start_memory" => integer 5896424
        "stop_time" => float 1496070787.4224
        "stop_memory" => integer 5897064
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4225
        "start_memory" => integer 5900608
        "stop_time" => float 1496070787.4226
        "stop_memory" => integer 5901192
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4237
        "start_memory" => integer 5919240
        "stop_time" => float 1496070787.4237
        "stop_memory" => integer 5919848
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.424
        "start_memory" => integer 5885760
        "stop_time" => float 1496070787.4241
        "stop_memory" => integer 5888080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4245
        "start_memory" => integer 5924272
        "stop_time" => float 1496070787.4246
        "stop_memory" => integer 5925936
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1496070787.4246
        "start_memory" => integer 5925568
        "stop_time" => float 1496070787.4247
        "stop_memory" => integer 5927232
    )
)

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'],
	);
}