Modules

Profiler
extends 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/profiler.php on line 3.

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(20) ""guide/api/Profiler""
        "start_time" => float 1485079478.292
        "start_memory" => integer 1116192
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.292
        "start_memory" => integer 1118424
        "stop_time" => float 1485079478.2921
        "stop_memory" => integer 1119112
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2922
        "start_memory" => integer 1122664
        "stop_time" => float 1485079478.2923
        "stop_memory" => integer 1123288
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2933
        "start_memory" => integer 1199720
        "stop_time" => float 1485079478.2934
        "stop_memory" => integer 1200296
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2935
        "start_memory" => integer 1203808
        "stop_time" => float 1485079478.2936
        "stop_memory" => integer 1204400
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2938
        "start_memory" => integer 1212360
        "stop_time" => float 1485079478.2938
        "stop_memory" => integer 1212912
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.294
        "start_memory" => integer 1216384
        "stop_time" => float 1485079478.294
        "stop_memory" => integer 1216968
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2943
        "start_memory" => integer 1225856
        "stop_time" => float 1485079478.2944
        "stop_memory" => integer 1226416
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2945
        "start_memory" => integer 1229856
        "stop_time" => float 1485079478.2945
        "stop_memory" => integer 1230504
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2958
        "start_memory" => integer 1325328
        "stop_time" => float 1485079478.2959
        "stop_memory" => integer 1325904
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.296
        "start_memory" => integer 1329384
        "stop_time" => float 1485079478.296
        "stop_memory" => integer 1329976
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2963
        "start_memory" => integer 1341760
        "stop_time" => float 1485079478.2964
        "stop_memory" => integer 1342312
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2965
        "start_memory" => integer 1345736
        "stop_time" => float 1485079478.2965
        "stop_memory" => integer 1346304
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.297
        "start_memory" => integer 1380696
        "stop_time" => float 1485079478.297
        "stop_memory" => integer 1381296
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2971
        "start_memory" => integer 1382368
        "stop_time" => float 1485079478.2972
        "stop_memory" => integer 1382904
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2972
        "start_memory" => integer 1386312
        "stop_time" => float 1485079478.2973
        "stop_memory" => integer 1386888
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2977
        "start_memory" => integer 1406136
        "stop_time" => float 1485079478.2977
        "stop_memory" => integer 1406840
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2978
        "start_memory" => integer 1410264
        "stop_time" => float 1485079478.2979
        "stop_memory" => integer 1410832
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2989
        "start_memory" => integer 1506448
        "stop_time" => float 1485079478.299
        "stop_memory" => integer 1507048
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2991
        "start_memory" => integer 1510552
        "stop_time" => float 1485079478.2992
        "stop_memory" => integer 1511152
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2997
        "start_memory" => integer 1550456
        "stop_time" => float 1485079478.2998
        "stop_memory" => integer 1550960
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.2998
        "start_memory" => integer 1551576
        "stop_time" => float 1485079478.2999
        "stop_memory" => integer 1552152
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3045
        "start_memory" => integer 1951320
        "stop_time" => float 1485079478.3046
        "stop_memory" => integer 1951904
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3047
        "start_memory" => integer 1955408
        "stop_time" => float 1485079478.3048
        "stop_memory" => integer 1956008
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3049
        "start_memory" => integer 1957640
        "stop_time" => float 1485079478.305
        "stop_memory" => integer 1958240
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3051
        "start_memory" => integer 1961752
        "stop_time" => float 1485079478.3052
        "stop_memory" => integer 1962328
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3055
        "start_memory" => integer 1991976
        "stop_time" => float 1485079478.3056
        "stop_memory" => integer 1992536
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3057
        "start_memory" => integer 1996040
        "stop_time" => float 1485079478.3057
        "stop_memory" => integer 1996640
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3068
        "start_memory" => integer 2058952
        "stop_time" => float 1485079478.3068
        "stop_memory" => integer 2059504
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.307
        "start_memory" => integer 2062936
        "stop_time" => float 1485079478.307
        "stop_memory" => integer 2063528
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3092
        "start_memory" => integer 2122440
        "stop_time" => float 1485079478.3094
        "stop_memory" => integer 2123056
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3904
        "start_memory" => integer 2163912
        "stop_time" => float 1485079478.3904
        "stop_memory" => integer 2164488
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3906
        "start_memory" => integer 2167912
        "stop_time" => float 1485079478.3906
        "stop_memory" => integer 2168752
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3915
        "start_memory" => integer 2195000
        "stop_time" => float 1485079478.3915
        "stop_memory" => integer 2195576
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3916
        "start_memory" => integer 2199056
        "stop_time" => float 1485079478.3917
        "stop_memory" => integer 2199648
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3931
        "start_memory" => integer 2216944
        "stop_time" => float 1485079478.3932
        "stop_memory" => integer 2217512
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3932
        "start_memory" => integer 2220984
        "stop_time" => float 1485079478.3933
        "stop_memory" => integer 2221576
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3942
        "start_memory" => integer 2265064
        "stop_time" => float 1485079478.3943
        "stop_memory" => integer 2265664
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3945
        "start_memory" => integer 2277184
        "stop_time" => float 1485079478.3945
        "stop_memory" => integer 2277760
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3946
        "start_memory" => integer 2281304
        "stop_time" => float 1485079478.3946
        "stop_memory" => integer 2281888
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3953
        "start_memory" => integer 2319880
        "stop_time" => float 1485079478.3953
        "stop_memory" => integer 2320480
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3956
        "start_memory" => integer 2332600
        "stop_time" => float 1485079478.3956
        "stop_memory" => integer 2333176
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3961
        "start_memory" => integer 2360192
        "stop_time" => float 1485079478.3962
        "stop_memory" => integer 2360792
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3964
        "start_memory" => integer 2368608
        "stop_time" => float 1485079478.3964
        "stop_memory" => integer 2369184
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3968
        "start_memory" => integer 2382336
        "stop_time" => float 1485079478.3968
        "stop_memory" => integer 2382936
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.397
        "start_memory" => integer 2389952
        "stop_time" => float 1485079478.397
        "stop_memory" => integer 2390544
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3974
        "start_memory" => integer 2403848
        "stop_time" => float 1485079478.3975
        "stop_memory" => integer 2404440
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3978
        "start_memory" => integer 2418072
        "stop_time" => float 1485079478.3978
        "stop_memory" => integer 2418664
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3981
        "start_memory" => integer 2428144
        "stop_time" => float 1485079478.3981
        "stop_memory" => integer 2428736
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3984
        "start_memory" => integer 2437408
        "stop_time" => float 1485079478.3984
        "stop_memory" => integer 2438000
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3989
        "start_memory" => integer 2483344
        "stop_time" => float 1485079478.3989
        "stop_memory" => integer 2483920
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3994
        "start_memory" => integer 2506848
        "stop_time" => float 1485079478.3994
        "stop_memory" => integer 2507448
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.3998
        "start_memory" => integer 2520744
        "stop_time" => float 1485079478.3998
        "stop_memory" => integer 2521320
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4002
        "start_memory" => integer 2540520
        "stop_time" => float 1485079478.4002
        "stop_memory" => integer 2541104
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4006
        "start_memory" => integer 2554760
        "stop_time" => float 1485079478.4006
        "stop_memory" => integer 2555328
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4007
        "start_memory" => integer 2558784
        "stop_time" => float 1485079478.4007
        "stop_memory" => integer 2559368
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4011
        "start_memory" => integer 2581568
        "stop_time" => float 1485079478.4012
        "stop_memory" => integer 2582128
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4013
        "start_memory" => integer 2585560
        "stop_time" => float 1485079478.4013
        "stop_memory" => integer 2586144
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.404
        "start_memory" => integer 2680072
        "stop_time" => float 1485079478.404
        "stop_memory" => integer 2680648
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4117
        "start_memory" => integer 2711224
        "stop_time" => float 1485079478.4118
        "stop_memory" => integer 2711800
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4119
        "start_memory" => integer 2715280
        "stop_time" => float 1485079478.4119
        "stop_memory" => integer 2715872
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.416
        "start_memory" => integer 2735008
        "stop_time" => float 1485079478.416
        "stop_memory" => integer 2735592
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4161
        "start_memory" => integer 2739144
        "stop_time" => float 1485079478.4161
        "stop_memory" => integer 2739744
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4205
        "start_memory" => integer 2758928
        "stop_time" => float 1485079478.4205
        "stop_memory" => integer 2759488
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4206
        "start_memory" => integer 2762968
        "stop_time" => float 1485079478.4207
        "stop_memory" => integer 2764072
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4214
        "start_memory" => integer 2818600
        "stop_time" => float 1485079478.4215
        "stop_memory" => integer 2819200
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4261
        "start_memory" => integer 2826512
        "stop_time" => float 1485079478.4261
        "stop_memory" => integer 2827088
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4262
        "start_memory" => integer 2830616
        "stop_time" => float 1485079478.4263
        "stop_memory" => integer 2831216
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4404
        "start_memory" => integer 2870880
        "stop_time" => float 1485079478.4404
        "stop_memory" => integer 2871456
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4405
        "start_memory" => integer 2874984
        "stop_time" => float 1485079478.4406
        "stop_memory" => integer 2875584
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4407
        "start_memory" => integer 2891552
        "stop_time" => float 1485079478.4408
        "stop_memory" => integer 2892128
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4414
        "start_memory" => integer 2899448
        "stop_time" => float 1485079478.4414
        "stop_memory" => integer 2900016
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4415
        "start_memory" => integer 2903488
        "stop_time" => float 1485079478.4416
        "stop_memory" => integer 2904080
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4427
        "start_memory" => integer 2953552
        "stop_time" => float 1485079478.4427
        "stop_memory" => integer 2954136
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4428
        "start_memory" => integer 2957640
        "stop_time" => float 1485079478.4429
        "stop_memory" => integer 2958240
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4479
        "start_memory" => integer 2977640
        "stop_time" => float 1485079478.4479
        "stop_memory" => integer 2978200
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.448
        "start_memory" => integer 2981696
        "stop_time" => float 1485079478.4481
        "stop_memory" => integer 2982288
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4487
        "start_memory" => integer 2997440
        "stop_time" => float 1485079478.4488
        "stop_memory" => integer 2997976
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4489
        "start_memory" => integer 3001384
        "stop_time" => float 1485079478.449
        "stop_memory" => integer 3001960
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4504
        "start_memory" => integer 3008632
        "stop_time" => float 1485079478.4505
        "stop_memory" => integer 3009232
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4506
        "start_memory" => integer 3012744
        "stop_time" => float 1485079478.4506
        "stop_memory" => integer 3013344
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4543
        "start_memory" => integer 3048392
        "stop_time" => float 1485079478.4543
        "stop_memory" => integer 3048984
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4549
        "start_memory" => integer 3056680
        "stop_time" => float 1485079478.455
        "stop_memory" => integer 3057240
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4551
        "start_memory" => integer 3060728
        "stop_time" => float 1485079478.4551
        "stop_memory" => integer 3061320
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4586
        "start_memory" => integer 3078960
        "stop_time" => float 1485079478.4586
        "stop_memory" => integer 3079544
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4604
        "start_memory" => integer 3084144
        "stop_time" => float 1485079478.4605
        "stop_memory" => integer 3084712
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4606
        "start_memory" => integer 3088176
        "stop_time" => float 1485079478.4606
        "stop_memory" => integer 3088768
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4633
        "start_memory" => integer 3182800
        "stop_time" => float 1485079478.4634
        "stop_memory" => integer 3183400
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4634
        "start_memory" => integer 3186952
        "stop_time" => float 1485079478.4635
        "stop_memory" => integer 3187544
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.464
        "start_memory" => integer 3201120
        "stop_time" => float 1485079478.4641
        "stop_memory" => integer 3201712
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4642
        "start_memory" => integer 3205264
        "stop_time" => float 1485079478.4642
        "stop_memory" => integer 3205872
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4657
        "start_memory" => integer 3210904
        "stop_time" => float 1485079478.4658
        "stop_memory" => integer 3211472
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4659
        "start_memory" => integer 3215000
        "stop_time" => float 1485079478.4659
        "stop_memory" => integer 3215600
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4673
        "start_memory" => integer 3310408
        "stop_time" => float 1485079478.4674
        "stop_memory" => integer 3311000
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4675
        "start_memory" => integer 3314552
        "stop_time" => float 1485079478.4675
        "stop_memory" => integer 3315160
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4677
        "start_memory" => integer 3327200
        "stop_time" => float 1485079478.4678
        "stop_memory" => integer 3327768
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4679
        "start_memory" => integer 3331272
        "stop_time" => float 1485079478.468
        "stop_memory" => integer 3331896
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4691
        "start_memory" => integer 3375536
        "stop_time" => float 1485079478.4692
        "stop_memory" => integer 3376112
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4692
        "start_memory" => integer 3379632
        "stop_time" => float 1485079478.4693
        "stop_memory" => integer 3380232
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4703
        "start_memory" => integer 3424864
        "stop_time" => float 1485079478.4703
        "stop_memory" => integer 3425440
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4704
        "start_memory" => integer 3428944
        "stop_time" => float 1485079478.4705
        "stop_memory" => integer 3429544
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4715
        "start_memory" => integer 3456856
        "stop_time" => float 1485079478.4716
        "stop_memory" => integer 3457448
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4717
        "start_memory" => integer 3461008
        "stop_time" => float 1485079478.4718
        "stop_memory" => integer 3461616
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4729
        "start_memory" => integer 3497848
        "stop_time" => float 1485079478.4729
        "stop_memory" => integer 3498448
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.473
        "start_memory" => integer 3502080
        "stop_time" => float 1485079478.4731
        "stop_memory" => integer 3502696
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4733
        "start_memory" => integer 3514840
        "stop_time" => float 1485079478.4734
        "stop_memory" => integer 3515432
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4735
        "start_memory" => integer 3519056
        "stop_time" => float 1485079478.4735
        "stop_memory" => integer 3519672
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4745
        "start_memory" => integer 3571792
        "stop_time" => float 1485079478.4746
        "stop_memory" => integer 3572384
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4747
        "start_memory" => integer 3575992
        "stop_time" => float 1485079478.4748
        "stop_memory" => integer 3576608
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4759
        "start_memory" => integer 3609200
        "stop_time" => float 1485079478.4759
        "stop_memory" => integer 3609792
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.476
        "start_memory" => integer 3613416
        "stop_time" => float 1485079478.476
        "stop_memory" => integer 3614032
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.477
        "start_memory" => integer 3642656
        "stop_time" => float 1485079478.4771
        "stop_memory" => integer 3643248
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4772
        "start_memory" => integer 3646856
        "stop_time" => float 1485079478.4772
        "stop_memory" => integer 3647472
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4786
        "start_memory" => integer 3723392
        "stop_time" => float 1485079478.4787
        "stop_memory" => integer 3723984
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4788
        "start_memory" => integer 3727592
        "stop_time" => float 1485079478.4789
        "stop_memory" => integer 3728208
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.481
        "start_memory" => integer 3764768
        "stop_time" => float 1485079478.4811
        "stop_memory" => integer 3765344
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4812
        "start_memory" => integer 3768904
        "stop_time" => float 1485079478.4813
        "stop_memory" => integer 3769512
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4821
        "start_memory" => integer 3787840
        "stop_time" => float 1485079478.4822
        "stop_memory" => integer 3788376
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4823
        "start_memory" => integer 3791824
        "stop_time" => float 1485079478.4824
        "stop_memory" => integer 3792392
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4837
        "start_memory" => integer 3861952
        "stop_time" => float 1485079478.4838
        "stop_memory" => integer 3862536
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4839
        "start_memory" => integer 3865992
        "stop_time" => float 1485079478.4839
        "stop_memory" => integer 3866568
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4883
        "start_memory" => integer 3880768
        "stop_time" => float 1485079478.4884
        "stop_memory" => integer 3881328
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4885
        "start_memory" => integer 3884760
        "stop_time" => float 1485079478.4886
        "stop_memory" => integer 3885344
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4913
        "start_memory" => integer 3907184
        "stop_time" => float 1485079478.4913
        "stop_memory" => integer 3907744
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4914
        "start_memory" => integer 3911168
        "stop_time" => float 1485079478.4915
        "stop_memory" => integer 3911736
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4924
        "start_memory" => integer 3934880
        "stop_time" => float 1485079478.4924
        "stop_memory" => integer 3935448
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4925
        "start_memory" => integer 3938880
        "stop_time" => float 1485079478.4926
        "stop_memory" => integer 3939448
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4933
        "start_memory" => integer 3965400
        "stop_time" => float 1485079478.4934
        "stop_memory" => integer 3965968
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4935
        "start_memory" => integer 3969392
        "stop_time" => float 1485079478.4936
        "stop_memory" => integer 3970984
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4949
        "start_memory" => integer 4018096
        "stop_time" => float 1485079478.495
        "stop_memory" => integer 4018664
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4951
        "start_memory" => integer 4022104
        "stop_time" => float 1485079478.4952
        "stop_memory" => integer 4022688
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4973
        "start_memory" => integer 4037232
        "stop_time" => float 1485079478.4974
        "stop_memory" => integer 4037792
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4975
        "start_memory" => integer 4041240
        "stop_time" => float 1485079478.4976
        "stop_memory" => integer 4041808
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.499
        "start_memory" => integer 4058440
        "stop_time" => float 1485079478.499
        "stop_memory" => integer 4059024
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4991
        "start_memory" => integer 4062504
        "stop_time" => float 1485079478.4992
        "stop_memory" => integer 4063096
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.4999
        "start_memory" => integer 4079560
        "stop_time" => float 1485079478.5
        "stop_memory" => integer 4080128
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5001
        "start_memory" => integer 4083632
        "stop_time" => float 1485079478.5002
        "stop_memory" => integer 4084224
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5009
        "start_memory" => integer 4097808
        "stop_time" => float 1485079478.5009
        "stop_memory" => integer 4098376
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.501
        "start_memory" => integer 4101880
        "stop_time" => float 1485079478.5011
        "stop_memory" => integer 4102472
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5018
        "start_memory" => integer 4116072
        "stop_time" => float 1485079478.5019
        "stop_memory" => integer 4116640
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.502
        "start_memory" => integer 4120144
        "stop_time" => float 1485079478.502
        "stop_memory" => integer 4120736
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5027
        "start_memory" => integer 4134336
        "stop_time" => float 1485079478.5027
        "stop_memory" => integer 4134904
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5028
        "start_memory" => integer 4138408
        "stop_time" => float 1485079478.5029
        "stop_memory" => integer 4139000
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5036
        "start_memory" => integer 4152584
        "stop_time" => float 1485079478.5036
        "stop_memory" => integer 4153152
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5037
        "start_memory" => integer 4156656
        "stop_time" => float 1485079478.5037
        "stop_memory" => integer 4157248
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5044
        "start_memory" => integer 4170832
        "stop_time" => float 1485079478.5045
        "stop_memory" => integer 4171400
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5046
        "start_memory" => integer 4174904
        "stop_time" => float 1485079478.5047
        "stop_memory" => integer 4175496
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5053
        "start_memory" => integer 4189096
        "stop_time" => float 1485079478.5054
        "stop_memory" => integer 4189664
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5055
        "start_memory" => integer 4193168
        "stop_time" => float 1485079478.5056
        "stop_memory" => integer 4193760
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5062
        "start_memory" => integer 4207344
        "stop_time" => float 1485079478.5063
        "stop_memory" => integer 4207912
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5064
        "start_memory" => integer 4211416
        "stop_time" => float 1485079478.5065
        "stop_memory" => integer 4212008
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5071
        "start_memory" => integer 4225688
        "stop_time" => float 1485079478.5072
        "stop_memory" => integer 4226256
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5073
        "start_memory" => integer 4229760
        "stop_time" => float 1485079478.5073
        "stop_memory" => integer 4230352
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5081
        "start_memory" => integer 4243936
        "stop_time" => float 1485079478.5082
        "stop_memory" => integer 4244504
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5083
        "start_memory" => integer 4248008
        "stop_time" => float 1485079478.5083
        "stop_memory" => integer 4248600
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.509
        "start_memory" => integer 4262184
        "stop_time" => float 1485079478.509
        "stop_memory" => integer 4262752
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5091
        "start_memory" => integer 4266256
        "stop_time" => float 1485079478.5092
        "stop_memory" => integer 4266848
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5099
        "start_memory" => integer 4280416
        "stop_time" => float 1485079478.5099
        "stop_memory" => integer 4280984
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.51
        "start_memory" => integer 4284488
        "stop_time" => float 1485079478.5101
        "stop_memory" => integer 4285080
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5107
        "start_memory" => integer 4298664
        "stop_time" => float 1485079478.5108
        "stop_memory" => integer 4299232
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5109
        "start_memory" => integer 4302736
        "stop_time" => float 1485079478.511
        "stop_memory" => integer 4303328
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5116
        "start_memory" => integer 4316928
        "stop_time" => float 1485079478.5116
        "stop_memory" => integer 4317496
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5117
        "start_memory" => integer 4321000
        "stop_time" => float 1485079478.5118
        "stop_memory" => integer 4321592
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5124
        "start_memory" => integer 4335208
        "stop_time" => float 1485079478.5125
        "stop_memory" => integer 4335776
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5126
        "start_memory" => integer 4339280
        "stop_time" => float 1485079478.5127
        "stop_memory" => integer 4339872
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5134
        "start_memory" => integer 4353472
        "stop_time" => float 1485079478.5134
        "stop_memory" => integer 4354040
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5135
        "start_memory" => integer 4357544
        "stop_time" => float 1485079478.5136
        "stop_memory" => integer 4358136
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5141
        "start_memory" => integer 4371864
        "stop_time" => float 1485079478.5142
        "stop_memory" => integer 4372432
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5143
        "start_memory" => integer 4375936
        "stop_time" => float 1485079478.5144
        "stop_memory" => integer 4376528
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5151
        "start_memory" => integer 4390144
        "stop_time" => float 1485079478.5151
        "stop_memory" => integer 4390712
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5152
        "start_memory" => integer 4394216
        "stop_time" => float 1485079478.5153
        "stop_memory" => integer 4394808
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.516
        "start_memory" => integer 4408408
        "stop_time" => float 1485079478.5161
        "stop_memory" => integer 4408976
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5161
        "start_memory" => integer 4412480
        "stop_time" => float 1485079478.5162
        "stop_memory" => integer 4413072
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5168
        "start_memory" => integer 4426672
        "stop_time" => float 1485079478.5169
        "stop_memory" => integer 4427240
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.517
        "start_memory" => integer 4430744
        "stop_time" => float 1485079478.5171
        "stop_memory" => integer 4431336
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5178
        "start_memory" => integer 4444920
        "stop_time" => float 1485079478.5178
        "stop_memory" => integer 4445488
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5179
        "start_memory" => integer 4448992
        "stop_time" => float 1485079478.518
        "stop_memory" => integer 4449584
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5186
        "start_memory" => integer 4463168
        "stop_time" => float 1485079478.5187
        "stop_memory" => integer 4463736
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5188
        "start_memory" => integer 4467240
        "stop_time" => float 1485079478.5188
        "stop_memory" => integer 4467832
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5195
        "start_memory" => integer 4481448
        "stop_time" => float 1485079478.5195
        "stop_memory" => integer 4482016
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5196
        "start_memory" => integer 4485520
        "stop_time" => float 1485079478.5197
        "stop_memory" => integer 4486112
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5204
        "start_memory" => integer 4499696
        "stop_time" => float 1485079478.5205
        "stop_memory" => integer 4500264
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5205
        "start_memory" => integer 4503768
        "stop_time" => float 1485079478.5206
        "stop_memory" => integer 4504360
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5222
        "start_memory" => integer 4518184
        "stop_time" => float 1485079478.5223
        "stop_memory" => integer 4518752
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5224
        "start_memory" => integer 4522256
        "stop_time" => float 1485079478.5224
        "stop_memory" => integer 4522848
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.525
        "start_memory" => integer 4545776
        "stop_time" => float 1485079478.5251
        "stop_memory" => integer 4546344
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5252
        "start_memory" => integer 4549808
        "stop_time" => float 1485079478.5252
        "stop_memory" => integer 4550384
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5267
        "start_memory" => integer 4631600
        "stop_time" => float 1485079478.5268
        "stop_memory" => integer 4632176
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5269
        "start_memory" => integer 4635640
        "stop_time" => float 1485079478.527
        "stop_memory" => integer 4636232
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5288
        "start_memory" => integer 4737408
        "stop_time" => float 1485079478.5288
        "stop_memory" => integer 4737960
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5289
        "start_memory" => integer 4741440
        "stop_time" => float 1485079478.529
        "stop_memory" => integer 4742024
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5314
        "start_memory" => integer 4774992
        "stop_time" => float 1485079478.5314
        "stop_memory" => integer 4775584
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5315
        "start_memory" => integer 4779080
        "stop_time" => float 1485079478.5316
        "stop_memory" => integer 4779680
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5324
        "start_memory" => integer 4805248
        "stop_time" => float 1485079478.5324
        "stop_memory" => integer 4805840
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5325
        "start_memory" => integer 4809392
        "stop_time" => float 1485079478.5326
        "stop_memory" => integer 4810000
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5338
        "start_memory" => integer 4828752
        "stop_time" => float 1485079478.5339
        "stop_memory" => integer 4829320
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.534
        "start_memory" => integer 4832832
        "stop_time" => float 1485079478.5341
        "stop_memory" => integer 4833432
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5359
        "start_memory" => integer 4852064
        "stop_time" => float 1485079478.536
        "stop_memory" => integer 4852656
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5392
        "start_memory" => integer 4862432
        "stop_time" => float 1485079478.5393
        "stop_memory" => integer 4863008
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5395
        "start_memory" => integer 4871712
        "stop_time" => float 1485079478.5396
        "stop_memory" => integer 4872296
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5411
        "start_memory" => integer 4881672
        "stop_time" => float 1485079478.5412
        "stop_memory" => integer 4882224
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5413
        "start_memory" => integer 4885736
        "stop_time" => float 1485079478.5413
        "stop_memory" => integer 4886320
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5419
        "start_memory" => integer 4890320
        "stop_time" => float 1485079478.542
        "stop_memory" => integer 4890880
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5421
        "start_memory" => integer 4894368
        "stop_time" => float 1485079478.5422
        "stop_memory" => integer 4894992
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5427
        "start_memory" => integer 4898904
        "stop_time" => float 1485079478.5428
        "stop_memory" => integer 4899472
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5429
        "start_memory" => integer 4902968
        "stop_time" => float 1485079478.543
        "stop_memory" => integer 4903552
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.544
        "start_memory" => integer 4912520
        "stop_time" => float 1485079478.5441
        "stop_memory" => integer 4913096
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5442
        "start_memory" => integer 4916568
        "stop_time" => float 1485079478.5443
        "stop_memory" => integer 4917160
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5448
        "start_memory" => integer 4919304
        "stop_time" => float 1485079478.5449
        "stop_memory" => integer 4919912
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.545
        "start_memory" => integer 4926664
        "stop_time" => float 1485079478.5451
        "stop_memory" => integer 4927216
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5452
        "start_memory" => integer 4930688
        "stop_time" => float 1485079478.5452
        "stop_memory" => integer 4931272
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5481
        "start_memory" => integer 5162888
        "stop_time" => float 1485079478.5482
        "stop_memory" => integer 5163480
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5491
        "start_memory" => integer 5220152
        "stop_time" => float 1485079478.5491
        "stop_memory" => integer 5220736
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5498
        "start_memory" => integer 5255136
        "stop_time" => float 1485079478.5498
        "stop_memory" => integer 5255720
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5499
        "start_memory" => integer 5259240
        "stop_time" => float 1485079478.5499
        "stop_memory" => integer 5259840
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5504
        "start_memory" => integer 5265848
        "stop_time" => float 1485079478.5505
        "stop_memory" => integer 5266408
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.551
        "start_memory" => integer 5292496
        "stop_time" => float 1485079478.5511
        "stop_memory" => integer 5293072
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5516
        "start_memory" => integer 5321984
        "stop_time" => float 1485079478.5517
        "stop_memory" => integer 5322576
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5522
        "start_memory" => integer 5349288
        "stop_time" => float 1485079478.5523
        "stop_memory" => integer 5349824
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5523
        "start_memory" => integer 5353328
        "stop_time" => float 1485079478.5524
        "stop_memory" => integer 5353912
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5547
        "start_memory" => integer 5381088
        "stop_time" => float 1485079478.5548
        "stop_memory" => integer 5381704
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5548
        "start_memory" => integer 5385552
        "stop_time" => float 1485079478.5549
        "stop_memory" => integer 5386200
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5573
        "start_memory" => integer 5417920
        "stop_time" => float 1485079478.5574
        "stop_memory" => integer 5418488
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5574
        "start_memory" => integer 5422088
        "stop_time" => float 1485079478.5575
        "stop_memory" => integer 5422704
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5616
        "start_memory" => integer 5487472
        "stop_time" => float 1485079478.5617
        "stop_memory" => integer 5488008
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5618
        "start_memory" => integer 5491576
        "stop_time" => float 1485079478.5619
        "stop_memory" => integer 5492160
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5624
        "start_memory" => integer 5502312
        "stop_time" => float 1485079478.5624
        "stop_memory" => integer 5502920
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5625
        "start_memory" => integer 5506408
        "stop_time" => float 1485079478.5626
        "stop_memory" => integer 5506992
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5634
        "start_memory" => integer 5551536
        "stop_time" => float 1485079478.5634
        "stop_memory" => integer 5552136
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5635
        "start_memory" => integer 5555672
        "stop_time" => float 1485079478.5636
        "stop_memory" => integer 5556264
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5642
        "start_memory" => integer 5576608
        "stop_time" => float 1485079478.5642
        "stop_memory" => integer 5577240
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5643
        "start_memory" => integer 5580784
        "stop_time" => float 1485079478.5643
        "stop_memory" => integer 5581384
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5655
        "start_memory" => integer 5630024
        "stop_time" => float 1485079478.5656
        "stop_memory" => integer 5630624
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5657
        "start_memory" => integer 5634120
        "stop_time" => float 1485079478.5658
        "stop_memory" => integer 5634712
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5663
        "start_memory" => integer 5657000
        "stop_time" => float 1485079478.5664
        "stop_memory" => integer 5657568
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5665
        "start_memory" => integer 5661088
        "stop_time" => float 1485079478.5665
        "stop_memory" => integer 5661680
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5677
        "start_memory" => integer 5734280
        "stop_time" => float 1485079478.5678
        "stop_memory" => integer 5734896
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5679
        "start_memory" => integer 5738368
        "stop_time" => float 1485079478.5679
        "stop_memory" => integer 5738952
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5726
        "start_memory" => integer 5758088
        "stop_time" => float 1485079478.5726
        "stop_memory" => integer 5758648
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5727
        "start_memory" => integer 5762120
        "stop_time" => float 1485079478.5728
        "stop_memory" => integer 5762736
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5737
        "start_memory" => integer 5822224
        "stop_time" => float 1485079478.5738
        "stop_memory" => integer 5822792
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5738
        "start_memory" => integer 5826312
        "stop_time" => float 1485079478.5739
        "stop_memory" => integer 5826896
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.575
        "start_memory" => integer 5895920
        "stop_time" => float 1485079478.5751
        "stop_memory" => integer 5896568
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5751
        "start_memory" => integer 5900144
        "stop_time" => float 1485079478.5752
        "stop_memory" => integer 5900704
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5761
        "start_memory" => integer 5918776
        "stop_time" => float 1485079478.5762
        "stop_memory" => integer 5919400
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5765
        "start_memory" => integer 5885320
        "stop_time" => float 1485079478.5765
        "stop_memory" => integer 5887640
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5772
        "start_memory" => integer 5923840
        "stop_time" => float 1485079478.5772
        "stop_memory" => integer 5925504
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485079478.5772
        "start_memory" => integer 5925136
        "stop_time" => float 1485079478.5773
        "stop_memory" => integer 5926800
    )
)

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