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 1464443056.6859
        "start_memory" => integer 1117232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6859
        "start_memory" => integer 1119472
        "stop_time" => float 1464443056.686
        "stop_memory" => integer 1120160
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.686
        "start_memory" => integer 1123704
        "stop_time" => float 1464443056.6861
        "stop_memory" => integer 1124312
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6866
        "start_memory" => integer 1200776
        "stop_time" => float 1464443056.6867
        "stop_memory" => integer 1201328
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6867
        "start_memory" => integer 1204832
        "stop_time" => float 1464443056.6868
        "stop_memory" => integer 1205424
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6869
        "start_memory" => integer 1213392
        "stop_time" => float 1464443056.6869
        "stop_memory" => integer 1213944
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.687
        "start_memory" => integer 1217408
        "stop_time" => float 1464443056.687
        "stop_memory" => integer 1218016
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6871
        "start_memory" => integer 1226880
        "stop_time" => float 1464443056.6872
        "stop_memory" => integer 1227440
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6872
        "start_memory" => integer 1230880
        "stop_time" => float 1464443056.6873
        "stop_memory" => integer 1231528
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.688
        "start_memory" => integer 1326352
        "stop_time" => float 1464443056.6881
        "stop_memory" => integer 1326936
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6881
        "start_memory" => integer 1330416
        "stop_time" => float 1464443056.6882
        "stop_memory" => integer 1331008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6883
        "start_memory" => integer 1342792
        "stop_time" => float 1464443056.6883
        "stop_memory" => integer 1343344
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6884
        "start_memory" => integer 1346768
        "stop_time" => float 1464443056.6884
        "stop_memory" => integer 1347336
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6887
        "start_memory" => integer 1381728
        "stop_time" => float 1464443056.6887
        "stop_memory" => integer 1382328
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6888
        "start_memory" => integer 1383400
        "stop_time" => float 1464443056.6888
        "stop_memory" => integer 1383936
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6889
        "start_memory" => integer 1387344
        "stop_time" => float 1464443056.6889
        "stop_memory" => integer 1387920
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6892
        "start_memory" => integer 1407168
        "stop_time" => float 1464443056.6892
        "stop_memory" => integer 1407872
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6893
        "start_memory" => integer 1411296
        "stop_time" => float 1464443056.6893
        "stop_memory" => integer 1411864
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6899
        "start_memory" => integer 1507472
        "stop_time" => float 1464443056.69
        "stop_memory" => integer 1508072
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.69
        "start_memory" => integer 1511576
        "stop_time" => float 1464443056.6901
        "stop_memory" => integer 1512176
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6904
        "start_memory" => integer 1551448
        "stop_time" => float 1464443056.6904
        "stop_memory" => integer 1551976
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6905
        "start_memory" => integer 1552616
        "stop_time" => float 1464443056.6905
        "stop_memory" => integer 1553192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6931
        "start_memory" => integer 1952376
        "stop_time" => float 1464443056.6932
        "stop_memory" => integer 1952960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6933
        "start_memory" => integer 1956464
        "stop_time" => float 1464443056.6933
        "stop_memory" => integer 1957064
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6934
        "start_memory" => integer 1958696
        "stop_time" => float 1464443056.6935
        "stop_memory" => integer 1959296
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6935
        "start_memory" => integer 1962808
        "stop_time" => float 1464443056.6936
        "stop_memory" => integer 1963384
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6938
        "start_memory" => integer 1993032
        "stop_time" => float 1464443056.6939
        "stop_memory" => integer 1993592
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6939
        "start_memory" => integer 1997096
        "stop_time" => float 1464443056.694
        "stop_memory" => integer 1997696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6945
        "start_memory" => integer 2059736
        "stop_time" => float 1464443056.6945
        "stop_memory" => integer 2060288
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6946
        "start_memory" => integer 2063728
        "stop_time" => float 1464443056.6946
        "stop_memory" => integer 2064296
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.6955
        "start_memory" => integer 2123488
        "stop_time" => float 1464443056.6956
        "stop_memory" => integer 2124104
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7551
        "start_memory" => integer 2164976
        "stop_time" => float 1464443056.7551
        "stop_memory" => integer 2165552
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7552
        "start_memory" => integer 2168976
        "stop_time" => float 1464443056.7553
        "stop_memory" => integer 2169816
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7559
        "start_memory" => integer 2196064
        "stop_time" => float 1464443056.7559
        "stop_memory" => integer 2196640
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.756
        "start_memory" => integer 2200120
        "stop_time" => float 1464443056.756
        "stop_memory" => integer 2200712
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7565
        "start_memory" => integer 2218008
        "stop_time" => float 1464443056.7566
        "stop_memory" => integer 2218576
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7566
        "start_memory" => integer 2222040
        "stop_time" => float 1464443056.7567
        "stop_memory" => integer 2222632
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7573
        "start_memory" => integer 2266088
        "stop_time" => float 1464443056.7573
        "stop_memory" => integer 2266688
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7574
        "start_memory" => integer 2278224
        "stop_time" => float 1464443056.7575
        "stop_memory" => integer 2278800
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7575
        "start_memory" => integer 2282312
        "stop_time" => float 1464443056.7576
        "stop_memory" => integer 2282896
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.758
        "start_memory" => integer 2320912
        "stop_time" => float 1464443056.758
        "stop_memory" => integer 2321512
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7583
        "start_memory" => integer 2333632
        "stop_time" => float 1464443056.7583
        "stop_memory" => integer 2334208
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7587
        "start_memory" => integer 2361224
        "stop_time" => float 1464443056.7587
        "stop_memory" => integer 2361824
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.759
        "start_memory" => integer 2369640
        "stop_time" => float 1464443056.759
        "stop_memory" => integer 2370216
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7592
        "start_memory" => integer 2383368
        "stop_time" => float 1464443056.7592
        "stop_memory" => integer 2383968
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7594
        "start_memory" => integer 2390984
        "stop_time" => float 1464443056.7594
        "stop_memory" => integer 2391576
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7596
        "start_memory" => integer 2404880
        "stop_time" => float 1464443056.7597
        "stop_memory" => integer 2405472
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7599
        "start_memory" => integer 2419104
        "stop_time" => float 1464443056.7599
        "stop_memory" => integer 2419696
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7601
        "start_memory" => integer 2429176
        "stop_time" => float 1464443056.7601
        "stop_memory" => integer 2429768
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7603
        "start_memory" => integer 2438440
        "stop_time" => float 1464443056.7604
        "stop_memory" => integer 2439032
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7606
        "start_memory" => integer 2484384
        "stop_time" => float 1464443056.7606
        "stop_memory" => integer 2484960
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7609
        "start_memory" => integer 2507888
        "stop_time" => float 1464443056.761
        "stop_memory" => integer 2508488
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7612
        "start_memory" => integer 2521784
        "stop_time" => float 1464443056.7612
        "stop_memory" => integer 2522360
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7614
        "start_memory" => integer 2541560
        "stop_time" => float 1464443056.7614
        "stop_memory" => integer 2542144
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7617
        "start_memory" => integer 2555800
        "stop_time" => float 1464443056.7617
        "stop_memory" => integer 2556368
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7618
        "start_memory" => integer 2559824
        "stop_time" => float 1464443056.7618
        "stop_memory" => integer 2560408
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.762
        "start_memory" => integer 2582608
        "stop_time" => float 1464443056.762
        "stop_memory" => integer 2583168
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7621
        "start_memory" => integer 2586600
        "stop_time" => float 1464443056.7622
        "stop_memory" => integer 2587184
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7641
        "start_memory" => integer 2681112
        "stop_time" => float 1464443056.7641
        "stop_memory" => integer 2681688
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7696
        "start_memory" => integer 2712264
        "stop_time" => float 1464443056.7696
        "stop_memory" => integer 2712840
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7697
        "start_memory" => integer 2716320
        "stop_time" => float 1464443056.7698
        "stop_memory" => integer 2716912
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.773
        "start_memory" => integer 2736024
        "stop_time" => float 1464443056.7731
        "stop_memory" => integer 2736608
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7731
        "start_memory" => integer 2740136
        "stop_time" => float 1464443056.7732
        "stop_memory" => integer 2740736
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7763
        "start_memory" => integer 2759920
        "stop_time" => float 1464443056.7763
        "stop_memory" => integer 2760480
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7764
        "start_memory" => integer 2763960
        "stop_time" => float 1464443056.7764
        "stop_memory" => integer 2765064
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7769
        "start_memory" => integer 2819592
        "stop_time" => float 1464443056.7769
        "stop_memory" => integer 2820192
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7803
        "start_memory" => integer 2827504
        "stop_time" => float 1464443056.7803
        "stop_memory" => integer 2828080
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7804
        "start_memory" => integer 2831584
        "stop_time" => float 1464443056.7804
        "stop_memory" => integer 2832184
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7908
        "start_memory" => integer 2871856
        "stop_time" => float 1464443056.7908
        "stop_memory" => integer 2872432
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7909
        "start_memory" => integer 2875960
        "stop_time" => float 1464443056.7909
        "stop_memory" => integer 2876560
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7911
        "start_memory" => integer 2892504
        "stop_time" => float 1464443056.7911
        "stop_memory" => integer 2893080
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7916
        "start_memory" => integer 2900384
        "stop_time" => float 1464443056.7916
        "stop_memory" => integer 2900952
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7917
        "start_memory" => integer 2904424
        "stop_time" => float 1464443056.7917
        "stop_memory" => integer 2905016
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7925
        "start_memory" => integer 2954488
        "stop_time" => float 1464443056.7925
        "stop_memory" => integer 2955072
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7926
        "start_memory" => integer 2958576
        "stop_time" => float 1464443056.7926
        "stop_memory" => integer 2959176
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7965
        "start_memory" => integer 2978552
        "stop_time" => float 1464443056.7965
        "stop_memory" => integer 2979112
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7966
        "start_memory" => integer 2982584
        "stop_time" => float 1464443056.7967
        "stop_memory" => integer 2983176
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7973
        "start_memory" => integer 2998344
        "stop_time" => float 1464443056.7973
        "stop_memory" => integer 2998880
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7974
        "start_memory" => integer 3002288
        "stop_time" => float 1464443056.7975
        "stop_memory" => integer 3002864
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7986
        "start_memory" => integer 3009536
        "stop_time" => float 1464443056.7986
        "stop_memory" => integer 3010136
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.7987
        "start_memory" => integer 3013648
        "stop_time" => float 1464443056.7988
        "stop_memory" => integer 3014248
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8014
        "start_memory" => integer 3049296
        "stop_time" => float 1464443056.8015
        "stop_memory" => integer 3049888
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8019
        "start_memory" => integer 3057584
        "stop_time" => float 1464443056.802
        "stop_memory" => integer 3058144
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.802
        "start_memory" => integer 3061632
        "stop_time" => float 1464443056.8021
        "stop_memory" => integer 3062224
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8045
        "start_memory" => integer 3079864
        "stop_time" => float 1464443056.8045
        "stop_memory" => integer 3080448
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8059
        "start_memory" => integer 3085048
        "stop_time" => float 1464443056.8059
        "stop_memory" => integer 3085616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.806
        "start_memory" => integer 3089080
        "stop_time" => float 1464443056.806
        "stop_memory" => integer 3089672
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8077
        "start_memory" => integer 3183728
        "stop_time" => float 1464443056.8077
        "stop_memory" => integer 3184328
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8078
        "start_memory" => integer 3187880
        "stop_time" => float 1464443056.8078
        "stop_memory" => integer 3188472
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8082
        "start_memory" => integer 3202048
        "stop_time" => float 1464443056.8082
        "stop_memory" => integer 3202640
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8083
        "start_memory" => integer 3206192
        "stop_time" => float 1464443056.8083
        "stop_memory" => integer 3206800
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8094
        "start_memory" => integer 3211832
        "stop_time" => float 1464443056.8094
        "stop_memory" => integer 3212400
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8095
        "start_memory" => integer 3215904
        "stop_time" => float 1464443056.8095
        "stop_memory" => integer 3216504
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8104
        "start_memory" => integer 3311296
        "stop_time" => float 1464443056.8105
        "stop_memory" => integer 3311888
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8105
        "start_memory" => integer 3315440
        "stop_time" => float 1464443056.8106
        "stop_memory" => integer 3316048
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8107
        "start_memory" => integer 3328088
        "stop_time" => float 1464443056.8108
        "stop_memory" => integer 3328656
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8108
        "start_memory" => integer 3332160
        "stop_time" => float 1464443056.8109
        "stop_memory" => integer 3332784
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8116
        "start_memory" => integer 3376424
        "stop_time" => float 1464443056.8116
        "stop_memory" => integer 3377000
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8117
        "start_memory" => integer 3380520
        "stop_time" => float 1464443056.8117
        "stop_memory" => integer 3381120
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8123
        "start_memory" => integer 3425752
        "stop_time" => float 1464443056.8123
        "stop_memory" => integer 3426328
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8124
        "start_memory" => integer 3429832
        "stop_time" => float 1464443056.8124
        "stop_memory" => integer 3430432
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8132
        "start_memory" => integer 3457744
        "stop_time" => float 1464443056.8132
        "stop_memory" => integer 3458336
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8133
        "start_memory" => integer 3461896
        "stop_time" => float 1464443056.8133
        "stop_memory" => integer 3462504
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.814
        "start_memory" => integer 3498720
        "stop_time" => float 1464443056.8141
        "stop_memory" => integer 3499320
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8141
        "start_memory" => integer 3502952
        "stop_time" => float 1464443056.8142
        "stop_memory" => integer 3503568
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8143
        "start_memory" => integer 3515712
        "stop_time" => float 1464443056.8144
        "stop_memory" => integer 3516304
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8144
        "start_memory" => integer 3519928
        "stop_time" => float 1464443056.8145
        "stop_memory" => integer 3520544
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8152
        "start_memory" => integer 3572664
        "stop_time" => float 1464443056.8152
        "stop_memory" => integer 3573256
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8153
        "start_memory" => integer 3576864
        "stop_time" => float 1464443056.8153
        "stop_memory" => integer 3577480
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.816
        "start_memory" => integer 3610072
        "stop_time" => float 1464443056.816
        "stop_memory" => integer 3610664
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8161
        "start_memory" => integer 3614288
        "stop_time" => float 1464443056.8162
        "stop_memory" => integer 3614904
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8168
        "start_memory" => integer 3643528
        "stop_time" => float 1464443056.8169
        "stop_memory" => integer 3644120
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8169
        "start_memory" => integer 3647728
        "stop_time" => float 1464443056.817
        "stop_memory" => integer 3648344
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8179
        "start_memory" => integer 3724264
        "stop_time" => float 1464443056.8179
        "stop_memory" => integer 3724856
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.818
        "start_memory" => integer 3728464
        "stop_time" => float 1464443056.818
        "stop_memory" => integer 3729080
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8195
        "start_memory" => integer 3765616
        "stop_time" => float 1464443056.8196
        "stop_memory" => integer 3766192
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8197
        "start_memory" => integer 3769752
        "stop_time" => float 1464443056.8197
        "stop_memory" => integer 3770360
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8203
        "start_memory" => integer 3788688
        "stop_time" => float 1464443056.8204
        "stop_memory" => integer 3789224
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8205
        "start_memory" => integer 3792672
        "stop_time" => float 1464443056.8205
        "stop_memory" => integer 3793240
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8214
        "start_memory" => integer 3862800
        "stop_time" => float 1464443056.8214
        "stop_memory" => integer 3863384
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8215
        "start_memory" => integer 3866840
        "stop_time" => float 1464443056.8215
        "stop_memory" => integer 3867416
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8247
        "start_memory" => integer 3881616
        "stop_time" => float 1464443056.8248
        "stop_memory" => integer 3882176
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8248
        "start_memory" => integer 3885608
        "stop_time" => float 1464443056.8249
        "stop_memory" => integer 3886192
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8268
        "start_memory" => integer 3908032
        "stop_time" => float 1464443056.8269
        "stop_memory" => integer 3908592
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8269
        "start_memory" => integer 3912016
        "stop_time" => float 1464443056.827
        "stop_memory" => integer 3912584
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8275
        "start_memory" => integer 3935728
        "stop_time" => float 1464443056.8276
        "stop_memory" => integer 3936296
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8276
        "start_memory" => integer 3939744
        "stop_time" => float 1464443056.8277
        "stop_memory" => integer 3940312
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8282
        "start_memory" => integer 3966232
        "stop_time" => float 1464443056.8283
        "stop_memory" => integer 3966800
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8283
        "start_memory" => integer 3970224
        "stop_time" => float 1464443056.8284
        "stop_memory" => integer 3971816
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8293
        "start_memory" => integer 4018936
        "stop_time" => float 1464443056.8294
        "stop_memory" => integer 4019504
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8294
        "start_memory" => integer 4022944
        "stop_time" => float 1464443056.8295
        "stop_memory" => integer 4023528
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.831
        "start_memory" => integer 4038080
        "stop_time" => float 1464443056.831
        "stop_memory" => integer 4038640
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8311
        "start_memory" => integer 4042088
        "stop_time" => float 1464443056.8311
        "stop_memory" => integer 4042656
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8321
        "start_memory" => integer 4059280
        "stop_time" => float 1464443056.8322
        "stop_memory" => integer 4059864
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8322
        "start_memory" => integer 4063344
        "stop_time" => float 1464443056.8323
        "stop_memory" => integer 4063936
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8328
        "start_memory" => integer 4080400
        "stop_time" => float 1464443056.8328
        "stop_memory" => integer 4080968
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8329
        "start_memory" => integer 4084472
        "stop_time" => float 1464443056.8329
        "stop_memory" => integer 4085064
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8334
        "start_memory" => integer 4098648
        "stop_time" => float 1464443056.8335
        "stop_memory" => integer 4099216
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8335
        "start_memory" => integer 4102720
        "stop_time" => float 1464443056.8336
        "stop_memory" => integer 4103312
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.834
        "start_memory" => integer 4116912
        "stop_time" => float 1464443056.8341
        "stop_memory" => integer 4117480
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8341
        "start_memory" => integer 4120984
        "stop_time" => float 1464443056.8342
        "stop_memory" => integer 4121576
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8346
        "start_memory" => integer 4135176
        "stop_time" => float 1464443056.8347
        "stop_memory" => integer 4135744
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8347
        "start_memory" => integer 4139248
        "stop_time" => float 1464443056.8348
        "stop_memory" => integer 4139840
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8352
        "start_memory" => integer 4153424
        "stop_time" => float 1464443056.8353
        "stop_memory" => integer 4153992
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8353
        "start_memory" => integer 4157496
        "stop_time" => float 1464443056.8354
        "stop_memory" => integer 4158088
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8358
        "start_memory" => integer 4171672
        "stop_time" => float 1464443056.8359
        "stop_memory" => integer 4172240
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.836
        "start_memory" => integer 4175744
        "stop_time" => float 1464443056.836
        "stop_memory" => integer 4176336
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8364
        "start_memory" => integer 4189936
        "stop_time" => float 1464443056.8365
        "stop_memory" => integer 4190504
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8366
        "start_memory" => integer 4194008
        "stop_time" => float 1464443056.8366
        "stop_memory" => integer 4194600
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8371
        "start_memory" => integer 4208184
        "stop_time" => float 1464443056.8371
        "stop_memory" => integer 4208752
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8372
        "start_memory" => integer 4212256
        "stop_time" => float 1464443056.8372
        "stop_memory" => integer 4212848
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8377
        "start_memory" => integer 4226528
        "stop_time" => float 1464443056.8377
        "stop_memory" => integer 4227096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8378
        "start_memory" => integer 4230600
        "stop_time" => float 1464443056.8378
        "stop_memory" => integer 4231192
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8383
        "start_memory" => integer 4244800
        "stop_time" => float 1464443056.8383
        "stop_memory" => integer 4245368
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8384
        "start_memory" => integer 4248872
        "stop_time" => float 1464443056.8384
        "stop_memory" => integer 4249464
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8389
        "start_memory" => integer 4263048
        "stop_time" => float 1464443056.8389
        "stop_memory" => integer 4263616
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.839
        "start_memory" => integer 4267120
        "stop_time" => float 1464443056.839
        "stop_memory" => integer 4267712
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8395
        "start_memory" => integer 4281280
        "stop_time" => float 1464443056.8395
        "stop_memory" => integer 4281848
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8396
        "start_memory" => integer 4285352
        "stop_time" => float 1464443056.8397
        "stop_memory" => integer 4285944
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8401
        "start_memory" => integer 4299528
        "stop_time" => float 1464443056.8402
        "stop_memory" => integer 4300096
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8402
        "start_memory" => integer 4303600
        "stop_time" => float 1464443056.8403
        "stop_memory" => integer 4304192
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8407
        "start_memory" => integer 4317792
        "stop_time" => float 1464443056.8408
        "stop_memory" => integer 4318360
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8409
        "start_memory" => integer 4321864
        "stop_time" => float 1464443056.8409
        "stop_memory" => integer 4322456
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8413
        "start_memory" => integer 4336072
        "stop_time" => float 1464443056.8414
        "stop_memory" => integer 4336640
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8415
        "start_memory" => integer 4340144
        "stop_time" => float 1464443056.8415
        "stop_memory" => integer 4340736
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.842
        "start_memory" => integer 4354336
        "stop_time" => float 1464443056.842
        "stop_memory" => integer 4354904
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8421
        "start_memory" => integer 4358408
        "stop_time" => float 1464443056.8421
        "stop_memory" => integer 4359000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8426
        "start_memory" => integer 4372728
        "stop_time" => float 1464443056.8426
        "stop_memory" => integer 4373296
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8427
        "start_memory" => integer 4376800
        "stop_time" => float 1464443056.8427
        "stop_memory" => integer 4377392
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8432
        "start_memory" => integer 4391008
        "stop_time" => float 1464443056.8432
        "stop_memory" => integer 4391576
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8433
        "start_memory" => integer 4395080
        "stop_time" => float 1464443056.8434
        "stop_memory" => integer 4395672
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8438
        "start_memory" => integer 4409272
        "stop_time" => float 1464443056.8439
        "stop_memory" => integer 4409840
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8439
        "start_memory" => integer 4413344
        "stop_time" => float 1464443056.844
        "stop_memory" => integer 4413936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8444
        "start_memory" => integer 4427536
        "stop_time" => float 1464443056.8445
        "stop_memory" => integer 4428104
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8445
        "start_memory" => integer 4431608
        "stop_time" => float 1464443056.8446
        "stop_memory" => integer 4432200
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.845
        "start_memory" => integer 4445784
        "stop_time" => float 1464443056.8451
        "stop_memory" => integer 4446352
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8451
        "start_memory" => integer 4449856
        "stop_time" => float 1464443056.8452
        "stop_memory" => integer 4450448
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8456
        "start_memory" => integer 4464032
        "stop_time" => float 1464443056.8457
        "stop_memory" => integer 4464600
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8458
        "start_memory" => integer 4468104
        "stop_time" => float 1464443056.8458
        "stop_memory" => integer 4468696
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8462
        "start_memory" => integer 4482296
        "stop_time" => float 1464443056.8463
        "stop_memory" => integer 4482864
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8464
        "start_memory" => integer 4486368
        "stop_time" => float 1464443056.8464
        "stop_memory" => integer 4486960
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8468
        "start_memory" => integer 4500544
        "stop_time" => float 1464443056.8469
        "stop_memory" => integer 4501112
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.847
        "start_memory" => integer 4504616
        "stop_time" => float 1464443056.847
        "stop_memory" => integer 4505208
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8481
        "start_memory" => integer 4519032
        "stop_time" => float 1464443056.8481
        "stop_memory" => integer 4519600
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8482
        "start_memory" => integer 4523104
        "stop_time" => float 1464443056.8482
        "stop_memory" => integer 4523696
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8501
        "start_memory" => integer 4546624
        "stop_time" => float 1464443056.8502
        "stop_memory" => integer 4547192
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8502
        "start_memory" => integer 4550656
        "stop_time" => float 1464443056.8503
        "stop_memory" => integer 4551232
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8513
        "start_memory" => integer 4632416
        "stop_time" => float 1464443056.8514
        "stop_memory" => integer 4632992
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8515
        "start_memory" => integer 4636456
        "stop_time" => float 1464443056.8515
        "stop_memory" => integer 4637048
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8527
        "start_memory" => integer 4738240
        "stop_time" => float 1464443056.8527
        "stop_memory" => integer 4738792
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8528
        "start_memory" => integer 4742272
        "stop_time" => float 1464443056.8528
        "stop_memory" => integer 4742856
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8546
        "start_memory" => integer 4775824
        "stop_time" => float 1464443056.8546
        "stop_memory" => integer 4776416
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8547
        "start_memory" => integer 4779936
        "stop_time" => float 1464443056.8547
        "stop_memory" => integer 4780536
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8553
        "start_memory" => integer 4806104
        "stop_time" => float 1464443056.8553
        "stop_memory" => integer 4806696
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8554
        "start_memory" => integer 4810272
        "stop_time" => float 1464443056.8554
        "stop_memory" => integer 4810880
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8564
        "start_memory" => integer 4829584
        "stop_time" => float 1464443056.8564
        "stop_memory" => integer 4830152
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8565
        "start_memory" => integer 4833688
        "stop_time" => float 1464443056.8565
        "stop_memory" => integer 4834288
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8578
        "start_memory" => integer 4852928
        "stop_time" => float 1464443056.8579
        "stop_memory" => integer 4853520
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8602
        "start_memory" => integer 4863200
        "stop_time" => float 1464443056.8603
        "stop_memory" => integer 4863776
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8605
        "start_memory" => integer 4872408
        "stop_time" => float 1464443056.8605
        "stop_memory" => integer 4872992
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8615
        "start_memory" => integer 4882392
        "stop_time" => float 1464443056.8616
        "stop_memory" => integer 4882944
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8616
        "start_memory" => integer 4886408
        "stop_time" => float 1464443056.8617
        "stop_memory" => integer 4887000
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8621
        "start_memory" => integer 4891032
        "stop_time" => float 1464443056.8621
        "stop_memory" => integer 4891592
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8622
        "start_memory" => integer 4895048
        "stop_time" => float 1464443056.8623
        "stop_memory" => integer 4895640
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8626
        "start_memory" => integer 4899592
        "stop_time" => float 1464443056.8627
        "stop_memory" => integer 4900152
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8628
        "start_memory" => integer 4903696
        "stop_time" => float 1464443056.8628
        "stop_memory" => integer 4904288
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8636
        "start_memory" => integer 4913264
        "stop_time" => float 1464443056.8636
        "stop_memory" => integer 4913824
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8637
        "start_memory" => integer 4917288
        "stop_time" => float 1464443056.8637
        "stop_memory" => integer 4917912
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8641
        "start_memory" => integer 4920096
        "stop_time" => float 1464443056.8642
        "stop_memory" => integer 4920736
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8643
        "start_memory" => integer 4927520
        "stop_time" => float 1464443056.8643
        "stop_memory" => integer 4928072
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8644
        "start_memory" => integer 4931536
        "stop_time" => float 1464443056.8644
        "stop_memory" => integer 4932120
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8661
        "start_memory" => integer 5163720
        "stop_time" => float 1464443056.8661
        "stop_memory" => integer 5164312
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8668
        "start_memory" => integer 5221064
        "stop_time" => float 1464443056.8668
        "stop_memory" => integer 5221648
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8673
        "start_memory" => integer 5256048
        "stop_time" => float 1464443056.8673
        "stop_memory" => integer 5256632
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8674
        "start_memory" => integer 5260152
        "stop_time" => float 1464443056.8674
        "stop_memory" => integer 5260752
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8678
        "start_memory" => integer 5266760
        "stop_time" => float 1464443056.8678
        "stop_memory" => integer 5267320
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8682
        "start_memory" => integer 5293376
        "stop_time" => float 1464443056.8682
        "stop_memory" => integer 5293952
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8686
        "start_memory" => integer 5322936
        "stop_time" => float 1464443056.8687
        "stop_memory" => integer 5323528
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.869
        "start_memory" => integer 5350208
        "stop_time" => float 1464443056.8691
        "stop_memory" => integer 5350744
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8691
        "start_memory" => integer 5354248
        "stop_time" => float 1464443056.8692
        "stop_memory" => integer 5354832
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8709
        "start_memory" => integer 5382000
        "stop_time" => float 1464443056.8709
        "stop_memory" => integer 5382624
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.871
        "start_memory" => integer 5386472
        "stop_time" => float 1464443056.8711
        "stop_memory" => integer 5387104
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8731
        "start_memory" => integer 5418872
        "stop_time" => float 1464443056.8732
        "stop_memory" => integer 5419448
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8732
        "start_memory" => integer 5423016
        "stop_time" => float 1464443056.8733
        "stop_memory" => integer 5423632
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8767
        "start_memory" => integer 5488408
        "stop_time" => float 1464443056.8767
        "stop_memory" => integer 5488952
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8768
        "start_memory" => integer 5492496
        "stop_time" => float 1464443056.8768
        "stop_memory" => integer 5493104
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8773
        "start_memory" => integer 5503168
        "stop_time" => float 1464443056.8773
        "stop_memory" => integer 5503792
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8774
        "start_memory" => integer 5507272
        "stop_time" => float 1464443056.8774
        "stop_memory" => integer 5507864
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8781
        "start_memory" => integer 5552392
        "stop_time" => float 1464443056.8782
        "stop_memory" => integer 5552976
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8782
        "start_memory" => integer 5556512
        "stop_time" => float 1464443056.8783
        "stop_memory" => integer 5557120
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8787
        "start_memory" => integer 5577448
        "stop_time" => float 1464443056.8788
        "stop_memory" => integer 5578080
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8789
        "start_memory" => integer 5581656
        "stop_time" => float 1464443056.8789
        "stop_memory" => integer 5582256
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8799
        "start_memory" => integer 5630880
        "stop_time" => float 1464443056.8799
        "stop_memory" => integer 5631448
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.88
        "start_memory" => integer 5635008
        "stop_time" => float 1464443056.8801
        "stop_memory" => integer 5635600
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8806
        "start_memory" => integer 5657880
        "stop_time" => float 1464443056.8806
        "stop_memory" => integer 5658496
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8807
        "start_memory" => integer 5661992
        "stop_time" => float 1464443056.8807
        "stop_memory" => integer 5662568
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8817
        "start_memory" => integer 5735128
        "stop_time" => float 1464443056.8818
        "stop_memory" => integer 5735696
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8818
        "start_memory" => integer 5739184
        "stop_time" => float 1464443056.8819
        "stop_memory" => integer 5739768
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8857
        "start_memory" => integer 5758936
        "stop_time" => float 1464443056.8857
        "stop_memory" => integer 5759496
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8858
        "start_memory" => integer 5762968
        "stop_time" => float 1464443056.8859
        "stop_memory" => integer 5763608
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8867
        "start_memory" => integer 5823152
        "stop_time" => float 1464443056.8867
        "stop_memory" => integer 5823720
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8868
        "start_memory" => integer 5827248
        "stop_time" => float 1464443056.8868
        "stop_memory" => integer 5827832
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8877
        "start_memory" => integer 5896976
        "stop_time" => float 1464443056.8878
        "stop_memory" => integer 5897616
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8879
        "start_memory" => integer 5901176
        "stop_time" => float 1464443056.8879
        "stop_memory" => integer 5901760
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8887
        "start_memory" => integer 5919800
        "stop_time" => float 1464443056.8887
        "stop_memory" => integer 5920448
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.889
        "start_memory" => integer 5886368
        "stop_time" => float 1464443056.889
        "stop_memory" => integer 5888688
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8895
        "start_memory" => integer 5924816
        "stop_time" => float 1464443056.8896
        "stop_memory" => integer 5926480
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464443056.8896
        "start_memory" => integer 5926112
        "stop_time" => float 1464443056.8896
        "stop_memory" => integer 5927800
    )
)

Methods

public static application( ) (defined in Kohana_Profiler)

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

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

Tags

Return Values

  • array - Execution time, memory

Source Code

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Profiler::delete($token);

Parameters

  • string $token required - $token

Return Values

  • void

Source Code

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

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

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

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

Parameters

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

Tags

Return Values

  • array - Min, max, average, total

Source Code

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

	// All statistics
	$stats = array();

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

	// Group stats
	$groups = array();

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

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

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

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

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

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

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

	return $groups;
}

public static groups( ) (defined in Kohana_Profiler)

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

$groups = Profiler::groups();

Return Values

  • array

Source Code

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

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

	return $groups;
}

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

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

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

Parameters

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

Return Values

  • string

Source Code

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

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

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

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

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

	return $token;
}

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

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

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

Parameters

  • array $tokens required - Profiler tokens

Tags

Return Values

  • array - Min, max, average, total

Source Code

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

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

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

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

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

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

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

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

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

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

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

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

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

Stops a benchmark.

Profiler::stop($token);

Parameters

  • string $token required - $token

Return Values

  • void

Source Code

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

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

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

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

Parameters

  • string $token required - $token

Return Values

  • array - Execution time, memory

Source Code

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

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

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

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