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 1412230964.7404
        "start_memory" => integer 1692096
        "stop_time" => float 1412230964.9876
        "stop_memory" => integer 8471928
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7405
        "start_memory" => integer 1694912
        "stop_time" => float 1412230964.7405
        "stop_memory" => integer 1695504
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7411
        "start_memory" => integer 1823904
        "stop_time" => float 1412230964.7412
        "stop_memory" => integer 1824464
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7413
        "start_memory" => integer 1829896
        "stop_time" => float 1412230964.7413
        "stop_memory" => integer 1830480
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7414
        "start_memory" => integer 1841176
        "stop_time" => float 1412230964.7415
        "stop_memory" => integer 1841720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7416
        "start_memory" => integer 1846624
        "stop_time" => float 1412230964.7416
        "stop_memory" => integer 1847200
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7418
        "start_memory" => integer 1850552
        "stop_time" => float 1412230964.7418
        "stop_memory" => integer 1851136
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7445
        "start_memory" => integer 2434904
        "stop_time" => float 1412230964.7446
        "stop_memory" => integer 2435480
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7447
        "start_memory" => integer 2440352
        "stop_time" => float 1412230964.7448
        "stop_memory" => integer 2440992
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7452
        "start_memory" => integer 2586704
        "stop_time" => float 1412230964.7452
        "stop_memory" => integer 2587232
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7453
        "start_memory" => integer 2591880
        "stop_time" => float 1412230964.7453
        "stop_memory" => integer 2592448
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7456
        "start_memory" => integer 2624208
        "stop_time" => float 1412230964.7457
        "stop_memory" => integer 2624752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7457
        "start_memory" => integer 2629392
        "stop_time" => float 1412230964.7458
        "stop_memory" => integer 2629960
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7466
        "start_memory" => integer 2797512
        "stop_time" => float 1412230964.7467
        "stop_memory" => integer 2798056
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7467
        "start_memory" => integer 2802696
        "stop_time" => float 1412230964.7468
        "stop_memory" => integer 2803264
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7471
        "start_memory" => integer 2857784
        "stop_time" => float 1412230964.7472
        "stop_memory" => integer 2858376
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7472
        "start_memory" => integer 2860296
        "stop_time" => float 1412230964.7473
        "stop_memory" => integer 2860984
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7474
        "start_memory" => integer 2865864
        "stop_time" => float 1412230964.7474
        "stop_memory" => integer 2866448
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7476
        "start_memory" => integer 2869160
        "stop_time" => float 1412230964.7476
        "stop_memory" => integer 2869720
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7477
        "start_memory" => integer 2874600
        "stop_time" => float 1412230964.7477
        "stop_memory" => integer 2875184
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7481
        "start_memory" => integer 2924680
        "stop_time" => float 1412230964.7481
        "stop_memory" => integer 2925224
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7482
        "start_memory" => integer 2929896
        "stop_time" => float 1412230964.7482
        "stop_memory" => integer 2930472
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7488
        "start_memory" => integer 3026832
        "stop_time" => float 1412230964.7489
        "stop_memory" => integer 3027368
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7489
        "start_memory" => integer 3032008
        "stop_time" => float 1412230964.749
        "stop_memory" => integer 3032576
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.7503
        "start_memory" => integer 3117144
        "stop_time" => float 1412230964.7503
        "stop_memory" => integer 3117736
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8122
        "start_memory" => integer 3157016
        "stop_time" => float 1412230964.8122
        "stop_memory" => integer 3157584
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8123
        "start_memory" => integer 3162248
        "stop_time" => float 1412230964.8123
        "stop_memory" => integer 3162824
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8131
        "start_memory" => integer 3216744
        "stop_time" => float 1412230964.8131
        "stop_memory" => integer 3217296
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8132
        "start_memory" => integer 3222136
        "stop_time" => float 1412230964.8132
        "stop_memory" => integer 3222712
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8139
        "start_memory" => integer 3247744
        "stop_time" => float 1412230964.8139
        "stop_memory" => integer 3248296
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.814
        "start_memory" => integer 3253016
        "stop_time" => float 1412230964.814
        "stop_memory" => integer 3253592
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8147
        "start_memory" => integer 3326712
        "stop_time" => float 1412230964.8147
        "stop_memory" => integer 3327296
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8148
        "start_memory" => integer 3345304
        "stop_time" => float 1412230964.8149
        "stop_memory" => integer 3346120
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8149
        "start_memory" => integer 3350984
        "stop_time" => float 1412230964.815
        "stop_memory" => integer 3351568
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8154
        "start_memory" => integer 3416696
        "stop_time" => float 1412230964.8155
        "stop_memory" => integer 3417272
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8157
        "start_memory" => integer 3436672
        "stop_time" => float 1412230964.8158
        "stop_memory" => integer 3437248
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8161
        "start_memory" => integer 3485800
        "stop_time" => float 1412230964.8162
        "stop_memory" => integer 3486376
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8164
        "start_memory" => integer 3497544
        "stop_time" => float 1412230964.8164
        "stop_memory" => integer 3498120
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8167
        "start_memory" => integer 3516144
        "stop_time" => float 1412230964.8167
        "stop_memory" => integer 3516720
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8169
        "start_memory" => integer 3526408
        "stop_time" => float 1412230964.817
        "stop_memory" => integer 3526984
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8172
        "start_memory" => integer 3547112
        "stop_time" => float 1412230964.8172
        "stop_memory" => integer 3547688
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8175
        "start_memory" => integer 3568176
        "stop_time" => float 1412230964.8175
        "stop_memory" => integer 3568768
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8178
        "start_memory" => integer 3581992
        "stop_time" => float 1412230964.8178
        "stop_memory" => integer 3582560
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.818
        "start_memory" => integer 3594784
        "stop_time" => float 1412230964.818
        "stop_memory" => integer 3595360
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8183
        "start_memory" => integer 3643632
        "stop_time" => float 1412230964.8183
        "stop_memory" => integer 3644192
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8187
        "start_memory" => integer 3682664
        "stop_time" => float 1412230964.8187
        "stop_memory" => integer 3683248
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.819
        "start_memory" => integer 3702648
        "stop_time" => float 1412230964.819
        "stop_memory" => integer 3703224
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8193
        "start_memory" => integer 3734400
        "stop_time" => float 1412230964.8193
        "stop_memory" => integer 3734976
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8195
        "start_memory" => integer 3753688
        "stop_time" => float 1412230964.8195
        "stop_memory" => integer 3754232
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8196
        "start_memory" => integer 3758904
        "stop_time" => float 1412230964.8197
        "stop_memory" => integer 3759480
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.828
        "start_memory" => integer 3880176
        "stop_time" => float 1412230964.8281
        "stop_memory" => integer 3880728
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8282
        "start_memory" => integer 3885560
        "stop_time" => float 1412230964.8282
        "stop_memory" => integer 3886136
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.832
        "start_memory" => integer 3911616
        "stop_time" => float 1412230964.832
        "stop_memory" => integer 3912200
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8321
        "start_memory" => integer 3917136
        "stop_time" => float 1412230964.8321
        "stop_memory" => integer 3917712
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8358
        "start_memory" => integer 3943296
        "stop_time" => float 1412230964.8358
        "stop_memory" => integer 3943856
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8359
        "start_memory" => integer 3948712
        "stop_time" => float 1412230964.8359
        "stop_memory" => integer 3949280
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8363
        "start_memory" => integer 4036688
        "stop_time" => float 1412230964.8364
        "stop_memory" => integer 4037288
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8406
        "start_memory" => integer 4044232
        "stop_time" => float 1412230964.8406
        "stop_memory" => integer 4044784
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8407
        "start_memory" => integer 4049664
        "stop_time" => float 1412230964.8407
        "stop_memory" => integer 4050248
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8548
        "start_memory" => integer 4107072
        "stop_time" => float 1412230964.8549
        "stop_memory" => integer 4107632
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8551
        "start_memory" => integer 4112552
        "stop_time" => float 1412230964.8551
        "stop_memory" => integer 4113136
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8554
        "start_memory" => integer 4136416
        "stop_time" => float 1412230964.8554
        "stop_memory" => integer 4136992
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8562
        "start_memory" => integer 4146064
        "stop_time" => float 1412230964.8563
        "stop_memory" => integer 4146624
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8564
        "start_memory" => integer 4151488
        "stop_time" => float 1412230964.8564
        "stop_memory" => integer 4152072
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8574
        "start_memory" => integer 4231536
        "stop_time" => float 1412230964.8575
        "stop_memory" => integer 4232608
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8575
        "start_memory" => integer 4237512
        "stop_time" => float 1412230964.8576
        "stop_memory" => integer 4238096
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8621
        "start_memory" => integer 4263760
        "stop_time" => float 1412230964.8621
        "stop_memory" => integer 4264320
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8622
        "start_memory" => integer 4269184
        "stop_time" => float 1412230964.8622
        "stop_memory" => integer 4269768
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.863
        "start_memory" => integer 4291136
        "stop_time" => float 1412230964.8631
        "stop_memory" => integer 4291664
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8631
        "start_memory" => integer 4296312
        "stop_time" => float 1412230964.8632
        "stop_memory" => integer 4296904
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8653
        "start_memory" => integer 4307808
        "stop_time" => float 1412230964.8653
        "stop_memory" => integer 4308400
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8659
        "start_memory" => integer 4319184
        "stop_time" => float 1412230964.8659
        "stop_memory" => integer 4319760
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8662
        "start_memory" => integer 4358400
        "stop_time" => float 1412230964.8662
        "stop_memory" => integer 4358864
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8678
        "start_memory" => integer 4360040
        "stop_time" => float 1412230964.8678
        "stop_memory" => integer 4360616
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8696
        "start_memory" => integer 4389624
        "stop_time" => float 1412230964.8697
        "stop_memory" => integer 4390168
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8698
        "start_memory" => integer 4395024
        "stop_time" => float 1412230964.8698
        "stop_memory" => integer 4395600
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8729
        "start_memory" => integer 4410112
        "stop_time" => float 1412230964.873
        "stop_memory" => integer 4410688
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8745
        "start_memory" => integer 4415528
        "stop_time" => float 1412230964.8745
        "stop_memory" => integer 4416064
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8746
        "start_memory" => integer 4420712
        "stop_time" => float 1412230964.8746
        "stop_memory" => integer 4421280
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8752
        "start_memory" => integer 4449024
        "stop_time" => float 1412230964.8753
        "stop_memory" => integer 4449600
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8753
        "start_memory" => integer 4454440
        "stop_time" => float 1412230964.8754
        "stop_memory" => integer 4455024
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8772
        "start_memory" => integer 4575104
        "stop_time" => float 1412230964.8773
        "stop_memory" => integer 4575680
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8773
        "start_memory" => integer 4580632
        "stop_time" => float 1412230964.8774
        "stop_memory" => integer 4581224
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8775
        "start_memory" => integer 4586384
        "stop_time" => float 1412230964.8775
        "stop_memory" => integer 4586936
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.878
        "start_memory" => integer 4606376
        "stop_time" => float 1412230964.878
        "stop_memory" => integer 4606968
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8781
        "start_memory" => integer 4611928
        "stop_time" => float 1412230964.8781
        "stop_memory" => integer 4612520
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8797
        "start_memory" => integer 4618456
        "stop_time" => float 1412230964.8797
        "stop_memory" => integer 4619008
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8798
        "start_memory" => integer 4623880
        "stop_time" => float 1412230964.8799
        "stop_memory" => integer 4624464
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.881
        "start_memory" => integer 4756344
        "stop_time" => float 1412230964.881
        "stop_memory" => integer 4756920
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8811
        "start_memory" => integer 4761880
        "stop_time" => float 1412230964.8811
        "stop_memory" => integer 4762472
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8813
        "start_memory" => integer 4783152
        "stop_time" => float 1412230964.8813
        "stop_memory" => integer 4783720
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8814
        "start_memory" => integer 4788608
        "stop_time" => float 1412230964.8814
        "stop_memory" => integer 4789184
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8822
        "start_memory" => integer 4851216
        "stop_time" => float 1412230964.8823
        "stop_memory" => integer 4851776
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8823
        "start_memory" => integer 4856648
        "stop_time" => float 1412230964.8824
        "stop_memory" => integer 4857232
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8831
        "start_memory" => integer 4915456
        "stop_time" => float 1412230964.8831
        "stop_memory" => integer 4916016
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8832
        "start_memory" => integer 4920880
        "stop_time" => float 1412230964.8832
        "stop_memory" => integer 4921464
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8841
        "start_memory" => integer 4964040
        "stop_time" => float 1412230964.8841
        "stop_memory" => integer 4964616
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8842
        "start_memory" => integer 4969584
        "stop_time" => float 1412230964.8843
        "stop_memory" => integer 4970176
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8851
        "start_memory" => integer 5020128
        "stop_time" => float 1412230964.8851
        "stop_memory" => integer 5020712
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8852
        "start_memory" => integer 5026800
        "stop_time" => float 1412230964.8853
        "stop_memory" => integer 5027400
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8854
        "start_memory" => integer 5047048
        "stop_time" => float 1412230964.8854
        "stop_memory" => integer 5047624
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8856
        "start_memory" => integer 5053696
        "stop_time" => float 1412230964.8856
        "stop_memory" => integer 5054296
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8864
        "start_memory" => integer 5117280
        "stop_time" => float 1412230964.8865
        "stop_memory" => integer 5117856
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8866
        "start_memory" => integer 5122920
        "stop_time" => float 1412230964.8866
        "stop_memory" => integer 5123520
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8874
        "start_memory" => integer 5171112
        "stop_time" => float 1412230964.8874
        "stop_memory" => integer 5171688
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8875
        "start_memory" => integer 5176744
        "stop_time" => float 1412230964.8875
        "stop_memory" => integer 5177344
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8883
        "start_memory" => integer 5209408
        "stop_time" => float 1412230964.8883
        "stop_memory" => integer 5209984
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8884
        "start_memory" => integer 5215048
        "stop_time" => float 1412230964.8884
        "stop_memory" => integer 5215648
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8894
        "start_memory" => integer 5315472
        "stop_time" => float 1412230964.8895
        "stop_memory" => integer 5316048
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8896
        "start_memory" => integer 5321112
        "stop_time" => float 1412230964.8896
        "stop_memory" => integer 5321712
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8914
        "start_memory" => integer 5369600
        "stop_time" => float 1412230964.8915
        "stop_memory" => integer 5370160
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8916
        "start_memory" => integer 5375128
        "stop_time" => float 1412230964.8916
        "stop_memory" => integer 5375720
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8923
        "start_memory" => integer 5398848
        "stop_time" => float 1412230964.8923
        "stop_memory" => integer 5399368
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8924
        "start_memory" => integer 5404008
        "stop_time" => float 1412230964.8924
        "stop_memory" => integer 5404576
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8936
        "start_memory" => integer 5513640
        "stop_time" => float 1412230964.8936
        "stop_memory" => integer 5514200
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8937
        "start_memory" => integer 5518896
        "stop_time" => float 1412230964.8938
        "stop_memory" => integer 5519472
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8973
        "start_memory" => integer 5539200
        "stop_time" => float 1412230964.8974
        "stop_memory" => integer 5539736
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.8975
        "start_memory" => integer 5544392
        "stop_time" => float 1412230964.8976
        "stop_memory" => integer 5544960
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9
        "start_memory" => integer 5582376
        "stop_time" => float 1412230964.9001
        "stop_memory" => integer 5582920
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9002
        "start_memory" => integer 5587560
        "stop_time" => float 1412230964.9002
        "stop_memory" => integer 5588128
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9008
        "start_memory" => integer 5630504
        "stop_time" => float 1412230964.9009
        "stop_memory" => integer 5631048
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.901
        "start_memory" => integer 5635712
        "stop_time" => float 1412230964.901
        "stop_memory" => integer 5636280
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9016
        "start_memory" => integer 5665600
        "stop_time" => float 1412230964.9016
        "stop_memory" => integer 5666144
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9017
        "start_memory" => integer 5670784
        "stop_time" => float 1412230964.9018
        "stop_memory" => integer 5671352
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9028
        "start_memory" => integer 5746344
        "stop_time" => float 1412230964.9029
        "stop_memory" => integer 5746888
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9029
        "start_memory" => integer 5751544
        "stop_time" => float 1412230964.903
        "stop_memory" => integer 5752112
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9047
        "start_memory" => integer 5774256
        "stop_time" => float 1412230964.9047
        "stop_memory" => integer 5774800
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9048
        "start_memory" => integer 5779440
        "stop_time" => float 1412230964.9048
        "stop_memory" => integer 5780008
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9064
        "start_memory" => integer 5800840
        "stop_time" => float 1412230964.9064
        "stop_memory" => integer 5802424
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9065
        "start_memory" => integer 5807112
        "stop_time" => float 1412230964.9066
        "stop_memory" => integer 5807688
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9078
        "start_memory" => integer 5935104
        "stop_time" => float 1412230964.9078
        "stop_memory" => integer 5935656
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9079
        "start_memory" => integer 5940344
        "stop_time" => float 1412230964.9079
        "stop_memory" => integer 5940920
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9092
        "start_memory" => integer 6107952
        "stop_time" => float 1412230964.9093
        "stop_memory" => integer 6108504
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9094
        "start_memory" => integer 6113192
        "stop_time" => float 1412230964.9094
        "stop_memory" => integer 6113752
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9117
        "start_memory" => integer 6169368
        "stop_time" => float 1412230964.9118
        "stop_memory" => integer 6169944
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9118
        "start_memory" => integer 6174848
        "stop_time" => float 1412230964.9119
        "stop_memory" => integer 6175416
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9126
        "start_memory" => integer 6215456
        "stop_time" => float 1412230964.9126
        "stop_memory" => integer 6216032
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9127
        "start_memory" => integer 6220984
        "stop_time" => float 1412230964.9127
        "stop_memory" => integer 6221576
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9138
        "start_memory" => integer 6247512
        "stop_time" => float 1412230964.9138
        "stop_memory" => integer 6248080
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9139
        "start_memory" => integer 6252952
        "stop_time" => float 1412230964.914
        "stop_memory" => integer 6253528
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9158
        "start_memory" => integer 6282760
        "stop_time" => float 1412230964.9158
        "stop_memory" => integer 6283336
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9177
        "start_memory" => integer 6292824
        "stop_time" => float 1412230964.9177
        "stop_memory" => integer 6293400
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9226
        "start_memory" => integer 6329544
        "stop_time" => float 1412230964.9227
        "stop_memory" => integer 6330104
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9228
        "start_memory" => integer 6338576
        "stop_time" => float 1412230964.9229
        "stop_memory" => integer 6339064
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9244
        "start_memory" => integer 6339320
        "stop_time" => float 1412230964.9245
        "stop_memory" => integer 6339888
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9266
        "start_memory" => integer 6346352
        "stop_time" => float 1412230964.9267
        "stop_memory" => integer 6346920
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.928
        "start_memory" => integer 6358728
        "stop_time" => float 1412230964.9282
        "stop_memory" => integer 6359312
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9289
        "start_memory" => integer 6368048
        "stop_time" => float 1412230964.9289
        "stop_memory" => integer 6368624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9296
        "start_memory" => integer 6371704
        "stop_time" => float 1412230964.9297
        "stop_memory" => integer 6372264
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9301
        "start_memory" => integer 6380624
        "stop_time" => float 1412230964.9302
        "stop_memory" => integer 6381192
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9304
        "start_memory" => integer 6389496
        "stop_time" => float 1412230964.9305
        "stop_memory" => integer 6390032
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9306
        "start_memory" => integer 6394680
        "stop_time" => float 1412230964.9307
        "stop_memory" => integer 6395248
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9315
        "start_memory" => integer 6404552
        "stop_time" => float 1412230964.9315
        "stop_memory" => integer 6405128
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9317
        "start_memory" => integer 6413824
        "stop_time" => float 1412230964.9317
        "stop_memory" => integer 6414360
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9319
        "start_memory" => integer 6419008
        "stop_time" => float 1412230964.9319
        "stop_memory" => integer 6419576
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9349
        "start_memory" => integer 6769952
        "stop_time" => float 1412230964.935
        "stop_memory" => integer 6770528
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.936
        "start_memory" => integer 6853944
        "stop_time" => float 1412230964.936
        "stop_memory" => integer 6854528
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9368
        "start_memory" => integer 6897688
        "stop_time" => float 1412230964.9368
        "stop_memory" => integer 6898232
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9375
        "start_memory" => integer 6927624
        "stop_time" => float 1412230964.9375
        "stop_memory" => integer 6928184
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.938
        "start_memory" => integer 6960088
        "stop_time" => float 1412230964.9381
        "stop_memory" => integer 6960664
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9388
        "start_memory" => integer 6990992
        "stop_time" => float 1412230964.9389
        "stop_memory" => integer 6991528
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9391
        "start_memory" => integer 6996176
        "stop_time" => float 1412230964.9392
        "stop_memory" => integer 6996744
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.94
        "start_memory" => integer 7007752
        "stop_time" => float 1412230964.9401
        "stop_memory" => integer 7008312
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9402
        "start_memory" => integer 7013008
        "stop_time" => float 1412230964.9402
        "stop_memory" => integer 7013584
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9411
        "start_memory" => integer 7056368
        "stop_time" => float 1412230964.9412
        "stop_memory" => integer 7056920
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9414
        "start_memory" => integer 7061592
        "stop_time" => float 1412230964.9414
        "stop_memory" => integer 7062168
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9425
        "start_memory" => integer 7075944
        "stop_time" => float 1412230964.9426
        "stop_memory" => integer 7076512
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9427
        "start_memory" => integer 7081384
        "stop_time" => float 1412230964.9427
        "stop_memory" => integer 7081968
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9431
        "start_memory" => integer 7097664
        "stop_time" => float 1412230964.9432
        "stop_memory" => integer 7098224
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9433
        "start_memory" => integer 7103112
        "stop_time" => float 1412230964.9434
        "stop_memory" => integer 7103696
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9437
        "start_memory" => integer 7121776
        "stop_time" => float 1412230964.9437
        "stop_memory" => integer 7122352
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9439
        "start_memory" => integer 7127344
        "stop_time" => float 1412230964.9439
        "stop_memory" => integer 7127936
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9442
        "start_memory" => integer 7133384
        "stop_time" => float 1412230964.9443
        "stop_memory" => integer 7133936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9444
        "start_memory" => integer 7138816
        "stop_time" => float 1412230964.9445
        "stop_memory" => integer 7139400
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9446
        "start_memory" => integer 7148120
        "stop_time" => float 1412230964.9447
        "stop_memory" => integer 7148680
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9448
        "start_memory" => integer 7153552
        "stop_time" => float 1412230964.9448
        "stop_memory" => integer 7154136
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9463
        "start_memory" => integer 7251728
        "stop_time" => float 1412230964.9463
        "stop_memory" => integer 7252304
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9464
        "start_memory" => integer 7257288
        "stop_time" => float 1412230964.9465
        "stop_memory" => integer 7257896
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9471
        "start_memory" => integer 7276736
        "stop_time" => float 1412230964.9471
        "stop_memory" => integer 7277304
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9473
        "start_memory" => integer 7282336
        "stop_time" => float 1412230964.9474
        "stop_memory" => integer 7282920
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9482
        "start_memory" => integer 7299744
        "stop_time" => float 1412230964.9482
        "stop_memory" => integer 7300312
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9484
        "start_memory" => integer 7305256
        "stop_time" => float 1412230964.9484
        "stop_memory" => integer 7305848
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9491
        "start_memory" => integer 7324608
        "stop_time" => float 1412230964.9492
        "stop_memory" => integer 7325160
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9493
        "start_memory" => integer 7330024
        "stop_time" => float 1412230964.9493
        "stop_memory" => integer 7330608
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9495
        "start_memory" => integer 7337984
        "stop_time" => float 1412230964.9495
        "stop_memory" => integer 7338544
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9497
        "start_memory" => integer 7343416
        "stop_time" => float 1412230964.9497
        "stop_memory" => integer 7344000
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9506
        "start_memory" => integer 7357192
        "stop_time" => float 1412230964.9506
        "stop_memory" => integer 7357768
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9507
        "start_memory" => integer 7362720
        "stop_time" => float 1412230964.9508
        "stop_memory" => integer 7363312
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9513
        "start_memory" => integer 7367992
        "stop_time" => float 1412230964.9514
        "stop_memory" => integer 7368544
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9516
        "start_memory" => integer 7373424
        "stop_time" => float 1412230964.9516
        "stop_memory" => integer 7374008
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9523
        "start_memory" => integer 7389296
        "stop_time" => float 1412230964.9523
        "stop_memory" => integer 7389856
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9525
        "start_memory" => integer 7394736
        "stop_time" => float 1412230964.9525
        "stop_memory" => integer 7395320
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9533
        "start_memory" => integer 7433304
        "stop_time" => float 1412230964.9533
        "stop_memory" => integer 7433880
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9534
        "start_memory" => integer 7438840
        "stop_time" => float 1412230964.9534
        "stop_memory" => integer 7439432
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9551
        "start_memory" => integer 7453160
        "stop_time" => float 1412230964.9552
        "stop_memory" => integer 7453728
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9553
        "start_memory" => integer 7458696
        "stop_time" => float 1412230964.9554
        "stop_memory" => integer 7459288
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.957
        "start_memory" => integer 7469624
        "stop_time" => float 1412230964.9571
        "stop_memory" => integer 7470192
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9572
        "start_memory" => integer 7475136
        "stop_time" => float 1412230964.9572
        "stop_memory" => integer 7475728
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9577
        "start_memory" => integer 7496088
        "stop_time" => float 1412230964.9577
        "stop_memory" => integer 7496656
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9578
        "start_memory" => integer 7501624
        "stop_time" => float 1412230964.9578
        "stop_memory" => integer 7502216
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9584
        "start_memory" => integer 7521560
        "stop_time" => float 1412230964.9584
        "stop_memory" => integer 7522128
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9585
        "start_memory" => integer 7527144
        "stop_time" => float 1412230964.9585
        "stop_memory" => integer 7527736
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9591
        "start_memory" => integer 7544936
        "stop_time" => float 1412230964.9591
        "stop_memory" => integer 7545504
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9592
        "start_memory" => integer 7550472
        "stop_time" => float 1412230964.9592
        "stop_memory" => integer 7551064
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9598
        "start_memory" => integer 7569400
        "stop_time" => float 1412230964.9598
        "stop_memory" => integer 7569968
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9599
        "start_memory" => integer 7574920
        "stop_time" => float 1412230964.96
        "stop_memory" => integer 7575512
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9606
        "start_memory" => integer 7595648
        "stop_time" => float 1412230964.9607
        "stop_memory" => integer 7596200
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9607
        "start_memory" => integer 7601080
        "stop_time" => float 1412230964.9608
        "stop_memory" => integer 7601664
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9613
        "start_memory" => integer 7612032
        "stop_time" => float 1412230964.9614
        "stop_memory" => integer 7612592
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9615
        "start_memory" => integer 7617480
        "stop_time" => float 1412230964.9615
        "stop_memory" => integer 7618064
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.962
        "start_memory" => integer 7633560
        "stop_time" => float 1412230964.962
        "stop_memory" => integer 7634136
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9621
        "start_memory" => integer 7639152
        "stop_time" => float 1412230964.9621
        "stop_memory" => integer 7639744
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9631
        "start_memory" => integer 7651240
        "stop_time" => float 1412230964.9631
        "stop_memory" => integer 7651808
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9632
        "start_memory" => integer 7656824
        "stop_time" => float 1412230964.9632
        "stop_memory" => integer 7657416
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9643
        "start_memory" => integer 7667216
        "stop_time" => float 1412230964.9643
        "stop_memory" => integer 7667784
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9644
        "start_memory" => integer 7672720
        "stop_time" => float 1412230964.9644
        "stop_memory" => integer 7673296
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9649
        "start_memory" => integer 7679480
        "stop_time" => float 1412230964.965
        "stop_memory" => integer 7680056
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.965
        "start_memory" => integer 7685008
        "stop_time" => float 1412230964.9651
        "stop_memory" => integer 7685600
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9668
        "start_memory" => integer 7695432
        "stop_time" => float 1412230964.9669
        "stop_memory" => integer 7695984
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.967
        "start_memory" => integer 7700864
        "stop_time" => float 1412230964.967
        "stop_memory" => integer 7701448
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9686
        "start_memory" => integer 7775832
        "stop_time" => float 1412230964.9686
        "stop_memory" => integer 7776360
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9687
        "start_memory" => integer 7781016
        "stop_time" => float 1412230964.9688
        "stop_memory" => integer 7781584
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9724
        "start_memory" => integer 7807632
        "stop_time" => float 1412230964.9725
        "stop_memory" => integer 7808176
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9726
        "start_memory" => integer 7812832
        "stop_time" => float 1412230964.9727
        "stop_memory" => integer 7813400
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9735
        "start_memory" => integer 7845216
        "stop_time" => float 1412230964.9736
        "stop_memory" => integer 7845760
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9737
        "start_memory" => integer 7850408
        "stop_time" => float 1412230964.9737
        "stop_memory" => integer 7850976
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9745
        "start_memory" => integer 7917280
        "stop_time" => float 1412230964.9745
        "stop_memory" => integer 7917840
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9747
        "start_memory" => integer 7924744
        "stop_time" => float 1412230964.9747
        "stop_memory" => integer 7925320
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9753
        "start_memory" => integer 7948768
        "stop_time" => float 1412230964.9753
        "stop_memory" => integer 7949352
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9755
        "start_memory" => integer 7956320
        "stop_time" => float 1412230964.9755
        "stop_memory" => integer 7956912
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9765
        "start_memory" => integer 8027576
        "stop_time" => float 1412230964.9766
        "stop_memory" => integer 8028112
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9766
        "start_memory" => integer 8032960
        "stop_time" => float 1412230964.9767
        "stop_memory" => integer 8033536
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9772
        "start_memory" => integer 8061264
        "stop_time" => float 1412230964.9773
        "stop_memory" => integer 8061800
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9774
        "start_memory" => integer 8066456
        "stop_time" => float 1412230964.9775
        "stop_memory" => integer 8067024
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9787
        "start_memory" => integer 8187872
        "stop_time" => float 1412230964.9788
        "stop_memory" => integer 8188416
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9788
        "start_memory" => integer 8193088
        "stop_time" => float 1412230964.9789
        "stop_memory" => integer 8193656
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9838
        "start_memory" => integer 8232384
        "stop_time" => float 1412230964.9839
        "stop_memory" => integer 8232928
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.984
        "start_memory" => integer 8237584
        "stop_time" => float 1412230964.9841
        "stop_memory" => integer 8238152
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.986
        "start_memory" => integer 8479056
        "stop_time" => float 1412230964.9861
        "stop_memory" => integer 8479632
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9861
        "start_memory" => integer 8484568
        "stop_time" => float 1412230964.9862
        "stop_memory" => integer 8485152
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.987
        "start_memory" => integer 8503176
        "stop_time" => float 1412230964.9871
        "stop_memory" => integer 8503752
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412230964.9874
        "start_memory" => integer 8470432
        "stop_time" => float 1412230964.9875
        "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'],
	);
}