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 1411076638.0133
        "start_memory" => integer 1692096
        "stop_time" => float 1411076638.2752
        "stop_memory" => integer 8471928
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0133
        "start_memory" => integer 1694912
        "stop_time" => float 1411076638.0134
        "stop_memory" => integer 1695504
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0141
        "start_memory" => integer 1823904
        "stop_time" => float 1411076638.0142
        "stop_memory" => integer 1824464
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0143
        "start_memory" => integer 1829896
        "stop_time" => float 1411076638.0144
        "stop_memory" => integer 1830480
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0145
        "start_memory" => integer 1841176
        "stop_time" => float 1411076638.0145
        "stop_memory" => integer 1841720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0146
        "start_memory" => integer 1846624
        "stop_time" => float 1411076638.0146
        "stop_memory" => integer 1847200
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0148
        "start_memory" => integer 1850552
        "stop_time" => float 1411076638.0148
        "stop_memory" => integer 1851136
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0177
        "start_memory" => integer 2434904
        "stop_time" => float 1411076638.0178
        "stop_memory" => integer 2435480
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0179
        "start_memory" => integer 2440352
        "stop_time" => float 1411076638.0179
        "stop_memory" => integer 2440992
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0183
        "start_memory" => integer 2586704
        "stop_time" => float 1411076638.0184
        "stop_memory" => integer 2587232
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0185
        "start_memory" => integer 2591880
        "stop_time" => float 1411076638.0186
        "stop_memory" => integer 2592448
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0189
        "start_memory" => integer 2624208
        "stop_time" => float 1411076638.019
        "stop_memory" => integer 2624752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0191
        "start_memory" => integer 2629392
        "stop_time" => float 1411076638.0191
        "stop_memory" => integer 2629960
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0199
        "start_memory" => integer 2797512
        "stop_time" => float 1411076638.02
        "stop_memory" => integer 2798056
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0201
        "start_memory" => integer 2802696
        "stop_time" => float 1411076638.0202
        "stop_memory" => integer 2803264
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0205
        "start_memory" => integer 2857784
        "stop_time" => float 1411076638.0206
        "stop_memory" => integer 2858376
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0206
        "start_memory" => integer 2860296
        "stop_time" => float 1411076638.0207
        "stop_memory" => integer 2860984
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0207
        "start_memory" => integer 2865864
        "stop_time" => float 1411076638.0208
        "stop_memory" => integer 2866448
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.021
        "start_memory" => integer 2869160
        "stop_time" => float 1411076638.021
        "stop_memory" => integer 2869720
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0211
        "start_memory" => integer 2874600
        "stop_time" => float 1411076638.0212
        "stop_memory" => integer 2875184
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0215
        "start_memory" => integer 2924680
        "stop_time" => float 1411076638.0216
        "stop_memory" => integer 2925224
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0216
        "start_memory" => integer 2929896
        "stop_time" => float 1411076638.0217
        "stop_memory" => integer 2930472
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0223
        "start_memory" => integer 3026832
        "stop_time" => float 1411076638.0224
        "stop_memory" => integer 3027368
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0225
        "start_memory" => integer 3032008
        "stop_time" => float 1411076638.0226
        "stop_memory" => integer 3032576
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0244
        "start_memory" => integer 3117144
        "stop_time" => float 1411076638.0245
        "stop_memory" => integer 3117736
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0816
        "start_memory" => integer 3157016
        "stop_time" => float 1411076638.0816
        "stop_memory" => integer 3157584
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0818
        "start_memory" => integer 3162248
        "stop_time" => float 1411076638.0818
        "stop_memory" => integer 3162824
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0826
        "start_memory" => integer 3216744
        "stop_time" => float 1411076638.0827
        "stop_memory" => integer 3217296
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0828
        "start_memory" => integer 3222136
        "stop_time" => float 1411076638.0828
        "stop_memory" => integer 3222712
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0834
        "start_memory" => integer 3247744
        "stop_time" => float 1411076638.0835
        "stop_memory" => integer 3248296
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0836
        "start_memory" => integer 3253016
        "stop_time" => float 1411076638.0836
        "stop_memory" => integer 3253592
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0844
        "start_memory" => integer 3326712
        "stop_time" => float 1411076638.0845
        "stop_memory" => integer 3327296
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0846
        "start_memory" => integer 3345304
        "stop_time" => float 1411076638.0847
        "stop_memory" => integer 3346120
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0848
        "start_memory" => integer 3350984
        "stop_time" => float 1411076638.0848
        "stop_memory" => integer 3351568
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0855
        "start_memory" => integer 3416696
        "stop_time" => float 1411076638.0856
        "stop_memory" => integer 3417272
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0858
        "start_memory" => integer 3436672
        "stop_time" => float 1411076638.0858
        "stop_memory" => integer 3437248
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0863
        "start_memory" => integer 3485800
        "stop_time" => float 1411076638.0863
        "stop_memory" => integer 3486376
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0867
        "start_memory" => integer 3497544
        "stop_time" => float 1411076638.0868
        "stop_memory" => integer 3498120
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.087
        "start_memory" => integer 3516144
        "stop_time" => float 1411076638.087
        "stop_memory" => integer 3516720
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0872
        "start_memory" => integer 3526408
        "stop_time" => float 1411076638.0873
        "stop_memory" => integer 3526984
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0876
        "start_memory" => integer 3547112
        "stop_time" => float 1411076638.0877
        "stop_memory" => integer 3547688
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.088
        "start_memory" => integer 3568176
        "stop_time" => float 1411076638.0881
        "stop_memory" => integer 3568768
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0885
        "start_memory" => integer 3581992
        "stop_time" => float 1411076638.0885
        "stop_memory" => integer 3582560
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0888
        "start_memory" => integer 3594784
        "stop_time" => float 1411076638.0888
        "stop_memory" => integer 3595360
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0892
        "start_memory" => integer 3643632
        "stop_time" => float 1411076638.0892
        "stop_memory" => integer 3644192
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.09
        "start_memory" => integer 3682664
        "stop_time" => float 1411076638.0901
        "stop_memory" => integer 3683248
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0904
        "start_memory" => integer 3702648
        "stop_time" => float 1411076638.0905
        "stop_memory" => integer 3703224
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0908
        "start_memory" => integer 3734400
        "stop_time" => float 1411076638.0908
        "stop_memory" => integer 3734976
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0912
        "start_memory" => integer 3753688
        "stop_time" => float 1411076638.0912
        "stop_memory" => integer 3754232
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.0914
        "start_memory" => integer 3758904
        "stop_time" => float 1411076638.0914
        "stop_memory" => integer 3759480
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1028
        "start_memory" => integer 3880176
        "stop_time" => float 1411076638.1028
        "stop_memory" => integer 3880728
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1031
        "start_memory" => integer 3885560
        "stop_time" => float 1411076638.1031
        "stop_memory" => integer 3886136
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1079
        "start_memory" => integer 3911616
        "stop_time" => float 1411076638.1079
        "stop_memory" => integer 3912200
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.108
        "start_memory" => integer 3917136
        "stop_time" => float 1411076638.1081
        "stop_memory" => integer 3917712
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1123
        "start_memory" => integer 3943296
        "stop_time" => float 1411076638.1124
        "stop_memory" => integer 3943856
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1125
        "start_memory" => integer 3948712
        "stop_time" => float 1411076638.1126
        "stop_memory" => integer 3949280
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1131
        "start_memory" => integer 4036688
        "stop_time" => float 1411076638.1131
        "stop_memory" => integer 4037288
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1173
        "start_memory" => integer 4044232
        "stop_time" => float 1411076638.1173
        "stop_memory" => integer 4044784
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1175
        "start_memory" => integer 4049664
        "stop_time" => float 1411076638.1175
        "stop_memory" => integer 4050248
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1304
        "start_memory" => integer 4107072
        "stop_time" => float 1411076638.1305
        "stop_memory" => integer 4107632
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1307
        "start_memory" => integer 4112552
        "stop_time" => float 1411076638.1307
        "stop_memory" => integer 4113136
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1309
        "start_memory" => integer 4136416
        "stop_time" => float 1411076638.1309
        "stop_memory" => integer 4136992
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1315
        "start_memory" => integer 4146064
        "stop_time" => float 1411076638.1315
        "stop_memory" => integer 4146624
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1316
        "start_memory" => integer 4151488
        "stop_time" => float 1411076638.1317
        "stop_memory" => integer 4152072
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1325
        "start_memory" => integer 4231536
        "stop_time" => float 1411076638.1326
        "stop_memory" => integer 4232608
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1327
        "start_memory" => integer 4237512
        "stop_time" => float 1411076638.1327
        "stop_memory" => integer 4238096
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.138
        "start_memory" => integer 4263760
        "stop_time" => float 1411076638.138
        "stop_memory" => integer 4264320
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1382
        "start_memory" => integer 4269184
        "stop_time" => float 1411076638.1382
        "stop_memory" => integer 4269768
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.139
        "start_memory" => integer 4291136
        "stop_time" => float 1411076638.139
        "stop_memory" => integer 4291664
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1391
        "start_memory" => integer 4296312
        "stop_time" => float 1411076638.1392
        "stop_memory" => integer 4296904
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1417
        "start_memory" => integer 4307808
        "stop_time" => float 1411076638.1418
        "stop_memory" => integer 4308400
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1424
        "start_memory" => integer 4319184
        "stop_time" => float 1411076638.1425
        "stop_memory" => integer 4319760
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1428
        "start_memory" => integer 4358400
        "stop_time" => float 1411076638.1429
        "stop_memory" => integer 4358864
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1457
        "start_memory" => integer 4360040
        "stop_time" => float 1411076638.1458
        "stop_memory" => integer 4360616
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1492
        "start_memory" => integer 4389624
        "stop_time" => float 1411076638.1494
        "stop_memory" => integer 4390168
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1495
        "start_memory" => integer 4395024
        "stop_time" => float 1411076638.1497
        "stop_memory" => integer 4395600
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1574
        "start_memory" => integer 4410112
        "stop_time" => float 1411076638.1575
        "stop_memory" => integer 4410688
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1605
        "start_memory" => integer 4415528
        "stop_time" => float 1411076638.1607
        "stop_memory" => integer 4416064
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1608
        "start_memory" => integer 4420712
        "stop_time" => float 1411076638.1609
        "stop_memory" => integer 4421280
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.162
        "start_memory" => integer 4449024
        "stop_time" => float 1411076638.1621
        "stop_memory" => integer 4449600
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1622
        "start_memory" => integer 4454440
        "stop_time" => float 1411076638.1623
        "stop_memory" => integer 4455024
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1646
        "start_memory" => integer 4575104
        "stop_time" => float 1411076638.1647
        "stop_memory" => integer 4575680
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1648
        "start_memory" => integer 4580632
        "stop_time" => float 1411076638.1648
        "stop_memory" => integer 4581224
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1649
        "start_memory" => integer 4586384
        "stop_time" => float 1411076638.165
        "stop_memory" => integer 4586936
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.166
        "start_memory" => integer 4606376
        "stop_time" => float 1411076638.1661
        "stop_memory" => integer 4606968
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1663
        "start_memory" => integer 4611928
        "stop_time" => float 1411076638.1663
        "stop_memory" => integer 4612520
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1685
        "start_memory" => integer 4618456
        "stop_time" => float 1411076638.1686
        "stop_memory" => integer 4619008
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1687
        "start_memory" => integer 4623880
        "stop_time" => float 1411076638.1688
        "stop_memory" => integer 4624464
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1704
        "start_memory" => integer 4756344
        "stop_time" => float 1411076638.1704
        "stop_memory" => integer 4756920
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1705
        "start_memory" => integer 4761880
        "stop_time" => float 1411076638.1706
        "stop_memory" => integer 4762472
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1707
        "start_memory" => integer 4783152
        "stop_time" => float 1411076638.1707
        "stop_memory" => integer 4783720
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1708
        "start_memory" => integer 4788608
        "stop_time" => float 1411076638.1708
        "stop_memory" => integer 4789184
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1718
        "start_memory" => integer 4851216
        "stop_time" => float 1411076638.1718
        "stop_memory" => integer 4851776
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1719
        "start_memory" => integer 4856648
        "stop_time" => float 1411076638.1719
        "stop_memory" => integer 4857232
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1728
        "start_memory" => integer 4915456
        "stop_time" => float 1411076638.1728
        "stop_memory" => integer 4916016
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1729
        "start_memory" => integer 4920880
        "stop_time" => float 1411076638.1729
        "stop_memory" => integer 4921464
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1738
        "start_memory" => integer 4964040
        "stop_time" => float 1411076638.1739
        "stop_memory" => integer 4964616
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1739
        "start_memory" => integer 4969584
        "stop_time" => float 1411076638.174
        "stop_memory" => integer 4970176
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.175
        "start_memory" => integer 5020128
        "stop_time" => float 1411076638.175
        "stop_memory" => integer 5020712
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1752
        "start_memory" => integer 5026800
        "stop_time" => float 1411076638.1752
        "stop_memory" => integer 5027400
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1754
        "start_memory" => integer 5047048
        "stop_time" => float 1411076638.1755
        "stop_memory" => integer 5047624
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1756
        "start_memory" => integer 5053696
        "stop_time" => float 1411076638.1756
        "stop_memory" => integer 5054296
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1766
        "start_memory" => integer 5117280
        "stop_time" => float 1411076638.1767
        "stop_memory" => integer 5117856
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1768
        "start_memory" => integer 5122920
        "stop_time" => float 1411076638.1768
        "stop_memory" => integer 5123520
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1778
        "start_memory" => integer 5171112
        "stop_time" => float 1411076638.1778
        "stop_memory" => integer 5171688
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1779
        "start_memory" => integer 5176744
        "stop_time" => float 1411076638.1779
        "stop_memory" => integer 5177344
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1788
        "start_memory" => integer 5209408
        "stop_time" => float 1411076638.1788
        "stop_memory" => integer 5209984
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1789
        "start_memory" => integer 5215048
        "stop_time" => float 1411076638.1789
        "stop_memory" => integer 5215648
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.18
        "start_memory" => integer 5315472
        "stop_time" => float 1411076638.18
        "stop_memory" => integer 5316048
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1801
        "start_memory" => integer 5321112
        "stop_time" => float 1411076638.1801
        "stop_memory" => integer 5321712
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1821
        "start_memory" => integer 5369600
        "stop_time" => float 1411076638.1821
        "stop_memory" => integer 5370160
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1822
        "start_memory" => integer 5375128
        "stop_time" => float 1411076638.1822
        "stop_memory" => integer 5375720
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1831
        "start_memory" => integer 5398848
        "stop_time" => float 1411076638.1831
        "stop_memory" => integer 5399368
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1832
        "start_memory" => integer 5404008
        "stop_time" => float 1411076638.1833
        "stop_memory" => integer 5404576
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1842
        "start_memory" => integer 5513640
        "stop_time" => float 1411076638.1843
        "stop_memory" => integer 5514200
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1845
        "start_memory" => integer 5518896
        "stop_time" => float 1411076638.1845
        "stop_memory" => integer 5519472
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1885
        "start_memory" => integer 5539200
        "stop_time" => float 1411076638.1886
        "stop_memory" => integer 5539736
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1886
        "start_memory" => integer 5544392
        "stop_time" => float 1411076638.1887
        "stop_memory" => integer 5544960
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1912
        "start_memory" => integer 5582376
        "stop_time" => float 1411076638.1913
        "stop_memory" => integer 5582920
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1914
        "start_memory" => integer 5587560
        "stop_time" => float 1411076638.1915
        "stop_memory" => integer 5588128
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1921
        "start_memory" => integer 5630504
        "stop_time" => float 1411076638.1922
        "stop_memory" => integer 5631048
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1923
        "start_memory" => integer 5635712
        "stop_time" => float 1411076638.1923
        "stop_memory" => integer 5636280
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1929
        "start_memory" => integer 5665600
        "stop_time" => float 1411076638.193
        "stop_memory" => integer 5666144
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1931
        "start_memory" => integer 5670784
        "stop_time" => float 1411076638.1931
        "stop_memory" => integer 5671352
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1943
        "start_memory" => integer 5746344
        "stop_time" => float 1411076638.1944
        "stop_memory" => integer 5746888
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1945
        "start_memory" => integer 5751544
        "stop_time" => float 1411076638.1945
        "stop_memory" => integer 5752112
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1967
        "start_memory" => integer 5774256
        "stop_time" => float 1411076638.1967
        "stop_memory" => integer 5774800
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1968
        "start_memory" => integer 5779440
        "stop_time" => float 1411076638.1969
        "stop_memory" => integer 5780008
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1986
        "start_memory" => integer 5800840
        "stop_time" => float 1411076638.1986
        "stop_memory" => integer 5802424
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1987
        "start_memory" => integer 5807112
        "stop_time" => float 1411076638.1988
        "stop_memory" => integer 5807688
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.1999
        "start_memory" => integer 5935104
        "stop_time" => float 1411076638.1999
        "stop_memory" => integer 5935656
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2
        "start_memory" => integer 5940344
        "stop_time" => float 1411076638.2001
        "stop_memory" => integer 5940920
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2017
        "start_memory" => integer 6107952
        "stop_time" => float 1411076638.2018
        "stop_memory" => integer 6108504
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2018
        "start_memory" => integer 6113192
        "stop_time" => float 1411076638.2019
        "stop_memory" => integer 6113752
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2042
        "start_memory" => integer 6169368
        "stop_time" => float 1411076638.2043
        "stop_memory" => integer 6169944
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2044
        "start_memory" => integer 6174848
        "stop_time" => float 1411076638.2045
        "stop_memory" => integer 6175416
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2051
        "start_memory" => integer 6215456
        "stop_time" => float 1411076638.2052
        "stop_memory" => integer 6216032
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2054
        "start_memory" => integer 6220984
        "stop_time" => float 1411076638.2055
        "stop_memory" => integer 6221576
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2069
        "start_memory" => integer 6247512
        "stop_time" => float 1411076638.2069
        "stop_memory" => integer 6248080
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.207
        "start_memory" => integer 6252952
        "stop_time" => float 1411076638.207
        "stop_memory" => integer 6253528
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2093
        "start_memory" => integer 6282760
        "stop_time" => float 1411076638.2093
        "stop_memory" => integer 6283336
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2117
        "start_memory" => integer 6292824
        "stop_time" => float 1411076638.2118
        "stop_memory" => integer 6293400
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2174
        "start_memory" => integer 6329544
        "stop_time" => float 1411076638.2175
        "stop_memory" => integer 6330104
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2177
        "start_memory" => integer 6338576
        "stop_time" => float 1411076638.2177
        "stop_memory" => integer 6339064
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2191
        "start_memory" => integer 6339320
        "stop_time" => float 1411076638.2191
        "stop_memory" => integer 6339888
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2209
        "start_memory" => integer 6346352
        "stop_time" => float 1411076638.2211
        "stop_memory" => integer 6346920
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2228
        "start_memory" => integer 6358728
        "stop_time" => float 1411076638.2228
        "stop_memory" => integer 6359312
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2234
        "start_memory" => integer 6368048
        "stop_time" => float 1411076638.2235
        "stop_memory" => integer 6368624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.224
        "start_memory" => integer 6371704
        "stop_time" => float 1411076638.2241
        "stop_memory" => integer 6372264
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2245
        "start_memory" => integer 6380624
        "stop_time" => float 1411076638.2246
        "stop_memory" => integer 6381192
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.225
        "start_memory" => integer 6389496
        "stop_time" => float 1411076638.2251
        "stop_memory" => integer 6390032
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2252
        "start_memory" => integer 6394680
        "stop_time" => float 1411076638.2253
        "stop_memory" => integer 6395248
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2259
        "start_memory" => integer 6404552
        "stop_time" => float 1411076638.2259
        "stop_memory" => integer 6405128
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.226
        "start_memory" => integer 6413824
        "stop_time" => float 1411076638.226
        "stop_memory" => integer 6414360
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2261
        "start_memory" => integer 6419008
        "stop_time" => float 1411076638.2261
        "stop_memory" => integer 6419576
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2279
        "start_memory" => integer 6769952
        "stop_time" => float 1411076638.2279
        "stop_memory" => integer 6770528
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2287
        "start_memory" => integer 6853944
        "stop_time" => float 1411076638.2288
        "stop_memory" => integer 6854528
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2293
        "start_memory" => integer 6897688
        "stop_time" => float 1411076638.2293
        "stop_memory" => integer 6898232
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2298
        "start_memory" => integer 6927624
        "stop_time" => float 1411076638.2298
        "stop_memory" => integer 6928184
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2302
        "start_memory" => integer 6960088
        "stop_time" => float 1411076638.2302
        "stop_memory" => integer 6960664
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2307
        "start_memory" => integer 6990992
        "stop_time" => float 1411076638.2308
        "stop_memory" => integer 6991528
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2309
        "start_memory" => integer 6996176
        "stop_time" => float 1411076638.2309
        "stop_memory" => integer 6996744
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2315
        "start_memory" => integer 7007752
        "stop_time" => float 1411076638.2316
        "stop_memory" => integer 7008312
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2316
        "start_memory" => integer 7013008
        "stop_time" => float 1411076638.2317
        "stop_memory" => integer 7013584
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2326
        "start_memory" => integer 7056368
        "stop_time" => float 1411076638.2326
        "stop_memory" => integer 7056920
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2327
        "start_memory" => integer 7061592
        "stop_time" => float 1411076638.2328
        "stop_memory" => integer 7062168
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2336
        "start_memory" => integer 7075944
        "stop_time" => float 1411076638.2336
        "stop_memory" => integer 7076512
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2337
        "start_memory" => integer 7081384
        "stop_time" => float 1411076638.2338
        "stop_memory" => integer 7081968
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2341
        "start_memory" => integer 7097664
        "stop_time" => float 1411076638.2342
        "stop_memory" => integer 7098224
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2343
        "start_memory" => integer 7103112
        "stop_time" => float 1411076638.2343
        "stop_memory" => integer 7103696
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2346
        "start_memory" => integer 7121776
        "stop_time" => float 1411076638.2346
        "stop_memory" => integer 7122352
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2347
        "start_memory" => integer 7127344
        "stop_time" => float 1411076638.2348
        "stop_memory" => integer 7127936
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2349
        "start_memory" => integer 7133384
        "stop_time" => float 1411076638.235
        "stop_memory" => integer 7133936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2351
        "start_memory" => integer 7138816
        "stop_time" => float 1411076638.2351
        "stop_memory" => integer 7139400
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2352
        "start_memory" => integer 7148120
        "stop_time" => float 1411076638.2352
        "stop_memory" => integer 7148680
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2353
        "start_memory" => integer 7153552
        "stop_time" => float 1411076638.2354
        "stop_memory" => integer 7154136
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2365
        "start_memory" => integer 7251728
        "stop_time" => float 1411076638.2365
        "stop_memory" => integer 7252304
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2366
        "start_memory" => integer 7257288
        "stop_time" => float 1411076638.2366
        "stop_memory" => integer 7257896
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2372
        "start_memory" => integer 7276736
        "stop_time" => float 1411076638.2374
        "stop_memory" => integer 7277304
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2375
        "start_memory" => integer 7282336
        "stop_time" => float 1411076638.2376
        "stop_memory" => integer 7282920
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2382
        "start_memory" => integer 7299744
        "stop_time" => float 1411076638.2383
        "stop_memory" => integer 7300312
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2384
        "start_memory" => integer 7305256
        "stop_time" => float 1411076638.2384
        "stop_memory" => integer 7305848
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2391
        "start_memory" => integer 7324608
        "stop_time" => float 1411076638.2391
        "stop_memory" => integer 7325160
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2392
        "start_memory" => integer 7330024
        "stop_time" => float 1411076638.2393
        "stop_memory" => integer 7330608
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2394
        "start_memory" => integer 7337984
        "stop_time" => float 1411076638.2395
        "stop_memory" => integer 7338544
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2396
        "start_memory" => integer 7343416
        "stop_time" => float 1411076638.2397
        "stop_memory" => integer 7344000
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2402
        "start_memory" => integer 7357192
        "stop_time" => float 1411076638.2402
        "stop_memory" => integer 7357768
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2403
        "start_memory" => integer 7362720
        "stop_time" => float 1411076638.2403
        "stop_memory" => integer 7363312
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2409
        "start_memory" => integer 7367992
        "stop_time" => float 1411076638.2409
        "stop_memory" => integer 7368544
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.241
        "start_memory" => integer 7373424
        "stop_time" => float 1411076638.241
        "stop_memory" => integer 7374008
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2416
        "start_memory" => integer 7389296
        "stop_time" => float 1411076638.2416
        "stop_memory" => integer 7389856
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2417
        "start_memory" => integer 7394736
        "stop_time" => float 1411076638.2418
        "stop_memory" => integer 7395320
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2424
        "start_memory" => integer 7433304
        "stop_time" => float 1411076638.2424
        "stop_memory" => integer 7433880
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2425
        "start_memory" => integer 7438840
        "stop_time" => float 1411076638.2425
        "stop_memory" => integer 7439432
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2438
        "start_memory" => integer 7453160
        "stop_time" => float 1411076638.2439
        "stop_memory" => integer 7453728
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.244
        "start_memory" => integer 7458696
        "stop_time" => float 1411076638.244
        "stop_memory" => integer 7459288
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2454
        "start_memory" => integer 7469624
        "stop_time" => float 1411076638.2455
        "stop_memory" => integer 7470192
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2456
        "start_memory" => integer 7475136
        "stop_time" => float 1411076638.2456
        "stop_memory" => integer 7475728
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2461
        "start_memory" => integer 7496088
        "stop_time" => float 1411076638.2462
        "stop_memory" => integer 7496656
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2463
        "start_memory" => integer 7501624
        "stop_time" => float 1411076638.2464
        "stop_memory" => integer 7502216
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2469
        "start_memory" => integer 7521560
        "stop_time" => float 1411076638.2469
        "stop_memory" => integer 7522128
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.247
        "start_memory" => integer 7527144
        "stop_time" => float 1411076638.247
        "stop_memory" => integer 7527736
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2475
        "start_memory" => integer 7544936
        "stop_time" => float 1411076638.2476
        "stop_memory" => integer 7545504
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2477
        "start_memory" => integer 7550472
        "stop_time" => float 1411076638.2477
        "stop_memory" => integer 7551064
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2482
        "start_memory" => integer 7569400
        "stop_time" => float 1411076638.2482
        "stop_memory" => integer 7569968
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2483
        "start_memory" => integer 7574920
        "stop_time" => float 1411076638.2483
        "stop_memory" => integer 7575512
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2489
        "start_memory" => integer 7595648
        "stop_time" => float 1411076638.2489
        "stop_memory" => integer 7596200
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.249
        "start_memory" => integer 7601080
        "stop_time" => float 1411076638.249
        "stop_memory" => integer 7601664
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2495
        "start_memory" => integer 7612032
        "stop_time" => float 1411076638.2496
        "stop_memory" => integer 7612592
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2496
        "start_memory" => integer 7617480
        "stop_time" => float 1411076638.2497
        "stop_memory" => integer 7618064
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2502
        "start_memory" => integer 7633560
        "stop_time" => float 1411076638.2502
        "stop_memory" => integer 7634136
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2503
        "start_memory" => integer 7639152
        "stop_time" => float 1411076638.2504
        "stop_memory" => integer 7639744
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2516
        "start_memory" => integer 7651240
        "stop_time" => float 1411076638.2517
        "stop_memory" => integer 7651808
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2518
        "start_memory" => integer 7656824
        "stop_time" => float 1411076638.2518
        "stop_memory" => integer 7657416
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2528
        "start_memory" => integer 7667216
        "stop_time" => float 1411076638.2529
        "stop_memory" => integer 7667784
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2529
        "start_memory" => integer 7672720
        "stop_time" => float 1411076638.253
        "stop_memory" => integer 7673296
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2535
        "start_memory" => integer 7679480
        "stop_time" => float 1411076638.2535
        "stop_memory" => integer 7680056
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2537
        "start_memory" => integer 7685008
        "stop_time" => float 1411076638.2537
        "stop_memory" => integer 7685600
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2555
        "start_memory" => integer 7695432
        "stop_time" => float 1411076638.2556
        "stop_memory" => integer 7695984
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2557
        "start_memory" => integer 7700864
        "stop_time" => float 1411076638.2557
        "stop_memory" => integer 7701448
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2572
        "start_memory" => integer 7775832
        "stop_time" => float 1411076638.2572
        "stop_memory" => integer 7776360
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2573
        "start_memory" => integer 7781016
        "stop_time" => float 1411076638.2574
        "stop_memory" => integer 7781584
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.261
        "start_memory" => integer 7807632
        "stop_time" => float 1411076638.261
        "stop_memory" => integer 7808176
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2611
        "start_memory" => integer 7812832
        "stop_time" => float 1411076638.2612
        "stop_memory" => integer 7813400
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2619
        "start_memory" => integer 7845216
        "stop_time" => float 1411076638.2619
        "stop_memory" => integer 7845760
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.262
        "start_memory" => integer 7850408
        "stop_time" => float 1411076638.262
        "stop_memory" => integer 7850976
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2628
        "start_memory" => integer 7917280
        "stop_time" => float 1411076638.2628
        "stop_memory" => integer 7917840
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.263
        "start_memory" => integer 7924744
        "stop_time" => float 1411076638.263
        "stop_memory" => integer 7925320
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2635
        "start_memory" => integer 7948768
        "stop_time" => float 1411076638.2636
        "stop_memory" => integer 7949352
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2638
        "start_memory" => integer 7956320
        "stop_time" => float 1411076638.2638
        "stop_memory" => integer 7956912
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.265
        "start_memory" => integer 8027576
        "stop_time" => float 1411076638.2651
        "stop_memory" => integer 8028112
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2652
        "start_memory" => integer 8032960
        "stop_time" => float 1411076638.2652
        "stop_memory" => integer 8033536
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2658
        "start_memory" => integer 8061264
        "stop_time" => float 1411076638.2659
        "stop_memory" => integer 8061800
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2659
        "start_memory" => integer 8066456
        "stop_time" => float 1411076638.266
        "stop_memory" => integer 8067024
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2671
        "start_memory" => integer 8187872
        "stop_time" => float 1411076638.2671
        "stop_memory" => integer 8188416
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2672
        "start_memory" => integer 8193088
        "stop_time" => float 1411076638.2672
        "stop_memory" => integer 8193656
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2716
        "start_memory" => integer 8232384
        "stop_time" => float 1411076638.2717
        "stop_memory" => integer 8232928
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2717
        "start_memory" => integer 8237584
        "stop_time" => float 1411076638.2718
        "stop_memory" => integer 8238152
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2734
        "start_memory" => integer 8479056
        "stop_time" => float 1411076638.2734
        "stop_memory" => integer 8479632
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2736
        "start_memory" => integer 8484568
        "stop_time" => float 1411076638.2736
        "stop_memory" => integer 8485152
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.2747
        "start_memory" => integer 8503176
        "stop_time" => float 1411076638.2747
        "stop_memory" => integer 8503752
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411076638.275
        "start_memory" => integer 8470432
        "stop_time" => float 1411076638.2751
        "stop_memory" => integer 8472544
    )
)

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