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 1438576637.3089
        "start_memory" => integer 1116528
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3089
        "start_memory" => integer 1118776
        "stop_time" => float 1438576637.3089
        "stop_memory" => integer 1119464
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.309
        "start_memory" => integer 1123032
        "stop_time" => float 1438576637.3091
        "stop_memory" => integer 1123640
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3097
        "start_memory" => integer 1200104
        "stop_time" => float 1438576637.3098
        "stop_memory" => integer 1200656
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3099
        "start_memory" => integer 1204160
        "stop_time" => float 1438576637.3099
        "stop_memory" => integer 1204752
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.31
        "start_memory" => integer 1212720
        "stop_time" => float 1438576637.3101
        "stop_memory" => integer 1213272
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3101
        "start_memory" => integer 1216736
        "stop_time" => float 1438576637.3102
        "stop_memory" => integer 1217320
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3104
        "start_memory" => integer 1226176
        "stop_time" => float 1438576637.3104
        "stop_memory" => integer 1226736
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3105
        "start_memory" => integer 1230176
        "stop_time" => float 1438576637.3105
        "stop_memory" => integer 1230832
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3115
        "start_memory" => integer 1325688
        "stop_time" => float 1438576637.3115
        "stop_memory" => integer 1326280
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3116
        "start_memory" => integer 1329744
        "stop_time" => float 1438576637.3116
        "stop_memory" => integer 1330336
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3118
        "start_memory" => integer 1342120
        "stop_time" => float 1438576637.3119
        "stop_memory" => integer 1342672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.312
        "start_memory" => integer 1346096
        "stop_time" => float 1438576637.312
        "stop_memory" => integer 1346664
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3123
        "start_memory" => integer 1381056
        "stop_time" => float 1438576637.3124
        "stop_memory" => integer 1381656
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3124
        "start_memory" => integer 1382728
        "stop_time" => float 1438576637.3124
        "stop_memory" => integer 1383264
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3125
        "start_memory" => integer 1386672
        "stop_time" => float 1438576637.3126
        "stop_memory" => integer 1387248
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3129
        "start_memory" => integer 1406496
        "stop_time" => float 1438576637.3129
        "stop_memory" => integer 1407200
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.313
        "start_memory" => integer 1410624
        "stop_time" => float 1438576637.313
        "stop_memory" => integer 1411192
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3138
        "start_memory" => integer 1506800
        "stop_time" => float 1438576637.3139
        "stop_memory" => integer 1507400
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3139
        "start_memory" => integer 1510904
        "stop_time" => float 1438576637.314
        "stop_memory" => integer 1511504
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3144
        "start_memory" => integer 1550776
        "stop_time" => float 1438576637.3144
        "stop_memory" => integer 1551280
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3144
        "start_memory" => integer 1551920
        "stop_time" => float 1438576637.3145
        "stop_memory" => integer 1552496
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.318
        "start_memory" => integer 1951792
        "stop_time" => float 1438576637.3181
        "stop_memory" => integer 1952376
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3182
        "start_memory" => integer 1955880
        "stop_time" => float 1438576637.3182
        "stop_memory" => integer 1956480
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3183
        "start_memory" => integer 1958112
        "stop_time" => float 1438576637.3184
        "stop_memory" => integer 1958712
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3185
        "start_memory" => integer 1962224
        "stop_time" => float 1438576637.3185
        "stop_memory" => integer 1962800
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3188
        "start_memory" => integer 1992448
        "stop_time" => float 1438576637.3189
        "stop_memory" => integer 1993008
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3189
        "start_memory" => integer 1996512
        "stop_time" => float 1438576637.319
        "stop_memory" => integer 1997112
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3196
        "start_memory" => integer 2059160
        "stop_time" => float 1438576637.3197
        "stop_memory" => integer 2059712
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3198
        "start_memory" => integer 2063160
        "stop_time" => float 1438576637.3198
        "stop_memory" => integer 2063728
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3215
        "start_memory" => integer 2122888
        "stop_time" => float 1438576637.3215
        "stop_memory" => integer 2123504
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3784
        "start_memory" => integer 2164464
        "stop_time" => float 1438576637.3784
        "stop_memory" => integer 2165016
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3785
        "start_memory" => integer 2168440
        "stop_time" => float 1438576637.3785
        "stop_memory" => integer 2169280
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3791
        "start_memory" => integer 2195528
        "stop_time" => float 1438576637.3792
        "stop_memory" => integer 2196104
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3793
        "start_memory" => integer 2199584
        "stop_time" => float 1438576637.3793
        "stop_memory" => integer 2200176
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3798
        "start_memory" => integer 2217472
        "stop_time" => float 1438576637.3798
        "stop_memory" => integer 2218040
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3799
        "start_memory" => integer 2221512
        "stop_time" => float 1438576637.3799
        "stop_memory" => integer 2222104
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3812
        "start_memory" => integer 2265576
        "stop_time" => float 1438576637.3812
        "stop_memory" => integer 2266176
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3814
        "start_memory" => integer 2277696
        "stop_time" => float 1438576637.3814
        "stop_memory" => integer 2278272
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3815
        "start_memory" => integer 2281816
        "stop_time" => float 1438576637.3815
        "stop_memory" => integer 2282400
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3819
        "start_memory" => integer 2320392
        "stop_time" => float 1438576637.382
        "stop_memory" => integer 2320992
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3822
        "start_memory" => integer 2333112
        "stop_time" => float 1438576637.3822
        "stop_memory" => integer 2333688
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3826
        "start_memory" => integer 2360704
        "stop_time" => float 1438576637.3826
        "stop_memory" => integer 2361304
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3828
        "start_memory" => integer 2369120
        "stop_time" => float 1438576637.3828
        "stop_memory" => integer 2369696
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3831
        "start_memory" => integer 2382848
        "stop_time" => float 1438576637.3831
        "stop_memory" => integer 2383448
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3833
        "start_memory" => integer 2390464
        "stop_time" => float 1438576637.3833
        "stop_memory" => integer 2391056
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3835
        "start_memory" => integer 2404360
        "stop_time" => float 1438576637.3835
        "stop_memory" => integer 2404952
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3838
        "start_memory" => integer 2418584
        "stop_time" => float 1438576637.3838
        "stop_memory" => integer 2419176
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.384
        "start_memory" => integer 2428656
        "stop_time" => float 1438576637.384
        "stop_memory" => integer 2429248
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3842
        "start_memory" => integer 2437920
        "stop_time" => float 1438576637.3842
        "stop_memory" => integer 2438512
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3845
        "start_memory" => integer 2483872
        "stop_time" => float 1438576637.3845
        "stop_memory" => integer 2484448
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3849
        "start_memory" => integer 2507376
        "stop_time" => float 1438576637.3849
        "stop_memory" => integer 2507976
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3851
        "start_memory" => integer 2521272
        "stop_time" => float 1438576637.3851
        "stop_memory" => integer 2521848
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3854
        "start_memory" => integer 2541048
        "stop_time" => float 1438576637.3854
        "stop_memory" => integer 2541632
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3856
        "start_memory" => integer 2555288
        "stop_time" => float 1438576637.3857
        "stop_memory" => integer 2555856
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3857
        "start_memory" => integer 2559312
        "stop_time" => float 1438576637.3858
        "stop_memory" => integer 2559896
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.386
        "start_memory" => integer 2582096
        "stop_time" => float 1438576637.386
        "stop_memory" => integer 2582656
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3861
        "start_memory" => integer 2586088
        "stop_time" => float 1438576637.3861
        "stop_memory" => integer 2586672
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3881
        "start_memory" => integer 2680584
        "stop_time" => float 1438576637.3882
        "stop_memory" => integer 2681160
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3936
        "start_memory" => integer 2711736
        "stop_time" => float 1438576637.3937
        "stop_memory" => integer 2712312
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3938
        "start_memory" => integer 2715792
        "stop_time" => float 1438576637.3938
        "stop_memory" => integer 2716384
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3967
        "start_memory" => integer 2735520
        "stop_time" => float 1438576637.3968
        "stop_memory" => integer 2736104
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3969
        "start_memory" => integer 2739632
        "stop_time" => float 1438576637.3969
        "stop_memory" => integer 2740232
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.3999
        "start_memory" => integer 2759432
        "stop_time" => float 1438576637.4
        "stop_memory" => integer 2759992
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4001
        "start_memory" => integer 2763472
        "stop_time" => float 1438576637.4001
        "stop_memory" => integer 2764576
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4007
        "start_memory" => integer 2819088
        "stop_time" => float 1438576637.4007
        "stop_memory" => integer 2819688
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4039
        "start_memory" => integer 2827000
        "stop_time" => float 1438576637.404
        "stop_memory" => integer 2827576
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4041
        "start_memory" => integer 2831104
        "stop_time" => float 1438576637.4041
        "stop_memory" => integer 2831704
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4141
        "start_memory" => integer 2871368
        "stop_time" => float 1438576637.4142
        "stop_memory" => integer 2871944
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4143
        "start_memory" => integer 2875472
        "stop_time" => float 1438576637.4143
        "stop_memory" => integer 2876072
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4145
        "start_memory" => integer 2892024
        "stop_time" => float 1438576637.4145
        "stop_memory" => integer 2892600
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4149
        "start_memory" => integer 2899904
        "stop_time" => float 1438576637.4149
        "stop_memory" => integer 2900472
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.415
        "start_memory" => integer 2903944
        "stop_time" => float 1438576637.415
        "stop_memory" => integer 2904536
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4158
        "start_memory" => integer 2954000
        "stop_time" => float 1438576637.4158
        "stop_memory" => integer 2954584
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4159
        "start_memory" => integer 2958088
        "stop_time" => float 1438576637.4159
        "stop_memory" => integer 2958688
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4195
        "start_memory" => integer 2978088
        "stop_time" => float 1438576637.4195
        "stop_memory" => integer 2978648
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4196
        "start_memory" => integer 2982144
        "stop_time" => float 1438576637.4197
        "stop_memory" => integer 2982736
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4202
        "start_memory" => integer 2997888
        "stop_time" => float 1438576637.4202
        "stop_memory" => integer 2998424
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4203
        "start_memory" => integer 3001832
        "stop_time" => float 1438576637.4204
        "stop_memory" => integer 3002408
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4214
        "start_memory" => integer 3009080
        "stop_time" => float 1438576637.4215
        "stop_memory" => integer 3009680
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4216
        "start_memory" => integer 3013192
        "stop_time" => float 1438576637.4216
        "stop_memory" => integer 3013792
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.424
        "start_memory" => integer 3048840
        "stop_time" => float 1438576637.4241
        "stop_memory" => integer 3049432
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4245
        "start_memory" => integer 3057128
        "stop_time" => float 1438576637.4246
        "stop_memory" => integer 3057688
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4246
        "start_memory" => integer 3061176
        "stop_time" => float 1438576637.4247
        "stop_memory" => integer 3061768
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.427
        "start_memory" => integer 3079408
        "stop_time" => float 1438576637.4271
        "stop_memory" => integer 3079992
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4283
        "start_memory" => integer 3084592
        "stop_time" => float 1438576637.4284
        "stop_memory" => integer 3085160
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4284
        "start_memory" => integer 3088624
        "stop_time" => float 1438576637.4285
        "stop_memory" => integer 3089216
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4302
        "start_memory" => integer 3183256
        "stop_time" => float 1438576637.4303
        "stop_memory" => integer 3183856
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4304
        "start_memory" => integer 3187408
        "stop_time" => float 1438576637.4304
        "stop_memory" => integer 3188000
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4308
        "start_memory" => integer 3200888
        "stop_time" => float 1438576637.4308
        "stop_memory" => integer 3201480
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4309
        "start_memory" => integer 3205032
        "stop_time" => float 1438576637.4309
        "stop_memory" => integer 3205640
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4319
        "start_memory" => integer 3210672
        "stop_time" => float 1438576637.432
        "stop_memory" => integer 3211240
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.432
        "start_memory" => integer 3214744
        "stop_time" => float 1438576637.4321
        "stop_memory" => integer 3215344
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4331
        "start_memory" => integer 3310152
        "stop_time" => float 1438576637.4332
        "stop_memory" => integer 3310744
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4333
        "start_memory" => integer 3314296
        "stop_time" => float 1438576637.4333
        "stop_memory" => integer 3314904
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4335
        "start_memory" => integer 3326944
        "stop_time" => float 1438576637.4335
        "stop_memory" => integer 3327512
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4336
        "start_memory" => integer 3331016
        "stop_time" => float 1438576637.4336
        "stop_memory" => integer 3331640
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4344
        "start_memory" => integer 3375280
        "stop_time" => float 1438576637.4345
        "stop_memory" => integer 3375856
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4345
        "start_memory" => integer 3379376
        "stop_time" => float 1438576637.4346
        "stop_memory" => integer 3379976
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4353
        "start_memory" => integer 3424608
        "stop_time" => float 1438576637.4353
        "stop_memory" => integer 3425184
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4354
        "start_memory" => integer 3428688
        "stop_time" => float 1438576637.4354
        "stop_memory" => integer 3429288
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4361
        "start_memory" => integer 3456600
        "stop_time" => float 1438576637.4362
        "stop_memory" => integer 3457192
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4363
        "start_memory" => integer 3460752
        "stop_time" => float 1438576637.4363
        "stop_memory" => integer 3461360
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4371
        "start_memory" => integer 3497576
        "stop_time" => float 1438576637.4371
        "stop_memory" => integer 3498176
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4372
        "start_memory" => integer 3501808
        "stop_time" => float 1438576637.4372
        "stop_memory" => integer 3502424
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4374
        "start_memory" => integer 3514568
        "stop_time" => float 1438576637.4374
        "stop_memory" => integer 3515160
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4375
        "start_memory" => integer 3518784
        "stop_time" => float 1438576637.4375
        "stop_memory" => integer 3519400
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4383
        "start_memory" => integer 3571520
        "stop_time" => float 1438576637.4383
        "stop_memory" => integer 3572112
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4384
        "start_memory" => integer 3575720
        "stop_time" => float 1438576637.4384
        "stop_memory" => integer 3576336
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4392
        "start_memory" => integer 3608928
        "stop_time" => float 1438576637.4392
        "stop_memory" => integer 3609520
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4393
        "start_memory" => integer 3613144
        "stop_time" => float 1438576637.4393
        "stop_memory" => integer 3613760
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.44
        "start_memory" => integer 3642384
        "stop_time" => float 1438576637.44
        "stop_memory" => integer 3642976
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4401
        "start_memory" => integer 3646584
        "stop_time" => float 1438576637.4402
        "stop_memory" => integer 3647200
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4411
        "start_memory" => integer 3723120
        "stop_time" => float 1438576637.4412
        "stop_memory" => integer 3723712
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4413
        "start_memory" => integer 3727320
        "stop_time" => float 1438576637.4413
        "stop_memory" => integer 3727936
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4428
        "start_memory" => integer 3764440
        "stop_time" => float 1438576637.4429
        "stop_memory" => integer 3765016
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4429
        "start_memory" => integer 3768576
        "stop_time" => float 1438576637.443
        "stop_memory" => integer 3769184
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4436
        "start_memory" => integer 3787512
        "stop_time" => float 1438576637.4437
        "stop_memory" => integer 3788048
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4437
        "start_memory" => integer 3791496
        "stop_time" => float 1438576637.4438
        "stop_memory" => integer 3792064
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4448
        "start_memory" => integer 3861624
        "stop_time" => float 1438576637.4448
        "stop_memory" => integer 3862208
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4449
        "start_memory" => integer 3865664
        "stop_time" => float 1438576637.4449
        "stop_memory" => integer 3866240
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4479
        "start_memory" => integer 3880440
        "stop_time" => float 1438576637.448
        "stop_memory" => integer 3881000
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4481
        "start_memory" => integer 3884432
        "stop_time" => float 1438576637.4481
        "stop_memory" => integer 3885016
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4501
        "start_memory" => integer 3906856
        "stop_time" => float 1438576637.4502
        "stop_memory" => integer 3907416
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4502
        "start_memory" => integer 3910840
        "stop_time" => float 1438576637.4503
        "stop_memory" => integer 3911408
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4509
        "start_memory" => integer 3934552
        "stop_time" => float 1438576637.4509
        "stop_memory" => integer 3935120
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.451
        "start_memory" => integer 3938552
        "stop_time" => float 1438576637.4511
        "stop_memory" => integer 3939120
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4516
        "start_memory" => integer 3965056
        "stop_time" => float 1438576637.4517
        "stop_memory" => integer 3965624
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4517
        "start_memory" => integer 3969048
        "stop_time" => float 1438576637.4518
        "stop_memory" => integer 3970640
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4528
        "start_memory" => integer 4017784
        "stop_time" => float 1438576637.4528
        "stop_memory" => integer 4018352
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4529
        "start_memory" => integer 4021792
        "stop_time" => float 1438576637.453
        "stop_memory" => integer 4022376
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4544
        "start_memory" => integer 4036920
        "stop_time" => float 1438576637.4545
        "stop_memory" => integer 4037480
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4545
        "start_memory" => integer 4040928
        "stop_time" => float 1438576637.4546
        "stop_memory" => integer 4041496
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4555
        "start_memory" => integer 4058120
        "stop_time" => float 1438576637.4556
        "stop_memory" => integer 4058704
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4557
        "start_memory" => integer 4062184
        "stop_time" => float 1438576637.4557
        "stop_memory" => integer 4062776
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4562
        "start_memory" => integer 4078552
        "stop_time" => float 1438576637.4563
        "stop_memory" => integer 4079120
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4563
        "start_memory" => integer 4082624
        "stop_time" => float 1438576637.4564
        "stop_memory" => integer 4083216
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4569
        "start_memory" => integer 4096112
        "stop_time" => float 1438576637.4569
        "stop_memory" => integer 4096680
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.457
        "start_memory" => integer 4100184
        "stop_time" => float 1438576637.457
        "stop_memory" => integer 4100776
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4575
        "start_memory" => integer 4113688
        "stop_time" => float 1438576637.4575
        "stop_memory" => integer 4114256
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4576
        "start_memory" => integer 4117760
        "stop_time" => float 1438576637.4577
        "stop_memory" => integer 4118352
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4581
        "start_memory" => integer 4131264
        "stop_time" => float 1438576637.4582
        "stop_memory" => integer 4131832
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4582
        "start_memory" => integer 4135336
        "stop_time" => float 1438576637.4583
        "stop_memory" => integer 4135928
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4587
        "start_memory" => integer 4148824
        "stop_time" => float 1438576637.4588
        "stop_memory" => integer 4149392
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4589
        "start_memory" => integer 4152896
        "stop_time" => float 1438576637.4589
        "stop_memory" => integer 4153488
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4594
        "start_memory" => integer 4166384
        "stop_time" => float 1438576637.4594
        "stop_memory" => integer 4166952
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4595
        "start_memory" => integer 4170456
        "stop_time" => float 1438576637.4595
        "stop_memory" => integer 4171048
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.46
        "start_memory" => integer 4183960
        "stop_time" => float 1438576637.46
        "stop_memory" => integer 4184528
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4601
        "start_memory" => integer 4188032
        "stop_time" => float 1438576637.4602
        "stop_memory" => integer 4188624
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4606
        "start_memory" => integer 4201520
        "stop_time" => float 1438576637.4607
        "stop_memory" => integer 4202088
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4607
        "start_memory" => integer 4205592
        "stop_time" => float 1438576637.4608
        "stop_memory" => integer 4206184
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4612
        "start_memory" => integer 4219176
        "stop_time" => float 1438576637.4613
        "stop_memory" => integer 4219744
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4614
        "start_memory" => integer 4223248
        "stop_time" => float 1438576637.4614
        "stop_memory" => integer 4223840
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4619
        "start_memory" => integer 4236744
        "stop_time" => float 1438576637.4619
        "stop_memory" => integer 4237312
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.462
        "start_memory" => integer 4240816
        "stop_time" => float 1438576637.462
        "stop_memory" => integer 4241408
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4625
        "start_memory" => integer 4254304
        "stop_time" => float 1438576637.4625
        "stop_memory" => integer 4254872
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4626
        "start_memory" => integer 4258376
        "stop_time" => float 1438576637.4627
        "stop_memory" => integer 4258968
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4631
        "start_memory" => integer 4271848
        "stop_time" => float 1438576637.4632
        "stop_memory" => integer 4272416
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4632
        "start_memory" => integer 4275920
        "stop_time" => float 1438576637.4633
        "stop_memory" => integer 4276512
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4637
        "start_memory" => integer 4289408
        "stop_time" => float 1438576637.4638
        "stop_memory" => integer 4289976
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4639
        "start_memory" => integer 4293480
        "stop_time" => float 1438576637.4639
        "stop_memory" => integer 4294072
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4644
        "start_memory" => integer 4306984
        "stop_time" => float 1438576637.4644
        "stop_memory" => integer 4307552
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4645
        "start_memory" => integer 4311056
        "stop_time" => float 1438576637.4646
        "stop_memory" => integer 4311648
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.465
        "start_memory" => integer 4324576
        "stop_time" => float 1438576637.4651
        "stop_memory" => integer 4325144
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4651
        "start_memory" => integer 4328648
        "stop_time" => float 1438576637.4652
        "stop_memory" => integer 4329240
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4656
        "start_memory" => integer 4342152
        "stop_time" => float 1438576637.4657
        "stop_memory" => integer 4342720
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4658
        "start_memory" => integer 4346224
        "stop_time" => float 1438576637.4658
        "stop_memory" => integer 4346816
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4663
        "start_memory" => integer 4359856
        "stop_time" => float 1438576637.4663
        "stop_memory" => integer 4360424
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4664
        "start_memory" => integer 4363928
        "stop_time" => float 1438576637.4664
        "stop_memory" => integer 4364520
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4669
        "start_memory" => integer 4377448
        "stop_time" => float 1438576637.4669
        "stop_memory" => integer 4378016
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.467
        "start_memory" => integer 4381520
        "stop_time" => float 1438576637.4671
        "stop_memory" => integer 4382112
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4675
        "start_memory" => integer 4395024
        "stop_time" => float 1438576637.4676
        "stop_memory" => integer 4395592
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4676
        "start_memory" => integer 4399096
        "stop_time" => float 1438576637.4677
        "stop_memory" => integer 4399688
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4681
        "start_memory" => integer 4412600
        "stop_time" => float 1438576637.4682
        "stop_memory" => integer 4413168
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4683
        "start_memory" => integer 4416672
        "stop_time" => float 1438576637.4683
        "stop_memory" => integer 4417264
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4688
        "start_memory" => integer 4430160
        "stop_time" => float 1438576637.4688
        "stop_memory" => integer 4430728
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4689
        "start_memory" => integer 4434232
        "stop_time" => float 1438576637.4689
        "stop_memory" => integer 4434824
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4694
        "start_memory" => integer 4447720
        "stop_time" => float 1438576637.4694
        "stop_memory" => integer 4448288
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4695
        "start_memory" => integer 4451792
        "stop_time" => float 1438576637.4696
        "stop_memory" => integer 4452384
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.47
        "start_memory" => integer 4465296
        "stop_time" => float 1438576637.4701
        "stop_memory" => integer 4465864
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4701
        "start_memory" => integer 4469368
        "stop_time" => float 1438576637.4702
        "stop_memory" => integer 4469960
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4706
        "start_memory" => integer 4482872
        "stop_time" => float 1438576637.4707
        "stop_memory" => integer 4483440
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4708
        "start_memory" => integer 4486944
        "stop_time" => float 1438576637.4708
        "stop_memory" => integer 4487536
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4719
        "start_memory" => integer 4500672
        "stop_time" => float 1438576637.4719
        "stop_memory" => integer 4501240
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.472
        "start_memory" => integer 4504744
        "stop_time" => float 1438576637.472
        "stop_memory" => integer 4505336
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4739
        "start_memory" => integer 4528264
        "stop_time" => float 1438576637.474
        "stop_memory" => integer 4528832
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.474
        "start_memory" => integer 4532296
        "stop_time" => float 1438576637.4741
        "stop_memory" => integer 4532872
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4752
        "start_memory" => integer 4614088
        "stop_time" => float 1438576637.4752
        "stop_memory" => integer 4614664
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4753
        "start_memory" => integer 4618128
        "stop_time" => float 1438576637.4753
        "stop_memory" => integer 4618720
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4767
        "start_memory" => integer 4719896
        "stop_time" => float 1438576637.4767
        "stop_memory" => integer 4720448
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4768
        "start_memory" => integer 4723928
        "stop_time" => float 1438576637.4769
        "stop_memory" => integer 4724512
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4785
        "start_memory" => integer 4757512
        "stop_time" => float 1438576637.4786
        "stop_memory" => integer 4758104
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4787
        "start_memory" => integer 4761600
        "stop_time" => float 1438576637.4787
        "stop_memory" => integer 4762200
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4793
        "start_memory" => integer 4787768
        "stop_time" => float 1438576637.4794
        "stop_memory" => integer 4788360
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4795
        "start_memory" => integer 4791936
        "stop_time" => float 1438576637.4795
        "stop_memory" => integer 4792544
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4805
        "start_memory" => integer 4811248
        "stop_time" => float 1438576637.4806
        "stop_memory" => integer 4811816
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4807
        "start_memory" => integer 4815328
        "stop_time" => float 1438576637.4807
        "stop_memory" => integer 4815928
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4824
        "start_memory" => integer 4834568
        "stop_time" => float 1438576637.4824
        "stop_memory" => integer 4835160
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4848
        "start_memory" => integer 4844504
        "stop_time" => float 1438576637.4849
        "stop_memory" => integer 4845080
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4851
        "start_memory" => integer 4853392
        "stop_time" => float 1438576637.4852
        "stop_memory" => integer 4853976
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4862
        "start_memory" => integer 4862976
        "stop_time" => float 1438576637.4862
        "stop_memory" => integer 4863528
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4863
        "start_memory" => integer 4866984
        "stop_time" => float 1438576637.4863
        "stop_memory" => integer 4867584
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4867
        "start_memory" => integer 4871624
        "stop_time" => float 1438576637.4868
        "stop_memory" => integer 4872184
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4869
        "start_memory" => integer 4875656
        "stop_time" => float 1438576637.4869
        "stop_memory" => integer 4876264
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4873
        "start_memory" => integer 4880232
        "stop_time" => float 1438576637.4874
        "stop_memory" => integer 4880800
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4874
        "start_memory" => integer 4884280
        "stop_time" => float 1438576637.4875
        "stop_memory" => integer 4884880
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4883
        "start_memory" => integer 4893920
        "stop_time" => float 1438576637.4883
        "stop_memory" => integer 4894496
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4884
        "start_memory" => integer 4898064
        "stop_time" => float 1438576637.4884
        "stop_memory" => integer 4898656
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4888
        "start_memory" => integer 4900752
        "stop_time" => float 1438576637.4889
        "stop_memory" => integer 4901408
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.489
        "start_memory" => integer 4908208
        "stop_time" => float 1438576637.489
        "stop_memory" => integer 4908704
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4891
        "start_memory" => integer 4912144
        "stop_time" => float 1438576637.4891
        "stop_memory" => integer 4912728
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4913
        "start_memory" => integer 5144296
        "stop_time" => float 1438576637.4914
        "stop_memory" => integer 5144888
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.492
        "start_memory" => integer 5201600
        "stop_time" => float 1438576637.4921
        "stop_memory" => integer 5202184
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4925
        "start_memory" => integer 5236640
        "stop_time" => float 1438576637.4926
        "stop_memory" => integer 5237224
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4927
        "start_memory" => integer 5240744
        "stop_time" => float 1438576637.4927
        "stop_memory" => integer 5241344
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4931
        "start_memory" => integer 5247384
        "stop_time" => float 1438576637.4932
        "stop_memory" => integer 5247944
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4935
        "start_memory" => integer 5273992
        "stop_time" => float 1438576637.4936
        "stop_memory" => integer 5274568
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.494
        "start_memory" => integer 5303496
        "stop_time" => float 1438576637.494
        "stop_memory" => integer 5304088
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4944
        "start_memory" => integer 5330792
        "stop_time" => float 1438576637.4944
        "stop_memory" => integer 5331328
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4945
        "start_memory" => integer 5334840
        "stop_time" => float 1438576637.4946
        "stop_memory" => integer 5335448
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4963
        "start_memory" => integer 5362576
        "stop_time" => float 1438576637.4963
        "stop_memory" => integer 5363208
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4964
        "start_memory" => integer 5367032
        "stop_time" => float 1438576637.4965
        "stop_memory" => integer 5367648
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4984
        "start_memory" => integer 5398792
        "stop_time" => float 1438576637.4984
        "stop_memory" => integer 5399360
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.4985
        "start_memory" => integer 5402912
        "stop_time" => float 1438576637.4986
        "stop_memory" => integer 5403560
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5018
        "start_memory" => integer 5468264
        "stop_time" => float 1438576637.5019
        "stop_memory" => integer 5468808
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.502
        "start_memory" => integer 5472312
        "stop_time" => float 1438576637.502
        "stop_memory" => integer 5472920
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5025
        "start_memory" => integer 5483072
        "stop_time" => float 1438576637.5025
        "stop_memory" => integer 5483688
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5026
        "start_memory" => integer 5487144
        "stop_time" => float 1438576637.5026
        "stop_memory" => integer 5487728
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5033
        "start_memory" => integer 5532304
        "stop_time" => float 1438576637.5034
        "stop_memory" => integer 5532880
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5035
        "start_memory" => integer 5536448
        "stop_time" => float 1438576637.5035
        "stop_memory" => integer 5537048
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.504
        "start_memory" => integer 5557408
        "stop_time" => float 1438576637.504
        "stop_memory" => integer 5558008
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5041
        "start_memory" => integer 5561568
        "stop_time" => float 1438576637.5041
        "stop_memory" => integer 5562168
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5051
        "start_memory" => integer 5610760
        "stop_time" => float 1438576637.5052
        "stop_memory" => integer 5611376
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5053
        "start_memory" => integer 5614880
        "stop_time" => float 1438576637.5053
        "stop_memory" => integer 5615472
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5062
        "start_memory" => integer 5637880
        "stop_time" => float 1438576637.5062
        "stop_memory" => integer 5638520
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5063
        "start_memory" => integer 5642000
        "stop_time" => float 1438576637.5064
        "stop_memory" => integer 5642592
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.508
        "start_memory" => integer 5715096
        "stop_time" => float 1438576637.5081
        "stop_memory" => integer 5715664
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5082
        "start_memory" => integer 5719184
        "stop_time" => float 1438576637.5083
        "stop_memory" => integer 5719744
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5148
        "start_memory" => integer 5738952
        "stop_time" => float 1438576637.5149
        "stop_memory" => integer 5739512
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.515
        "start_memory" => integer 5742952
        "stop_time" => float 1438576637.5151
        "stop_memory" => integer 5743536
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5165
        "start_memory" => integer 5803152
        "stop_time" => float 1438576637.5166
        "stop_memory" => integer 5803712
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5167
        "start_memory" => integer 5807240
        "stop_time" => float 1438576637.5168
        "stop_memory" => integer 5807848
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5184
        "start_memory" => integer 5877032
        "stop_time" => float 1438576637.5185
        "stop_memory" => integer 5877656
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5186
        "start_memory" => integer 5881288
        "stop_time" => float 1438576637.5187
        "stop_memory" => integer 5881880
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5199
        "start_memory" => integer 5899248
        "stop_time" => float 1438576637.52
        "stop_memory" => integer 5899856
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5204
        "start_memory" => integer 5865736
        "stop_time" => float 1438576637.5205
        "stop_memory" => integer 5868056
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5213
        "start_memory" => integer 5904160
        "stop_time" => float 1438576637.5214
        "stop_memory" => integer 5905848
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438576637.5215
        "start_memory" => integer 5905456
        "stop_time" => float 1438576637.5215
        "stop_memory" => integer 5907136
    )
)

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