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 1440799969.3116
        "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 1440799969.3116
        "start_memory" => integer 1118776
        "stop_time" => float 1440799969.3116
        "stop_memory" => integer 1119464
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3117
        "start_memory" => integer 1123032
        "stop_time" => float 1440799969.3117
        "stop_memory" => integer 1123640
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3123
        "start_memory" => integer 1200104
        "stop_time" => float 1440799969.3123
        "stop_memory" => integer 1200656
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3124
        "start_memory" => integer 1204160
        "stop_time" => float 1440799969.3125
        "stop_memory" => integer 1204752
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3126
        "start_memory" => integer 1212720
        "stop_time" => float 1440799969.3126
        "stop_memory" => integer 1213272
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3127
        "start_memory" => integer 1216736
        "stop_time" => float 1440799969.3127
        "stop_memory" => integer 1217320
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3128
        "start_memory" => integer 1226176
        "stop_time" => float 1440799969.3129
        "stop_memory" => integer 1226736
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3129
        "start_memory" => integer 1230176
        "stop_time" => float 1440799969.313
        "stop_memory" => integer 1230832
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3138
        "start_memory" => integer 1325688
        "stop_time" => float 1440799969.3138
        "stop_memory" => integer 1326280
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3139
        "start_memory" => integer 1329744
        "stop_time" => float 1440799969.3139
        "stop_memory" => integer 1330336
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.314
        "start_memory" => integer 1342120
        "stop_time" => float 1440799969.3141
        "stop_memory" => integer 1342672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3142
        "start_memory" => integer 1346096
        "stop_time" => float 1440799969.3142
        "stop_memory" => integer 1346664
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3145
        "start_memory" => integer 1381056
        "stop_time" => float 1440799969.3145
        "stop_memory" => integer 1381656
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3145
        "start_memory" => integer 1382728
        "stop_time" => float 1440799969.3146
        "stop_memory" => integer 1383264
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3146
        "start_memory" => integer 1386672
        "stop_time" => float 1440799969.3147
        "stop_memory" => integer 1387248
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3149
        "start_memory" => integer 1406496
        "stop_time" => float 1440799969.315
        "stop_memory" => integer 1407200
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.315
        "start_memory" => integer 1410624
        "stop_time" => float 1440799969.3151
        "stop_memory" => integer 1411192
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3156
        "start_memory" => integer 1506800
        "stop_time" => float 1440799969.3157
        "stop_memory" => integer 1507400
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3158
        "start_memory" => integer 1510904
        "stop_time" => float 1440799969.3158
        "stop_memory" => integer 1511504
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3161
        "start_memory" => integer 1550776
        "stop_time" => float 1440799969.3162
        "stop_memory" => integer 1551280
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3162
        "start_memory" => integer 1551920
        "stop_time" => float 1440799969.3162
        "stop_memory" => integer 1552496
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3189
        "start_memory" => integer 1951792
        "stop_time" => float 1440799969.3189
        "stop_memory" => integer 1952376
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.319
        "start_memory" => integer 1955880
        "stop_time" => float 1440799969.3191
        "stop_memory" => integer 1956480
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3192
        "start_memory" => integer 1958112
        "stop_time" => float 1440799969.3192
        "stop_memory" => integer 1958712
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3193
        "start_memory" => integer 1962224
        "stop_time" => float 1440799969.3193
        "stop_memory" => integer 1962800
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3196
        "start_memory" => integer 1992448
        "stop_time" => float 1440799969.3196
        "stop_memory" => integer 1993008
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3197
        "start_memory" => integer 1996512
        "stop_time" => float 1440799969.3198
        "stop_memory" => integer 1997112
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3202
        "start_memory" => integer 2059160
        "stop_time" => float 1440799969.3203
        "stop_memory" => integer 2059712
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3203
        "start_memory" => integer 2063160
        "stop_time" => float 1440799969.3204
        "stop_memory" => integer 2063728
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3213
        "start_memory" => integer 2122888
        "stop_time" => float 1440799969.3214
        "stop_memory" => integer 2123504
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3713
        "start_memory" => integer 2164384
        "stop_time" => float 1440799969.3713
        "stop_memory" => integer 2164960
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3714
        "start_memory" => integer 2168384
        "stop_time" => float 1440799969.3715
        "stop_memory" => integer 2169224
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3721
        "start_memory" => integer 2195472
        "stop_time" => float 1440799969.3721
        "stop_memory" => integer 2196048
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3722
        "start_memory" => integer 2199528
        "stop_time" => float 1440799969.3722
        "stop_memory" => integer 2200120
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3727
        "start_memory" => integer 2217416
        "stop_time" => float 1440799969.3727
        "stop_memory" => integer 2217984
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3728
        "start_memory" => integer 2221448
        "stop_time" => float 1440799969.3729
        "stop_memory" => integer 2222040
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3734
        "start_memory" => integer 2265496
        "stop_time" => float 1440799969.3735
        "stop_memory" => integer 2266096
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3736
        "start_memory" => integer 2277632
        "stop_time" => float 1440799969.3736
        "stop_memory" => integer 2278208
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3737
        "start_memory" => integer 2281720
        "stop_time" => float 1440799969.3737
        "stop_memory" => integer 2282304
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3741
        "start_memory" => integer 2320320
        "stop_time" => float 1440799969.3742
        "stop_memory" => integer 2320920
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3744
        "start_memory" => integer 2333040
        "stop_time" => float 1440799969.3744
        "stop_memory" => integer 2333616
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3747
        "start_memory" => integer 2360632
        "stop_time" => float 1440799969.3748
        "stop_memory" => integer 2361232
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3749
        "start_memory" => integer 2369048
        "stop_time" => float 1440799969.375
        "stop_memory" => integer 2369624
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3752
        "start_memory" => integer 2382776
        "stop_time" => float 1440799969.3752
        "stop_memory" => integer 2383376
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3754
        "start_memory" => integer 2390392
        "stop_time" => float 1440799969.3754
        "stop_memory" => integer 2390984
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3756
        "start_memory" => integer 2404288
        "stop_time" => float 1440799969.3757
        "stop_memory" => integer 2404880
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3759
        "start_memory" => integer 2418512
        "stop_time" => float 1440799969.3759
        "stop_memory" => integer 2419104
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3761
        "start_memory" => integer 2428584
        "stop_time" => float 1440799969.3761
        "stop_memory" => integer 2429176
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3763
        "start_memory" => integer 2437848
        "stop_time" => float 1440799969.3763
        "stop_memory" => integer 2438440
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3765
        "start_memory" => integer 2483776
        "stop_time" => float 1440799969.3766
        "stop_memory" => integer 2484352
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3768
        "start_memory" => integer 2507280
        "stop_time" => float 1440799969.3769
        "stop_memory" => integer 2507880
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3771
        "start_memory" => integer 2521176
        "stop_time" => float 1440799969.3771
        "stop_memory" => integer 2521752
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3773
        "start_memory" => integer 2540952
        "stop_time" => float 1440799969.3774
        "stop_memory" => integer 2541536
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3776
        "start_memory" => integer 2555192
        "stop_time" => float 1440799969.3776
        "stop_memory" => integer 2555760
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3777
        "start_memory" => integer 2559216
        "stop_time" => float 1440799969.3777
        "stop_memory" => integer 2559800
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3779
        "start_memory" => integer 2582000
        "stop_time" => float 1440799969.3779
        "stop_memory" => integer 2582560
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.378
        "start_memory" => integer 2585992
        "stop_time" => float 1440799969.378
        "stop_memory" => integer 2586576
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3799
        "start_memory" => integer 2680504
        "stop_time" => float 1440799969.38
        "stop_memory" => integer 2681080
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3854
        "start_memory" => integer 2711656
        "stop_time" => float 1440799969.3855
        "stop_memory" => integer 2712232
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3855
        "start_memory" => integer 2715712
        "stop_time" => float 1440799969.3856
        "stop_memory" => integer 2716304
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3887
        "start_memory" => integer 2735416
        "stop_time" => float 1440799969.3887
        "stop_memory" => integer 2736000
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3888
        "start_memory" => integer 2739528
        "stop_time" => float 1440799969.3888
        "stop_memory" => integer 2740128
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3919
        "start_memory" => integer 2759312
        "stop_time" => float 1440799969.392
        "stop_memory" => integer 2759872
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3921
        "start_memory" => integer 2763352
        "stop_time" => float 1440799969.3921
        "stop_memory" => integer 2764456
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3926
        "start_memory" => integer 2818984
        "stop_time" => float 1440799969.3926
        "stop_memory" => integer 2819584
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3961
        "start_memory" => integer 2826896
        "stop_time" => float 1440799969.3961
        "stop_memory" => integer 2827472
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.3962
        "start_memory" => integer 2830976
        "stop_time" => float 1440799969.3962
        "stop_memory" => integer 2831576
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.407
        "start_memory" => integer 2871248
        "stop_time" => float 1440799969.4071
        "stop_memory" => integer 2871824
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4073
        "start_memory" => integer 2875352
        "stop_time" => float 1440799969.4073
        "stop_memory" => integer 2875952
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4075
        "start_memory" => integer 2891928
        "stop_time" => float 1440799969.4075
        "stop_memory" => integer 2892504
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4082
        "start_memory" => integer 2899808
        "stop_time" => float 1440799969.4082
        "stop_memory" => integer 2900376
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4083
        "start_memory" => integer 2903848
        "stop_time" => float 1440799969.4083
        "stop_memory" => integer 2904440
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4094
        "start_memory" => integer 2953944
        "stop_time" => float 1440799969.4094
        "stop_memory" => integer 2954528
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4095
        "start_memory" => integer 2958032
        "stop_time" => float 1440799969.4095
        "stop_memory" => integer 2958632
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4134
        "start_memory" => integer 2978024
        "stop_time" => float 1440799969.4135
        "stop_memory" => integer 2978584
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4136
        "start_memory" => integer 2982080
        "stop_time" => float 1440799969.4136
        "stop_memory" => integer 2982672
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4143
        "start_memory" => integer 2997824
        "stop_time" => float 1440799969.4143
        "stop_memory" => integer 2998360
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4144
        "start_memory" => integer 3001768
        "stop_time" => float 1440799969.4145
        "stop_memory" => integer 3002344
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4156
        "start_memory" => integer 3009016
        "stop_time" => float 1440799969.4157
        "stop_memory" => integer 3009616
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4157
        "start_memory" => integer 3013128
        "stop_time" => float 1440799969.4158
        "stop_memory" => integer 3013728
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4184
        "start_memory" => integer 3048776
        "stop_time" => float 1440799969.4185
        "stop_memory" => integer 3049368
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.419
        "start_memory" => integer 3057064
        "stop_time" => float 1440799969.419
        "stop_memory" => integer 3057624
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4191
        "start_memory" => integer 3061112
        "stop_time" => float 1440799969.4192
        "stop_memory" => integer 3061704
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4216
        "start_memory" => integer 3079344
        "stop_time" => float 1440799969.4217
        "stop_memory" => integer 3079928
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.423
        "start_memory" => integer 3084528
        "stop_time" => float 1440799969.4231
        "stop_memory" => integer 3085096
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4231
        "start_memory" => integer 3088560
        "stop_time" => float 1440799969.4232
        "stop_memory" => integer 3089152
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4249
        "start_memory" => integer 3183208
        "stop_time" => float 1440799969.425
        "stop_memory" => integer 3183808
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4251
        "start_memory" => integer 3187360
        "stop_time" => float 1440799969.4251
        "stop_memory" => integer 3187952
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4255
        "start_memory" => integer 3200840
        "stop_time" => float 1440799969.4255
        "stop_memory" => integer 3201432
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4256
        "start_memory" => integer 3204984
        "stop_time" => float 1440799969.4256
        "stop_memory" => integer 3205592
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4267
        "start_memory" => integer 3210624
        "stop_time" => float 1440799969.4267
        "stop_memory" => integer 3211192
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4268
        "start_memory" => integer 3214696
        "stop_time" => float 1440799969.4269
        "stop_memory" => integer 3215296
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4278
        "start_memory" => integer 3310104
        "stop_time" => float 1440799969.4278
        "stop_memory" => integer 3310696
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4279
        "start_memory" => integer 3314248
        "stop_time" => float 1440799969.4279
        "stop_memory" => integer 3314856
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4281
        "start_memory" => integer 3326896
        "stop_time" => float 1440799969.4281
        "stop_memory" => integer 3327464
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4282
        "start_memory" => integer 3330968
        "stop_time" => float 1440799969.4282
        "stop_memory" => integer 3331592
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4289
        "start_memory" => integer 3375232
        "stop_time" => float 1440799969.429
        "stop_memory" => integer 3375808
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.429
        "start_memory" => integer 3379328
        "stop_time" => float 1440799969.4291
        "stop_memory" => integer 3379928
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4297
        "start_memory" => integer 3424560
        "stop_time" => float 1440799969.4297
        "stop_memory" => integer 3425136
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4298
        "start_memory" => integer 3428640
        "stop_time" => float 1440799969.4298
        "stop_memory" => integer 3429240
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4305
        "start_memory" => integer 3456552
        "stop_time" => float 1440799969.4306
        "stop_memory" => integer 3457144
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4306
        "start_memory" => integer 3460704
        "stop_time" => float 1440799969.4307
        "stop_memory" => integer 3461312
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4314
        "start_memory" => integer 3497544
        "stop_time" => float 1440799969.4314
        "stop_memory" => integer 3498144
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4315
        "start_memory" => integer 3501776
        "stop_time" => float 1440799969.4316
        "stop_memory" => integer 3502392
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4317
        "start_memory" => integer 3514536
        "stop_time" => float 1440799969.4317
        "stop_memory" => integer 3515128
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4318
        "start_memory" => integer 3518752
        "stop_time" => float 1440799969.4318
        "stop_memory" => integer 3519368
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4325
        "start_memory" => integer 3571488
        "stop_time" => float 1440799969.4325
        "stop_memory" => integer 3572080
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4326
        "start_memory" => integer 3575688
        "stop_time" => float 1440799969.4327
        "stop_memory" => integer 3576304
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4333
        "start_memory" => integer 3608896
        "stop_time" => float 1440799969.4334
        "stop_memory" => integer 3609488
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4335
        "start_memory" => integer 3613112
        "stop_time" => float 1440799969.4335
        "stop_memory" => integer 3613728
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4342
        "start_memory" => integer 3642352
        "stop_time" => float 1440799969.4342
        "stop_memory" => integer 3642944
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4343
        "start_memory" => integer 3646552
        "stop_time" => float 1440799969.4343
        "stop_memory" => integer 3647168
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4352
        "start_memory" => integer 3723088
        "stop_time" => float 1440799969.4352
        "stop_memory" => integer 3723680
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4353
        "start_memory" => integer 3727288
        "stop_time" => float 1440799969.4353
        "stop_memory" => integer 3727904
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4369
        "start_memory" => integer 3764424
        "stop_time" => float 1440799969.4369
        "stop_memory" => integer 3765000
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.437
        "start_memory" => integer 3768560
        "stop_time" => float 1440799969.4371
        "stop_memory" => integer 3769168
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4377
        "start_memory" => integer 3787496
        "stop_time" => float 1440799969.4377
        "stop_memory" => integer 3788032
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4378
        "start_memory" => integer 3791480
        "stop_time" => float 1440799969.4379
        "stop_memory" => integer 3792048
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4388
        "start_memory" => integer 3861608
        "stop_time" => float 1440799969.4388
        "stop_memory" => integer 3862192
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4389
        "start_memory" => integer 3865648
        "stop_time" => float 1440799969.4389
        "stop_memory" => integer 3866224
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4421
        "start_memory" => integer 3880424
        "stop_time" => float 1440799969.4422
        "stop_memory" => integer 3880984
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4423
        "start_memory" => integer 3884416
        "stop_time" => float 1440799969.4424
        "stop_memory" => integer 3885000
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4445
        "start_memory" => integer 3906840
        "stop_time" => float 1440799969.4446
        "stop_memory" => integer 3907400
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4447
        "start_memory" => integer 3910824
        "stop_time" => float 1440799969.4448
        "stop_memory" => integer 3911392
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4454
        "start_memory" => integer 3934536
        "stop_time" => float 1440799969.4454
        "stop_memory" => integer 3935104
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4455
        "start_memory" => integer 3938552
        "stop_time" => float 1440799969.4455
        "stop_memory" => integer 3939120
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.446
        "start_memory" => integer 3965048
        "stop_time" => float 1440799969.4461
        "stop_memory" => integer 3965616
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4462
        "start_memory" => integer 3969040
        "stop_time" => float 1440799969.4462
        "stop_memory" => integer 3970632
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4472
        "start_memory" => integer 4017768
        "stop_time" => float 1440799969.4473
        "stop_memory" => integer 4018336
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4473
        "start_memory" => integer 4021776
        "stop_time" => float 1440799969.4474
        "stop_memory" => integer 4022360
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.449
        "start_memory" => integer 4036904
        "stop_time" => float 1440799969.449
        "stop_memory" => integer 4037464
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4491
        "start_memory" => integer 4040912
        "stop_time" => float 1440799969.4492
        "stop_memory" => integer 4041480
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4502
        "start_memory" => integer 4058096
        "stop_time" => float 1440799969.4502
        "stop_memory" => integer 4058680
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4503
        "start_memory" => integer 4062160
        "stop_time" => float 1440799969.4503
        "stop_memory" => integer 4062752
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4508
        "start_memory" => integer 4078528
        "stop_time" => float 1440799969.4509
        "stop_memory" => integer 4079096
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.451
        "start_memory" => integer 4082600
        "stop_time" => float 1440799969.451
        "stop_memory" => integer 4083192
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4515
        "start_memory" => integer 4096088
        "stop_time" => float 1440799969.4515
        "stop_memory" => integer 4096656
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4516
        "start_memory" => integer 4100160
        "stop_time" => float 1440799969.4517
        "stop_memory" => integer 4100752
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4522
        "start_memory" => integer 4113648
        "stop_time" => float 1440799969.4522
        "stop_memory" => integer 4114216
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4523
        "start_memory" => integer 4117720
        "stop_time" => float 1440799969.4523
        "stop_memory" => integer 4118312
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4528
        "start_memory" => integer 4131224
        "stop_time" => float 1440799969.4528
        "stop_memory" => integer 4131792
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4529
        "start_memory" => integer 4135296
        "stop_time" => float 1440799969.4529
        "stop_memory" => integer 4135888
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4534
        "start_memory" => integer 4148784
        "stop_time" => float 1440799969.4535
        "stop_memory" => integer 4149352
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4535
        "start_memory" => integer 4152856
        "stop_time" => float 1440799969.4536
        "stop_memory" => integer 4153448
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4541
        "start_memory" => integer 4166344
        "stop_time" => float 1440799969.4541
        "stop_memory" => integer 4166912
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4542
        "start_memory" => integer 4170416
        "stop_time" => float 1440799969.4542
        "stop_memory" => integer 4171008
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4547
        "start_memory" => integer 4183920
        "stop_time" => float 1440799969.4547
        "stop_memory" => integer 4184488
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4548
        "start_memory" => integer 4187992
        "stop_time" => float 1440799969.4549
        "stop_memory" => integer 4188584
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4553
        "start_memory" => integer 4201480
        "stop_time" => float 1440799969.4554
        "stop_memory" => integer 4202048
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4554
        "start_memory" => integer 4205552
        "stop_time" => float 1440799969.4555
        "stop_memory" => integer 4206144
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4559
        "start_memory" => integer 4219136
        "stop_time" => float 1440799969.456
        "stop_memory" => integer 4219704
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.456
        "start_memory" => integer 4223208
        "stop_time" => float 1440799969.4561
        "stop_memory" => integer 4223800
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4566
        "start_memory" => integer 4236696
        "stop_time" => float 1440799969.4566
        "stop_memory" => integer 4237264
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4567
        "start_memory" => integer 4240768
        "stop_time" => float 1440799969.4567
        "stop_memory" => integer 4241360
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4572
        "start_memory" => integer 4254256
        "stop_time" => float 1440799969.4572
        "stop_memory" => integer 4254824
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4573
        "start_memory" => integer 4258328
        "stop_time" => float 1440799969.4574
        "stop_memory" => integer 4258920
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4578
        "start_memory" => integer 4271800
        "stop_time" => float 1440799969.4579
        "stop_memory" => integer 4272368
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4579
        "start_memory" => integer 4275872
        "stop_time" => float 1440799969.458
        "stop_memory" => integer 4276464
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4584
        "start_memory" => integer 4289360
        "stop_time" => float 1440799969.4585
        "stop_memory" => integer 4289928
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4585
        "start_memory" => integer 4293432
        "stop_time" => float 1440799969.4586
        "stop_memory" => integer 4294024
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.459
        "start_memory" => integer 4306936
        "stop_time" => float 1440799969.4591
        "stop_memory" => integer 4307504
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4592
        "start_memory" => integer 4311008
        "stop_time" => float 1440799969.4592
        "stop_memory" => integer 4311600
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4597
        "start_memory" => integer 4324528
        "stop_time" => float 1440799969.4597
        "stop_memory" => integer 4325096
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4598
        "start_memory" => integer 4328600
        "stop_time" => float 1440799969.4598
        "stop_memory" => integer 4329192
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4603
        "start_memory" => integer 4342104
        "stop_time" => float 1440799969.4603
        "stop_memory" => integer 4342672
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4604
        "start_memory" => integer 4346176
        "stop_time" => float 1440799969.4605
        "stop_memory" => integer 4346768
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4609
        "start_memory" => integer 4359808
        "stop_time" => float 1440799969.461
        "stop_memory" => integer 4360376
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.461
        "start_memory" => integer 4363880
        "stop_time" => float 1440799969.4611
        "stop_memory" => integer 4364472
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4615
        "start_memory" => integer 4377400
        "stop_time" => float 1440799969.4616
        "stop_memory" => integer 4377968
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4616
        "start_memory" => integer 4381472
        "stop_time" => float 1440799969.4617
        "stop_memory" => integer 4382064
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4622
        "start_memory" => integer 4394976
        "stop_time" => float 1440799969.4622
        "stop_memory" => integer 4395544
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4623
        "start_memory" => integer 4399048
        "stop_time" => float 1440799969.4623
        "stop_memory" => integer 4399640
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4628
        "start_memory" => integer 4412552
        "stop_time" => float 1440799969.4628
        "stop_memory" => integer 4413120
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4629
        "start_memory" => integer 4416624
        "stop_time" => float 1440799969.463
        "stop_memory" => integer 4417216
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4634
        "start_memory" => integer 4430112
        "stop_time" => float 1440799969.4635
        "stop_memory" => integer 4430680
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4635
        "start_memory" => integer 4434184
        "stop_time" => float 1440799969.4636
        "stop_memory" => integer 4434776
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.464
        "start_memory" => integer 4447672
        "stop_time" => float 1440799969.4641
        "stop_memory" => integer 4448240
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4642
        "start_memory" => integer 4451744
        "stop_time" => float 1440799969.4642
        "stop_memory" => integer 4452336
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4647
        "start_memory" => integer 4465248
        "stop_time" => float 1440799969.4647
        "stop_memory" => integer 4465816
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4648
        "start_memory" => integer 4469320
        "stop_time" => float 1440799969.4648
        "stop_memory" => integer 4469912
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4653
        "start_memory" => integer 4482832
        "stop_time" => float 1440799969.4653
        "stop_memory" => integer 4483400
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4654
        "start_memory" => integer 4486904
        "stop_time" => float 1440799969.4654
        "stop_memory" => integer 4487496
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4665
        "start_memory" => integer 4500632
        "stop_time" => float 1440799969.4666
        "stop_memory" => integer 4501200
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4667
        "start_memory" => integer 4504704
        "stop_time" => float 1440799969.4667
        "stop_memory" => integer 4505296
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4686
        "start_memory" => integer 4528216
        "stop_time" => float 1440799969.4687
        "stop_memory" => integer 4528784
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4688
        "start_memory" => integer 4532248
        "stop_time" => float 1440799969.4688
        "stop_memory" => integer 4532824
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4698
        "start_memory" => integer 4614024
        "stop_time" => float 1440799969.4699
        "stop_memory" => integer 4614600
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4699
        "start_memory" => integer 4618064
        "stop_time" => float 1440799969.47
        "stop_memory" => integer 4618656
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4712
        "start_memory" => integer 4719832
        "stop_time" => float 1440799969.4712
        "stop_memory" => integer 4720384
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4713
        "start_memory" => integer 4723864
        "stop_time" => float 1440799969.4713
        "stop_memory" => integer 4724448
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4731
        "start_memory" => integer 4757440
        "stop_time" => float 1440799969.4731
        "stop_memory" => integer 4758032
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4732
        "start_memory" => integer 4761528
        "stop_time" => float 1440799969.4733
        "stop_memory" => integer 4762128
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4738
        "start_memory" => integer 4787696
        "stop_time" => float 1440799969.4739
        "stop_memory" => integer 4788288
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4739
        "start_memory" => integer 4791864
        "stop_time" => float 1440799969.474
        "stop_memory" => integer 4792472
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4749
        "start_memory" => integer 4811176
        "stop_time" => float 1440799969.475
        "stop_memory" => integer 4811744
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4751
        "start_memory" => integer 4815296
        "stop_time" => float 1440799969.4751
        "stop_memory" => integer 4815896
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4765
        "start_memory" => integer 4834512
        "stop_time" => float 1440799969.4765
        "stop_memory" => integer 4835104
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4789
        "start_memory" => integer 4844424
        "stop_time" => float 1440799969.4789
        "stop_memory" => integer 4845000
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4791
        "start_memory" => integer 4853384
        "stop_time" => float 1440799969.4792
        "stop_memory" => integer 4853968
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4802
        "start_memory" => integer 4863000
        "stop_time" => float 1440799969.4803
        "stop_memory" => integer 4863552
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4803
        "start_memory" => integer 4867008
        "stop_time" => float 1440799969.4804
        "stop_memory" => integer 4867608
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4808
        "start_memory" => integer 4871632
        "stop_time" => float 1440799969.4809
        "stop_memory" => integer 4872192
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4809
        "start_memory" => integer 4875680
        "stop_time" => float 1440799969.481
        "stop_memory" => integer 4876304
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4814
        "start_memory" => integer 4880264
        "stop_time" => float 1440799969.4814
        "stop_memory" => integer 4880824
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4815
        "start_memory" => integer 4884344
        "stop_time" => float 1440799969.4816
        "stop_memory" => integer 4884936
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4824
        "start_memory" => integer 4893984
        "stop_time" => float 1440799969.4824
        "stop_memory" => integer 4894552
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4825
        "start_memory" => integer 4898080
        "stop_time" => float 1440799969.4825
        "stop_memory" => integer 4898664
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4829
        "start_memory" => integer 4900752
        "stop_time" => float 1440799969.483
        "stop_memory" => integer 4901424
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4831
        "start_memory" => integer 4908160
        "stop_time" => float 1440799969.4831
        "stop_memory" => integer 4908704
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4832
        "start_memory" => integer 4912152
        "stop_time" => float 1440799969.4832
        "stop_memory" => integer 4912736
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.485
        "start_memory" => integer 5144344
        "stop_time" => float 1440799969.485
        "stop_memory" => integer 5144936
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4856
        "start_memory" => integer 5201616
        "stop_time" => float 1440799969.4857
        "stop_memory" => integer 5202200
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4861
        "start_memory" => integer 5236600
        "stop_time" => float 1440799969.4861
        "stop_memory" => integer 5237184
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4862
        "start_memory" => integer 5240688
        "stop_time" => float 1440799969.4862
        "stop_memory" => integer 5241288
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4866
        "start_memory" => integer 5247280
        "stop_time" => float 1440799969.4867
        "stop_memory" => integer 5247840
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.487
        "start_memory" => integer 5273928
        "stop_time" => float 1440799969.4871
        "stop_memory" => integer 5274504
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4874
        "start_memory" => integer 5303400
        "stop_time" => float 1440799969.4875
        "stop_memory" => integer 5303992
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4878
        "start_memory" => integer 5330640
        "stop_time" => float 1440799969.4879
        "stop_memory" => integer 5331176
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.488
        "start_memory" => integer 5334680
        "stop_time" => float 1440799969.488
        "stop_memory" => integer 5335264
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4897
        "start_memory" => integer 5362416
        "stop_time" => float 1440799969.4897
        "stop_memory" => integer 5363032
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4898
        "start_memory" => integer 5366840
        "stop_time" => float 1440799969.4899
        "stop_memory" => integer 5367432
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4918
        "start_memory" => integer 5398512
        "stop_time" => float 1440799969.4919
        "stop_memory" => integer 5399080
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.492
        "start_memory" => integer 5402672
        "stop_time" => float 1440799969.492
        "stop_memory" => integer 5403312
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4953
        "start_memory" => integer 5468024
        "stop_time" => float 1440799969.4954
        "stop_memory" => integer 5468552
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4955
        "start_memory" => integer 5472088
        "stop_time" => float 1440799969.4955
        "stop_memory" => integer 5472712
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.496
        "start_memory" => integer 5482784
        "stop_time" => float 1440799969.496
        "stop_memory" => integer 5483368
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4961
        "start_memory" => integer 5486864
        "stop_time" => float 1440799969.4962
        "stop_memory" => integer 5487456
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4968
        "start_memory" => integer 5531960
        "stop_time" => float 1440799969.4968
        "stop_memory" => integer 5532552
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4969
        "start_memory" => integer 5536144
        "stop_time" => float 1440799969.497
        "stop_memory" => integer 5536736
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4974
        "start_memory" => integer 5557056
        "stop_time" => float 1440799969.4974
        "stop_memory" => integer 5557664
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4975
        "start_memory" => integer 5561192
        "stop_time" => float 1440799969.4975
        "stop_memory" => integer 5561784
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4985
        "start_memory" => integer 5610440
        "stop_time" => float 1440799969.4985
        "stop_memory" => integer 5611000
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4986
        "start_memory" => integer 5614504
        "stop_time" => float 1440799969.4987
        "stop_memory" => integer 5615096
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4991
        "start_memory" => integer 5637368
        "stop_time" => float 1440799969.4992
        "stop_memory" => integer 5637984
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.4992
        "start_memory" => integer 5641464
        "stop_time" => float 1440799969.4993
        "stop_memory" => integer 5642032
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5002
        "start_memory" => integer 5714592
        "stop_time" => float 1440799969.5002
        "stop_memory" => integer 5715176
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5003
        "start_memory" => integer 5718704
        "stop_time" => float 1440799969.5004
        "stop_memory" => integer 5719288
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5041
        "start_memory" => integer 5738384
        "stop_time" => float 1440799969.5042
        "stop_memory" => integer 5738944
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5043
        "start_memory" => integer 5742512
        "stop_time" => float 1440799969.5044
        "stop_memory" => integer 5743192
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5052
        "start_memory" => integer 5802760
        "stop_time" => float 1440799969.5052
        "stop_memory" => integer 5803344
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5053
        "start_memory" => integer 5806888
        "stop_time" => float 1440799969.5053
        "stop_memory" => integer 5807472
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5062
        "start_memory" => integer 5876560
        "stop_time" => float 1440799969.5062
        "stop_memory" => integer 5877168
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5063
        "start_memory" => integer 5880768
        "stop_time" => float 1440799969.5064
        "stop_memory" => integer 5881360
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5071
        "start_memory" => integer 5898728
        "stop_time" => float 1440799969.5071
        "stop_memory" => integer 5899328
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5074
        "start_memory" => integer 5865192
        "stop_time" => float 1440799969.5074
        "stop_memory" => integer 5867512
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.5079
        "start_memory" => integer 5903696
        "stop_time" => float 1440799969.508
        "stop_memory" => integer 5905360
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1440799969.508
        "start_memory" => integer 5904992
        "stop_time" => float 1440799969.508
        "stop_memory" => integer 5906656
    )
)

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