Modules

Profiler
extends Kohana_Profiler

Provides simple benchmarking and profiling. To display the statistics that have been collected, load the profiler/stats View:

echo View::factory('profiler/stats');
package
Kohana
category
Helpers
author
Kohana Team
copyright
© 2009-2010 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/profiler.php on line 3.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(242) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1409306373.8136
        "start_memory" => integer 1692096
        "stop_time" => float 1409306374.1191
        "stop_memory" => integer 8471896
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8136
        "start_memory" => integer 1694912
        "stop_time" => float 1409306373.8137
        "stop_memory" => integer 1695504
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8144
        "start_memory" => integer 1823904
        "stop_time" => float 1409306373.8144
        "stop_memory" => integer 1824464
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8145
        "start_memory" => integer 1829896
        "stop_time" => float 1409306373.8146
        "stop_memory" => integer 1830480
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8147
        "start_memory" => integer 1841176
        "stop_time" => float 1409306373.8148
        "stop_memory" => integer 1841720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8148
        "start_memory" => integer 1846624
        "stop_time" => float 1409306373.8149
        "stop_memory" => integer 1847200
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8151
        "start_memory" => integer 1850552
        "stop_time" => float 1409306373.8151
        "stop_memory" => integer 1851136
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.818
        "start_memory" => integer 2434904
        "stop_time" => float 1409306373.8181
        "stop_memory" => integer 2435480
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8182
        "start_memory" => integer 2440352
        "stop_time" => float 1409306373.8183
        "stop_memory" => integer 2440992
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8187
        "start_memory" => integer 2586704
        "stop_time" => float 1409306373.8188
        "stop_memory" => integer 2587232
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.819
        "start_memory" => integer 2591880
        "stop_time" => float 1409306373.8191
        "stop_memory" => integer 2592448
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8195
        "start_memory" => integer 2624208
        "stop_time" => float 1409306373.8196
        "stop_memory" => integer 2624752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8196
        "start_memory" => integer 2629392
        "stop_time" => float 1409306373.8197
        "stop_memory" => integer 2629960
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8206
        "start_memory" => integer 2797512
        "stop_time" => float 1409306373.8206
        "stop_memory" => integer 2798056
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8207
        "start_memory" => integer 2802696
        "stop_time" => float 1409306373.8208
        "stop_memory" => integer 2803264
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8212
        "start_memory" => integer 2857784
        "stop_time" => float 1409306373.8212
        "stop_memory" => integer 2858376
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8213
        "start_memory" => integer 2860296
        "stop_time" => float 1409306373.8213
        "stop_memory" => integer 2860984
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8215
        "start_memory" => integer 2865864
        "stop_time" => float 1409306373.8215
        "stop_memory" => integer 2866448
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8216
        "start_memory" => integer 2869160
        "stop_time" => float 1409306373.8217
        "stop_memory" => integer 2869720
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8218
        "start_memory" => integer 2874600
        "stop_time" => float 1409306373.8219
        "stop_memory" => integer 2875184
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8223
        "start_memory" => integer 2924680
        "stop_time" => float 1409306373.8223
        "stop_memory" => integer 2925224
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8224
        "start_memory" => integer 2929896
        "stop_time" => float 1409306373.8225
        "stop_memory" => integer 2930472
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8233
        "start_memory" => integer 3026832
        "stop_time" => float 1409306373.8234
        "stop_memory" => integer 3027368
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8235
        "start_memory" => integer 3032008
        "stop_time" => float 1409306373.8235
        "stop_memory" => integer 3032576
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.8254
        "start_memory" => integer 3117144
        "stop_time" => float 1409306373.8254
        "stop_memory" => integer 3117736
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9013
        "start_memory" => integer 3157000
        "stop_time" => float 1409306373.9014
        "stop_memory" => integer 3157568
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9016
        "start_memory" => integer 3162232
        "stop_time" => float 1409306373.9016
        "stop_memory" => integer 3162808
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9028
        "start_memory" => integer 3216752
        "stop_time" => float 1409306373.9029
        "stop_memory" => integer 3217304
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.903
        "start_memory" => integer 3222144
        "stop_time" => float 1409306373.9031
        "stop_memory" => integer 3222720
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9037
        "start_memory" => integer 3247752
        "stop_time" => float 1409306373.9038
        "stop_memory" => integer 3248304
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9039
        "start_memory" => integer 3253000
        "stop_time" => float 1409306373.9039
        "stop_memory" => integer 3253576
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.905
        "start_memory" => integer 3326712
        "stop_time" => float 1409306373.905
        "stop_memory" => integer 3327296
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9052
        "start_memory" => integer 3345288
        "stop_time" => float 1409306373.9052
        "stop_memory" => integer 3346104
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9053
        "start_memory" => integer 3350968
        "stop_time" => float 1409306373.9054
        "stop_memory" => integer 3351552
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9062
        "start_memory" => integer 3416688
        "stop_time" => float 1409306373.9063
        "stop_memory" => integer 3417264
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9067
        "start_memory" => integer 3436664
        "stop_time" => float 1409306373.9067
        "stop_memory" => integer 3437240
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9072
        "start_memory" => integer 3485800
        "stop_time" => float 1409306373.9073
        "stop_memory" => integer 3486376
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9075
        "start_memory" => integer 3497544
        "stop_time" => float 1409306373.9075
        "stop_memory" => integer 3498120
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9078
        "start_memory" => integer 3516128
        "stop_time" => float 1409306373.9079
        "stop_memory" => integer 3516704
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9081
        "start_memory" => integer 3526368
        "stop_time" => float 1409306373.9081
        "stop_memory" => integer 3526944
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9086
        "start_memory" => integer 3547080
        "stop_time" => float 1409306373.9086
        "stop_memory" => integer 3547656
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.909
        "start_memory" => integer 3568136
        "stop_time" => float 1409306373.909
        "stop_memory" => integer 3568728
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9093
        "start_memory" => integer 3581976
        "stop_time" => float 1409306373.9094
        "stop_memory" => integer 3582544
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9097
        "start_memory" => integer 3594752
        "stop_time" => float 1409306373.9097
        "stop_memory" => integer 3595328
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9102
        "start_memory" => integer 3643600
        "stop_time" => float 1409306373.9103
        "stop_memory" => integer 3644160
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9108
        "start_memory" => integer 3682632
        "stop_time" => float 1409306373.9109
        "stop_memory" => integer 3683216
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9114
        "start_memory" => integer 3702616
        "stop_time" => float 1409306373.9114
        "stop_memory" => integer 3703192
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9119
        "start_memory" => integer 3734368
        "stop_time" => float 1409306373.912
        "stop_memory" => integer 3734944
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9124
        "start_memory" => integer 3753656
        "stop_time" => float 1409306373.9124
        "stop_memory" => integer 3754200
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9125
        "start_memory" => integer 3758872
        "stop_time" => float 1409306373.9125
        "stop_memory" => integer 3759448
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9227
        "start_memory" => integer 3880136
        "stop_time" => float 1409306373.9228
        "stop_memory" => integer 3880688
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.923
        "start_memory" => integer 3885520
        "stop_time" => float 1409306373.923
        "stop_memory" => integer 3886096
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9282
        "start_memory" => integer 3911576
        "stop_time" => float 1409306373.9283
        "stop_memory" => integer 3912160
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9284
        "start_memory" => integer 3917096
        "stop_time" => float 1409306373.9285
        "stop_memory" => integer 3917672
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9341
        "start_memory" => integer 3943248
        "stop_time" => float 1409306373.9342
        "stop_memory" => integer 3943808
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9343
        "start_memory" => integer 3948664
        "stop_time" => float 1409306373.9343
        "stop_memory" => integer 3949232
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.935
        "start_memory" => integer 4036600
        "stop_time" => float 1409306373.9351
        "stop_memory" => integer 4037200
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9419
        "start_memory" => integer 4044128
        "stop_time" => float 1409306373.942
        "stop_memory" => integer 4044680
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9422
        "start_memory" => integer 4049584
        "stop_time" => float 1409306373.9422
        "stop_memory" => integer 4050168
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9633
        "start_memory" => integer 4107008
        "stop_time" => float 1409306373.9633
        "stop_memory" => integer 4107568
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9635
        "start_memory" => integer 4112488
        "stop_time" => float 1409306373.9635
        "stop_memory" => integer 4113072
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9636
        "start_memory" => integer 4136360
        "stop_time" => float 1409306373.9637
        "stop_memory" => integer 4136936
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9645
        "start_memory" => integer 4146040
        "stop_time" => float 1409306373.9645
        "stop_memory" => integer 4146600
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9647
        "start_memory" => integer 4151464
        "stop_time" => float 1409306373.9647
        "stop_memory" => integer 4152048
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.966
        "start_memory" => integer 4231488
        "stop_time" => float 1409306373.966
        "stop_memory" => integer 4232560
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9661
        "start_memory" => integer 4237472
        "stop_time" => float 1409306373.9662
        "stop_memory" => integer 4238056
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9718
        "start_memory" => integer 4263720
        "stop_time" => float 1409306373.9719
        "stop_memory" => integer 4264280
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.972
        "start_memory" => integer 4269144
        "stop_time" => float 1409306373.9721
        "stop_memory" => integer 4269728
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.973
        "start_memory" => integer 4291120
        "stop_time" => float 1409306373.973
        "stop_memory" => integer 4291648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9732
        "start_memory" => integer 4296296
        "stop_time" => float 1409306373.9733
        "stop_memory" => integer 4296864
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.976
        "start_memory" => integer 4307768
        "stop_time" => float 1409306373.9762
        "stop_memory" => integer 4308360
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9769
        "start_memory" => integer 4319168
        "stop_time" => float 1409306373.9769
        "stop_memory" => integer 4319744
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9772
        "start_memory" => integer 4358360
        "stop_time" => float 1409306373.9773
        "stop_memory" => integer 4358848
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9792
        "start_memory" => integer 4360024
        "stop_time" => float 1409306373.9792
        "stop_memory" => integer 4360600
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.981
        "start_memory" => integer 4389648
        "stop_time" => float 1409306373.981
        "stop_memory" => integer 4390192
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9811
        "start_memory" => integer 4395048
        "stop_time" => float 1409306373.9812
        "stop_memory" => integer 4395624
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.985
        "start_memory" => integer 4410136
        "stop_time" => float 1409306373.985
        "stop_memory" => integer 4410712
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9867
        "start_memory" => integer 4415576
        "stop_time" => float 1409306373.9868
        "stop_memory" => integer 4416112
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9869
        "start_memory" => integer 4420760
        "stop_time" => float 1409306373.9869
        "stop_memory" => integer 4421328
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9878
        "start_memory" => integer 4449120
        "stop_time" => float 1409306373.9878
        "stop_memory" => integer 4449696
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9879
        "start_memory" => integer 4454536
        "stop_time" => float 1409306373.988
        "stop_memory" => integer 4455120
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9905
        "start_memory" => integer 4575192
        "stop_time" => float 1409306373.9905
        "stop_memory" => integer 4575768
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9906
        "start_memory" => integer 4580720
        "stop_time" => float 1409306373.9906
        "stop_memory" => integer 4581312
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9907
        "start_memory" => integer 4586472
        "stop_time" => float 1409306373.9908
        "stop_memory" => integer 4587024
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9913
        "start_memory" => integer 4606472
        "stop_time" => float 1409306373.9914
        "stop_memory" => integer 4607064
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9915
        "start_memory" => integer 4612024
        "stop_time" => float 1409306373.9915
        "stop_memory" => integer 4612616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9933
        "start_memory" => integer 4618552
        "stop_time" => float 1409306373.9933
        "stop_memory" => integer 4619104
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9934
        "start_memory" => integer 4623976
        "stop_time" => float 1409306373.9935
        "stop_memory" => integer 4624552
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9949
        "start_memory" => integer 4756456
        "stop_time" => float 1409306373.995
        "stop_memory" => integer 4757032
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9952
        "start_memory" => integer 4761992
        "stop_time" => float 1409306373.9952
        "stop_memory" => integer 4762608
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9955
        "start_memory" => integer 4783288
        "stop_time" => float 1409306373.9955
        "stop_memory" => integer 4783856
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9956
        "start_memory" => integer 4788768
        "stop_time" => float 1409306373.9956
        "stop_memory" => integer 4789344
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9968
        "start_memory" => integer 4851376
        "stop_time" => float 1409306373.9968
        "stop_memory" => integer 4851936
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9969
        "start_memory" => integer 4856808
        "stop_time" => float 1409306373.9969
        "stop_memory" => integer 4857392
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9978
        "start_memory" => integer 4915624
        "stop_time" => float 1409306373.9979
        "stop_memory" => integer 4916184
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.998
        "start_memory" => integer 4921048
        "stop_time" => float 1409306373.9981
        "stop_memory" => integer 4921632
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9993
        "start_memory" => integer 4964208
        "stop_time" => float 1409306373.9994
        "stop_memory" => integer 4964784
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306373.9995
        "start_memory" => integer 4969752
        "stop_time" => float 1409306373.9995
        "stop_memory" => integer 4970344
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0004
        "start_memory" => integer 5020296
        "stop_time" => float 1409306374.0004
        "stop_memory" => integer 5020880
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0005
        "start_memory" => integer 5026968
        "stop_time" => float 1409306374.0006
        "stop_memory" => integer 5027568
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0007
        "start_memory" => integer 5047216
        "stop_time" => float 1409306374.0008
        "stop_memory" => integer 5047792
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0009
        "start_memory" => integer 5053864
        "stop_time" => float 1409306374.0009
        "stop_memory" => integer 5054464
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0022
        "start_memory" => integer 5117424
        "stop_time" => float 1409306374.0022
        "stop_memory" => integer 5118000
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0023
        "start_memory" => integer 5123064
        "stop_time" => float 1409306374.0024
        "stop_memory" => integer 5123664
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0035
        "start_memory" => integer 5171256
        "stop_time" => float 1409306374.0036
        "stop_memory" => integer 5171832
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0037
        "start_memory" => integer 5176888
        "stop_time" => float 1409306374.0037
        "stop_memory" => integer 5177488
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0047
        "start_memory" => integer 5209552
        "stop_time" => float 1409306374.0047
        "stop_memory" => integer 5210128
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0048
        "start_memory" => integer 5215192
        "stop_time" => float 1409306374.0049
        "stop_memory" => integer 5215792
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0062
        "start_memory" => integer 5315616
        "stop_time" => float 1409306374.0063
        "stop_memory" => integer 5316192
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0064
        "start_memory" => integer 5321256
        "stop_time" => float 1409306374.0065
        "stop_memory" => integer 5321856
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0087
        "start_memory" => integer 5369744
        "stop_time" => float 1409306374.0087
        "stop_memory" => integer 5370304
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0088
        "start_memory" => integer 5375272
        "stop_time" => float 1409306374.0089
        "stop_memory" => integer 5375864
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0099
        "start_memory" => integer 5398992
        "stop_time" => float 1409306374.0101
        "stop_memory" => integer 5399512
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0102
        "start_memory" => integer 5404152
        "stop_time" => float 1409306374.0103
        "stop_memory" => integer 5404720
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0116
        "start_memory" => integer 5513776
        "stop_time" => float 1409306374.0116
        "stop_memory" => integer 5514336
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0117
        "start_memory" => integer 5519016
        "stop_time" => float 1409306374.0117
        "stop_memory" => integer 5519592
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0164
        "start_memory" => integer 5539336
        "stop_time" => float 1409306374.0164
        "stop_memory" => integer 5539872
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0165
        "start_memory" => integer 5544536
        "stop_time" => float 1409306374.0166
        "stop_memory" => integer 5545104
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0194
        "start_memory" => integer 5582536
        "stop_time" => float 1409306374.0195
        "stop_memory" => integer 5583080
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0196
        "start_memory" => integer 5587720
        "stop_time" => float 1409306374.0196
        "stop_memory" => integer 5588288
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0203
        "start_memory" => integer 5630616
        "stop_time" => float 1409306374.0204
        "stop_memory" => integer 5631160
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0205
        "start_memory" => integer 5635800
        "stop_time" => float 1409306374.0206
        "stop_memory" => integer 5636392
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0212
        "start_memory" => integer 5665736
        "stop_time" => float 1409306374.0213
        "stop_memory" => integer 5666280
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0214
        "start_memory" => integer 5670920
        "stop_time" => float 1409306374.0214
        "stop_memory" => integer 5671488
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0227
        "start_memory" => integer 5746480
        "stop_time" => float 1409306374.023
        "stop_memory" => integer 5747024
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0231
        "start_memory" => integer 5751680
        "stop_time" => float 1409306374.0233
        "stop_memory" => integer 5752248
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0256
        "start_memory" => integer 5774376
        "stop_time" => float 1409306374.0257
        "stop_memory" => integer 5774920
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0258
        "start_memory" => integer 5779560
        "stop_time" => float 1409306374.0259
        "stop_memory" => integer 5780128
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0283
        "start_memory" => integer 5800976
        "stop_time" => float 1409306374.0284
        "stop_memory" => integer 5802560
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0285
        "start_memory" => integer 5807248
        "stop_time" => float 1409306374.0286
        "stop_memory" => integer 5807824
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0302
        "start_memory" => integer 5935208
        "stop_time" => float 1409306374.0303
        "stop_memory" => integer 5935760
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0304
        "start_memory" => integer 5940440
        "stop_time" => float 1409306374.0305
        "stop_memory" => integer 5941016
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0323
        "start_memory" => integer 6108056
        "stop_time" => float 1409306374.0323
        "stop_memory" => integer 6108608
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0324
        "start_memory" => integer 6113296
        "stop_time" => float 1409306374.0326
        "stop_memory" => integer 6113856
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0359
        "start_memory" => integer 6169424
        "stop_time" => float 1409306374.036
        "stop_memory" => integer 6170000
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0362
        "start_memory" => integer 6174872
        "stop_time" => float 1409306374.0363
        "stop_memory" => integer 6175456
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0375
        "start_memory" => integer 6215528
        "stop_time" => float 1409306374.0376
        "stop_memory" => integer 6216104
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0377
        "start_memory" => integer 6221056
        "stop_time" => float 1409306374.0378
        "stop_memory" => integer 6221648
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0393
        "start_memory" => integer 6247560
        "stop_time" => float 1409306374.0393
        "stop_memory" => integer 6248128
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0394
        "start_memory" => integer 6253024
        "stop_time" => float 1409306374.0395
        "stop_memory" => integer 6253584
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0424
        "start_memory" => integer 6282792
        "stop_time" => float 1409306374.0425
        "stop_memory" => integer 6283368
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.045
        "start_memory" => integer 6292856
        "stop_time" => float 1409306374.0451
        "stop_memory" => integer 6293432
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0507
        "start_memory" => integer 6329568
        "stop_time" => float 1409306374.0508
        "stop_memory" => integer 6330128
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.051
        "start_memory" => integer 6338600
        "stop_time" => float 1409306374.0511
        "stop_memory" => integer 6339088
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0528
        "start_memory" => integer 6339344
        "stop_time" => float 1409306374.0529
        "stop_memory" => integer 6339912
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0548
        "start_memory" => integer 6346376
        "stop_time" => float 1409306374.0548
        "stop_memory" => integer 6346944
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0561
        "start_memory" => integer 6358752
        "stop_time" => float 1409306374.0562
        "stop_memory" => integer 6359336
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0568
        "start_memory" => integer 6368072
        "stop_time" => float 1409306374.0568
        "stop_memory" => integer 6368648
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0574
        "start_memory" => integer 6371728
        "stop_time" => float 1409306374.0574
        "stop_memory" => integer 6372288
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0577
        "start_memory" => integer 6380632
        "stop_time" => float 1409306374.0578
        "stop_memory" => integer 6381200
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0582
        "start_memory" => integer 6389504
        "stop_time" => float 1409306374.0583
        "stop_memory" => integer 6390040
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0584
        "start_memory" => integer 6394688
        "stop_time" => float 1409306374.0585
        "stop_memory" => integer 6395256
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0591
        "start_memory" => integer 6404560
        "stop_time" => float 1409306374.0592
        "stop_memory" => integer 6405136
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0593
        "start_memory" => integer 6413832
        "stop_time" => float 1409306374.0593
        "stop_memory" => integer 6414368
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0594
        "start_memory" => integer 6419016
        "stop_time" => float 1409306374.0595
        "stop_memory" => integer 6419584
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0616
        "start_memory" => integer 6769992
        "stop_time" => float 1409306374.0616
        "stop_memory" => integer 6770568
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0626
        "start_memory" => integer 6853984
        "stop_time" => float 1409306374.0627
        "stop_memory" => integer 6854568
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0634
        "start_memory" => integer 6897728
        "stop_time" => float 1409306374.0634
        "stop_memory" => integer 6898272
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0639
        "start_memory" => integer 6927664
        "stop_time" => float 1409306374.064
        "stop_memory" => integer 6928224
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0646
        "start_memory" => integer 6960128
        "stop_time" => float 1409306374.0646
        "stop_memory" => integer 6960704
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0651
        "start_memory" => integer 6991032
        "stop_time" => float 1409306374.0652
        "stop_memory" => integer 6991568
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0653
        "start_memory" => integer 6996216
        "stop_time" => float 1409306374.0654
        "stop_memory" => integer 6996784
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.066
        "start_memory" => integer 7007792
        "stop_time" => float 1409306374.0661
        "stop_memory" => integer 7008352
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0662
        "start_memory" => integer 7013048
        "stop_time" => float 1409306374.0662
        "stop_memory" => integer 7013624
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.067
        "start_memory" => integer 7056408
        "stop_time" => float 1409306374.0671
        "stop_memory" => integer 7056960
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0672
        "start_memory" => integer 7061632
        "stop_time" => float 1409306374.0673
        "stop_memory" => integer 7062208
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0679
        "start_memory" => integer 7075968
        "stop_time" => float 1409306374.068
        "stop_memory" => integer 7076536
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0682
        "start_memory" => integer 7081408
        "stop_time" => float 1409306374.0682
        "stop_memory" => integer 7081992
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0685
        "start_memory" => integer 7097688
        "stop_time" => float 1409306374.0686
        "stop_memory" => integer 7098248
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0687
        "start_memory" => integer 7103136
        "stop_time" => float 1409306374.0687
        "stop_memory" => integer 7103720
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.069
        "start_memory" => integer 7121776
        "stop_time" => float 1409306374.0691
        "stop_memory" => integer 7122352
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0693
        "start_memory" => integer 7127320
        "stop_time" => float 1409306374.0693
        "stop_memory" => integer 7127912
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0695
        "start_memory" => integer 7133360
        "stop_time" => float 1409306374.0696
        "stop_memory" => integer 7133936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0696
        "start_memory" => integer 7138816
        "stop_time" => float 1409306374.0697
        "stop_memory" => integer 7139400
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0698
        "start_memory" => integer 7148096
        "stop_time" => float 1409306374.0699
        "stop_memory" => integer 7148656
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0701
        "start_memory" => integer 7153528
        "stop_time" => float 1409306374.0702
        "stop_memory" => integer 7154112
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0713
        "start_memory" => integer 7251656
        "stop_time" => float 1409306374.0714
        "stop_memory" => integer 7252232
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0715
        "start_memory" => integer 7257216
        "stop_time" => float 1409306374.0715
        "stop_memory" => integer 7257808
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0722
        "start_memory" => integer 7276648
        "stop_time" => float 1409306374.0723
        "stop_memory" => integer 7277232
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0724
        "start_memory" => integer 7282264
        "stop_time" => float 1409306374.0725
        "stop_memory" => integer 7282848
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.073
        "start_memory" => integer 7299672
        "stop_time" => float 1409306374.0731
        "stop_memory" => integer 7300240
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0732
        "start_memory" => integer 7305184
        "stop_time" => float 1409306374.0732
        "stop_memory" => integer 7305776
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0738
        "start_memory" => integer 7324536
        "stop_time" => float 1409306374.0739
        "stop_memory" => integer 7325088
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.074
        "start_memory" => integer 7329952
        "stop_time" => float 1409306374.0742
        "stop_memory" => integer 7330536
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0743
        "start_memory" => integer 7337912
        "stop_time" => float 1409306374.0744
        "stop_memory" => integer 7338472
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0745
        "start_memory" => integer 7343344
        "stop_time" => float 1409306374.0745
        "stop_memory" => integer 7343928
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0751
        "start_memory" => integer 7357120
        "stop_time" => float 1409306374.0752
        "stop_memory" => integer 7357696
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0753
        "start_memory" => integer 7362648
        "stop_time" => float 1409306374.0753
        "stop_memory" => integer 7363240
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0758
        "start_memory" => integer 7367920
        "stop_time" => float 1409306374.0759
        "stop_memory" => integer 7368472
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0759
        "start_memory" => integer 7373352
        "stop_time" => float 1409306374.076
        "stop_memory" => integer 7373936
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0767
        "start_memory" => integer 7389224
        "stop_time" => float 1409306374.0767
        "stop_memory" => integer 7389784
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0768
        "start_memory" => integer 7394664
        "stop_time" => float 1409306374.0768
        "stop_memory" => integer 7395248
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0776
        "start_memory" => integer 7433232
        "stop_time" => float 1409306374.0776
        "stop_memory" => integer 7433808
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0777
        "start_memory" => integer 7438768
        "stop_time" => float 1409306374.0777
        "stop_memory" => integer 7439360
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0793
        "start_memory" => integer 7453088
        "stop_time" => float 1409306374.0794
        "stop_memory" => integer 7453656
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0795
        "start_memory" => integer 7458624
        "stop_time" => float 1409306374.0795
        "stop_memory" => integer 7459216
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0809
        "start_memory" => integer 7469552
        "stop_time" => float 1409306374.081
        "stop_memory" => integer 7470120
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0811
        "start_memory" => integer 7475064
        "stop_time" => float 1409306374.0811
        "stop_memory" => integer 7475656
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0817
        "start_memory" => integer 7496016
        "stop_time" => float 1409306374.0819
        "stop_memory" => integer 7496584
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.082
        "start_memory" => integer 7501552
        "stop_time" => float 1409306374.082
        "stop_memory" => integer 7502144
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0826
        "start_memory" => integer 7521496
        "stop_time" => float 1409306374.0826
        "stop_memory" => integer 7522064
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0827
        "start_memory" => integer 7527088
        "stop_time" => float 1409306374.0827
        "stop_memory" => integer 7527680
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0833
        "start_memory" => integer 7544896
        "stop_time" => float 1409306374.0834
        "stop_memory" => integer 7545464
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0836
        "start_memory" => integer 7550432
        "stop_time" => float 1409306374.0836
        "stop_memory" => integer 7551024
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0843
        "start_memory" => integer 7569352
        "stop_time" => float 1409306374.0843
        "stop_memory" => integer 7569920
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0844
        "start_memory" => integer 7574872
        "stop_time" => float 1409306374.0845
        "stop_memory" => integer 7575464
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0851
        "start_memory" => integer 7595600
        "stop_time" => float 1409306374.0852
        "stop_memory" => integer 7596152
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0853
        "start_memory" => integer 7601032
        "stop_time" => float 1409306374.0853
        "stop_memory" => integer 7601616
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0859
        "start_memory" => integer 7611984
        "stop_time" => float 1409306374.086
        "stop_memory" => integer 7612544
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0861
        "start_memory" => integer 7617432
        "stop_time" => float 1409306374.0862
        "stop_memory" => integer 7618016
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0868
        "start_memory" => integer 7633512
        "stop_time" => float 1409306374.0869
        "stop_memory" => integer 7634088
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.087
        "start_memory" => integer 7639104
        "stop_time" => float 1409306374.0871
        "stop_memory" => integer 7639696
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0886
        "start_memory" => integer 7651168
        "stop_time" => float 1409306374.0886
        "stop_memory" => integer 7651736
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0887
        "start_memory" => integer 7656752
        "stop_time" => float 1409306374.0888
        "stop_memory" => integer 7657344
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0898
        "start_memory" => integer 7667152
        "stop_time" => float 1409306374.0898
        "stop_memory" => integer 7667720
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0901
        "start_memory" => integer 7672656
        "stop_time" => float 1409306374.0901
        "stop_memory" => integer 7673232
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0907
        "start_memory" => integer 7679392
        "stop_time" => float 1409306374.0908
        "stop_memory" => integer 7679992
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0909
        "start_memory" => integer 7684944
        "stop_time" => float 1409306374.091
        "stop_memory" => integer 7685536
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.093
        "start_memory" => integer 7695376
        "stop_time" => float 1409306374.0931
        "stop_memory" => integer 7695928
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0932
        "start_memory" => integer 7700808
        "stop_time" => float 1409306374.0932
        "stop_memory" => integer 7701392
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.095
        "start_memory" => integer 7775768
        "stop_time" => float 1409306374.0951
        "stop_memory" => integer 7776296
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0952
        "start_memory" => integer 7780944
        "stop_time" => float 1409306374.0953
        "stop_memory" => integer 7781512
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.0998
        "start_memory" => integer 7807568
        "stop_time" => float 1409306374.0999
        "stop_memory" => integer 7808112
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1
        "start_memory" => integer 7812768
        "stop_time" => float 1409306374.1001
        "stop_memory" => integer 7813336
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1009
        "start_memory" => integer 7845120
        "stop_time" => float 1409306374.101
        "stop_memory" => integer 7845664
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.101
        "start_memory" => integer 7850312
        "stop_time" => float 1409306374.1011
        "stop_memory" => integer 7850880
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1019
        "start_memory" => integer 7917176
        "stop_time" => float 1409306374.1019
        "stop_memory" => integer 7917736
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1021
        "start_memory" => integer 7924640
        "stop_time" => float 1409306374.1022
        "stop_memory" => integer 7925216
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1029
        "start_memory" => integer 7948664
        "stop_time" => float 1409306374.103
        "stop_memory" => integer 7949248
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1033
        "start_memory" => integer 7956216
        "stop_time" => float 1409306374.1033
        "stop_memory" => integer 7956808
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1048
        "start_memory" => integer 8027464
        "stop_time" => float 1409306374.1049
        "stop_memory" => integer 8028000
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1051
        "start_memory" => integer 8032848
        "stop_time" => float 1409306374.1051
        "stop_memory" => integer 8033448
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1057
        "start_memory" => integer 8061224
        "stop_time" => float 1409306374.1058
        "stop_memory" => integer 8061760
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1059
        "start_memory" => integer 8066400
        "stop_time" => float 1409306374.1059
        "stop_memory" => integer 8066968
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1076
        "start_memory" => integer 8187832
        "stop_time" => float 1409306374.1077
        "stop_memory" => integer 8188376
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1079
        "start_memory" => integer 8193032
        "stop_time" => float 1409306374.108
        "stop_memory" => integer 8193600
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1146
        "start_memory" => integer 8232320
        "stop_time" => float 1409306374.1147
        "stop_memory" => integer 8232864
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1149
        "start_memory" => integer 8237520
        "stop_time" => float 1409306374.1149
        "stop_memory" => integer 8238088
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1172
        "start_memory" => integer 8479000
        "stop_time" => float 1409306374.1173
        "stop_memory" => integer 8479576
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1174
        "start_memory" => integer 8484512
        "stop_time" => float 1409306374.1175
        "stop_memory" => integer 8485096
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1185
        "start_memory" => integer 8503128
        "stop_time" => float 1409306374.1186
        "stop_memory" => integer 8503704
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409306374.1189
        "start_memory" => integer 8470400
        "stop_time" => float 1409306374.1189
        "stop_memory" => integer 8472512
    )
)

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