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 1409701195.947
        "start_memory" => integer 1692096
        "stop_time" => float 1409701196.1649
        "stop_memory" => integer 8471928
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9471
        "start_memory" => integer 1694912
        "stop_time" => float 1409701195.9471
        "stop_memory" => integer 1695504
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9476
        "start_memory" => integer 1823904
        "stop_time" => float 1409701195.9476
        "stop_memory" => integer 1824464
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9477
        "start_memory" => integer 1829896
        "stop_time" => float 1409701195.9478
        "stop_memory" => integer 1830480
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9479
        "start_memory" => integer 1841176
        "stop_time" => float 1409701195.9479
        "stop_memory" => integer 1841720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.948
        "start_memory" => integer 1846624
        "stop_time" => float 1409701195.948
        "stop_memory" => integer 1847200
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9482
        "start_memory" => integer 1850552
        "stop_time" => float 1409701195.9482
        "stop_memory" => integer 1851136
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9506
        "start_memory" => integer 2434904
        "stop_time" => float 1409701195.9507
        "stop_memory" => integer 2435480
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9507
        "start_memory" => integer 2440352
        "stop_time" => float 1409701195.9508
        "stop_memory" => integer 2440992
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9511
        "start_memory" => integer 2586704
        "stop_time" => float 1409701195.9512
        "stop_memory" => integer 2587232
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9512
        "start_memory" => integer 2591880
        "stop_time" => float 1409701195.9513
        "stop_memory" => integer 2592448
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9515
        "start_memory" => integer 2624208
        "stop_time" => float 1409701195.9515
        "stop_memory" => integer 2624752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9516
        "start_memory" => integer 2629392
        "stop_time" => float 1409701195.9517
        "stop_memory" => integer 2629960
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9523
        "start_memory" => integer 2797512
        "stop_time" => float 1409701195.9523
        "stop_memory" => integer 2798056
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9524
        "start_memory" => integer 2802696
        "stop_time" => float 1409701195.9524
        "stop_memory" => integer 2803264
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9527
        "start_memory" => integer 2857784
        "stop_time" => float 1409701195.9527
        "stop_memory" => integer 2858376
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9527
        "start_memory" => integer 2860296
        "stop_time" => float 1409701195.9528
        "stop_memory" => integer 2860984
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9529
        "start_memory" => integer 2865864
        "stop_time" => float 1409701195.953
        "stop_memory" => integer 2866448
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9531
        "start_memory" => integer 2869160
        "stop_time" => float 1409701195.9531
        "stop_memory" => integer 2869720
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9532
        "start_memory" => integer 2874600
        "stop_time" => float 1409701195.9532
        "stop_memory" => integer 2875184
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9534
        "start_memory" => integer 2924680
        "stop_time" => float 1409701195.9535
        "stop_memory" => integer 2925224
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9535
        "start_memory" => integer 2929896
        "stop_time" => float 1409701195.9536
        "stop_memory" => integer 2930472
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9541
        "start_memory" => integer 3026832
        "stop_time" => float 1409701195.9541
        "stop_memory" => integer 3027368
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9542
        "start_memory" => integer 3032008
        "stop_time" => float 1409701195.9542
        "stop_memory" => integer 3032576
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701195.9554
        "start_memory" => integer 3117144
        "stop_time" => float 1409701195.9554
        "stop_memory" => integer 3117736
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0113
        "start_memory" => integer 3157016
        "stop_time" => float 1409701196.0113
        "stop_memory" => integer 3157584
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0114
        "start_memory" => integer 3162248
        "stop_time" => float 1409701196.0115
        "stop_memory" => integer 3162824
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0122
        "start_memory" => integer 3216744
        "stop_time" => float 1409701196.0122
        "stop_memory" => integer 3217296
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0123
        "start_memory" => integer 3222136
        "stop_time" => float 1409701196.0123
        "stop_memory" => integer 3222712
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0129
        "start_memory" => integer 3247744
        "stop_time" => float 1409701196.0129
        "stop_memory" => integer 3248296
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.013
        "start_memory" => integer 3253016
        "stop_time" => float 1409701196.013
        "stop_memory" => integer 3253592
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0137
        "start_memory" => integer 3326712
        "stop_time" => float 1409701196.0137
        "stop_memory" => integer 3327296
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0138
        "start_memory" => integer 3345304
        "stop_time" => float 1409701196.0138
        "stop_memory" => integer 3346120
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0139
        "start_memory" => integer 3350984
        "stop_time" => float 1409701196.0139
        "stop_memory" => integer 3351568
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0143
        "start_memory" => integer 3416696
        "stop_time" => float 1409701196.0143
        "stop_memory" => integer 3417272
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0146
        "start_memory" => integer 3436672
        "stop_time" => float 1409701196.0146
        "stop_memory" => integer 3437248
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.015
        "start_memory" => integer 3485800
        "stop_time" => float 1409701196.015
        "stop_memory" => integer 3486376
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0152
        "start_memory" => integer 3497544
        "stop_time" => float 1409701196.0152
        "stop_memory" => integer 3498120
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0154
        "start_memory" => integer 3516144
        "stop_time" => float 1409701196.0155
        "stop_memory" => integer 3516720
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0157
        "start_memory" => integer 3526408
        "stop_time" => float 1409701196.0157
        "stop_memory" => integer 3526984
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0159
        "start_memory" => integer 3547112
        "stop_time" => float 1409701196.016
        "stop_memory" => integer 3547688
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0162
        "start_memory" => integer 3568176
        "stop_time" => float 1409701196.0162
        "stop_memory" => integer 3568768
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0165
        "start_memory" => integer 3581992
        "stop_time" => float 1409701196.0165
        "stop_memory" => integer 3582560
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0167
        "start_memory" => integer 3594784
        "stop_time" => float 1409701196.0167
        "stop_memory" => integer 3595360
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.017
        "start_memory" => integer 3643632
        "stop_time" => float 1409701196.017
        "stop_memory" => integer 3644192
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0173
        "start_memory" => integer 3682664
        "stop_time" => float 1409701196.0173
        "stop_memory" => integer 3683248
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0176
        "start_memory" => integer 3702648
        "stop_time" => float 1409701196.0176
        "stop_memory" => integer 3703224
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0179
        "start_memory" => integer 3734400
        "stop_time" => float 1409701196.0179
        "stop_memory" => integer 3734976
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0181
        "start_memory" => integer 3753688
        "stop_time" => float 1409701196.0181
        "stop_memory" => integer 3754232
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0182
        "start_memory" => integer 3758904
        "stop_time" => float 1409701196.0182
        "stop_memory" => integer 3759480
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0265
        "start_memory" => integer 3880176
        "stop_time" => float 1409701196.0265
        "stop_memory" => integer 3880728
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0266
        "start_memory" => integer 3885560
        "stop_time" => float 1409701196.0267
        "stop_memory" => integer 3886136
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0302
        "start_memory" => integer 3911616
        "stop_time" => float 1409701196.0302
        "stop_memory" => integer 3912200
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0303
        "start_memory" => integer 3917136
        "stop_time" => float 1409701196.0303
        "stop_memory" => integer 3917712
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0338
        "start_memory" => integer 3943296
        "stop_time" => float 1409701196.0338
        "stop_memory" => integer 3943856
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0339
        "start_memory" => integer 3948712
        "stop_time" => float 1409701196.0339
        "stop_memory" => integer 3949280
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0343
        "start_memory" => integer 4036688
        "stop_time" => float 1409701196.0343
        "stop_memory" => integer 4037288
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0382
        "start_memory" => integer 4044232
        "stop_time" => float 1409701196.0383
        "stop_memory" => integer 4044784
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0383
        "start_memory" => integer 4049664
        "stop_time" => float 1409701196.0384
        "stop_memory" => integer 4050248
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0507
        "start_memory" => integer 4107072
        "stop_time" => float 1409701196.0507
        "stop_memory" => integer 4107632
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0508
        "start_memory" => integer 4112552
        "stop_time" => float 1409701196.0508
        "stop_memory" => integer 4113136
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.051
        "start_memory" => integer 4136416
        "stop_time" => float 1409701196.051
        "stop_memory" => integer 4136992
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0516
        "start_memory" => integer 4146064
        "stop_time" => float 1409701196.0516
        "stop_memory" => integer 4146624
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0517
        "start_memory" => integer 4151488
        "stop_time" => float 1409701196.0517
        "stop_memory" => integer 4152072
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0526
        "start_memory" => integer 4231536
        "stop_time" => float 1409701196.0526
        "stop_memory" => integer 4232608
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0527
        "start_memory" => integer 4237512
        "stop_time" => float 1409701196.0527
        "stop_memory" => integer 4238096
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0571
        "start_memory" => integer 4263760
        "stop_time" => float 1409701196.0571
        "stop_memory" => integer 4264320
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0572
        "start_memory" => integer 4269184
        "stop_time" => float 1409701196.0572
        "stop_memory" => integer 4269768
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0579
        "start_memory" => integer 4291136
        "stop_time" => float 1409701196.058
        "stop_memory" => integer 4291664
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.058
        "start_memory" => integer 4296312
        "stop_time" => float 1409701196.0581
        "stop_memory" => integer 4296904
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0601
        "start_memory" => integer 4307808
        "stop_time" => float 1409701196.0601
        "stop_memory" => integer 4308400
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0606
        "start_memory" => integer 4319184
        "stop_time" => float 1409701196.0606
        "stop_memory" => integer 4319760
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0608
        "start_memory" => integer 4358400
        "stop_time" => float 1409701196.0609
        "stop_memory" => integer 4358864
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0623
        "start_memory" => integer 4360040
        "stop_time" => float 1409701196.0623
        "stop_memory" => integer 4360616
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.064
        "start_memory" => integer 4389624
        "stop_time" => float 1409701196.064
        "stop_memory" => integer 4390168
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0641
        "start_memory" => integer 4395024
        "stop_time" => float 1409701196.0641
        "stop_memory" => integer 4395600
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0668
        "start_memory" => integer 4410112
        "stop_time" => float 1409701196.0669
        "stop_memory" => integer 4410688
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0682
        "start_memory" => integer 4415528
        "stop_time" => float 1409701196.0683
        "stop_memory" => integer 4416064
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0683
        "start_memory" => integer 4420712
        "stop_time" => float 1409701196.0684
        "stop_memory" => integer 4421280
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0689
        "start_memory" => integer 4449024
        "stop_time" => float 1409701196.069
        "stop_memory" => integer 4449600
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0691
        "start_memory" => integer 4454440
        "stop_time" => float 1409701196.0691
        "stop_memory" => integer 4455024
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0709
        "start_memory" => integer 4575104
        "stop_time" => float 1409701196.0709
        "stop_memory" => integer 4575680
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.071
        "start_memory" => integer 4580632
        "stop_time" => float 1409701196.071
        "stop_memory" => integer 4581224
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0711
        "start_memory" => integer 4586384
        "stop_time" => float 1409701196.0712
        "stop_memory" => integer 4586936
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0716
        "start_memory" => integer 4606376
        "stop_time" => float 1409701196.0716
        "stop_memory" => integer 4606968
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0717
        "start_memory" => integer 4611928
        "stop_time" => float 1409701196.0717
        "stop_memory" => integer 4612520
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.073
        "start_memory" => integer 4618456
        "stop_time" => float 1409701196.0731
        "stop_memory" => integer 4619008
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0731
        "start_memory" => integer 4623880
        "stop_time" => float 1409701196.0732
        "stop_memory" => integer 4624464
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0741
        "start_memory" => integer 4756344
        "stop_time" => float 1409701196.0741
        "stop_memory" => integer 4756920
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0742
        "start_memory" => integer 4761880
        "stop_time" => float 1409701196.0742
        "stop_memory" => integer 4762472
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0744
        "start_memory" => integer 4783152
        "stop_time" => float 1409701196.0744
        "stop_memory" => integer 4783720
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0744
        "start_memory" => integer 4788608
        "stop_time" => float 1409701196.0745
        "stop_memory" => integer 4789184
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0753
        "start_memory" => integer 4851216
        "stop_time" => float 1409701196.0753
        "stop_memory" => integer 4851776
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0754
        "start_memory" => integer 4856648
        "stop_time" => float 1409701196.0754
        "stop_memory" => integer 4857232
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0761
        "start_memory" => integer 4915456
        "stop_time" => float 1409701196.0761
        "stop_memory" => integer 4916016
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0761
        "start_memory" => integer 4920880
        "stop_time" => float 1409701196.0762
        "stop_memory" => integer 4921464
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0769
        "start_memory" => integer 4964040
        "stop_time" => float 1409701196.077
        "stop_memory" => integer 4964616
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.077
        "start_memory" => integer 4969584
        "stop_time" => float 1409701196.0771
        "stop_memory" => integer 4970176
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0778
        "start_memory" => integer 5020128
        "stop_time" => float 1409701196.0778
        "stop_memory" => integer 5020712
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.078
        "start_memory" => integer 5026800
        "stop_time" => float 1409701196.078
        "stop_memory" => integer 5027400
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0781
        "start_memory" => integer 5047048
        "stop_time" => float 1409701196.0781
        "stop_memory" => integer 5047624
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0782
        "start_memory" => integer 5053696
        "stop_time" => float 1409701196.0783
        "stop_memory" => integer 5054296
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0791
        "start_memory" => integer 5117280
        "stop_time" => float 1409701196.0791
        "stop_memory" => integer 5117856
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0792
        "start_memory" => integer 5122920
        "stop_time" => float 1409701196.0792
        "stop_memory" => integer 5123520
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.08
        "start_memory" => integer 5171112
        "stop_time" => float 1409701196.0801
        "stop_memory" => integer 5171688
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0801
        "start_memory" => integer 5176744
        "stop_time" => float 1409701196.0802
        "stop_memory" => integer 5177344
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0809
        "start_memory" => integer 5209408
        "stop_time" => float 1409701196.0809
        "stop_memory" => integer 5209984
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.081
        "start_memory" => integer 5215048
        "stop_time" => float 1409701196.081
        "stop_memory" => integer 5215648
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0819
        "start_memory" => integer 5315472
        "stop_time" => float 1409701196.0819
        "stop_memory" => integer 5316048
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.082
        "start_memory" => integer 5321112
        "stop_time" => float 1409701196.082
        "stop_memory" => integer 5321712
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0839
        "start_memory" => integer 5369600
        "stop_time" => float 1409701196.0839
        "stop_memory" => integer 5370160
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.084
        "start_memory" => integer 5375128
        "stop_time" => float 1409701196.084
        "stop_memory" => integer 5375720
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0847
        "start_memory" => integer 5398848
        "stop_time" => float 1409701196.0847
        "stop_memory" => integer 5399368
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0848
        "start_memory" => integer 5404008
        "stop_time" => float 1409701196.0849
        "stop_memory" => integer 5404576
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0858
        "start_memory" => integer 5513640
        "stop_time" => float 1409701196.0858
        "stop_memory" => integer 5514200
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0859
        "start_memory" => integer 5518896
        "stop_time" => float 1409701196.0859
        "stop_memory" => integer 5519472
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0892
        "start_memory" => integer 5539200
        "stop_time" => float 1409701196.0892
        "stop_memory" => integer 5539736
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0893
        "start_memory" => integer 5544392
        "stop_time" => float 1409701196.0894
        "stop_memory" => integer 5544960
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0915
        "start_memory" => integer 5582376
        "stop_time" => float 1409701196.0916
        "stop_memory" => integer 5582920
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0917
        "start_memory" => integer 5587560
        "stop_time" => float 1409701196.0917
        "stop_memory" => integer 5588128
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0923
        "start_memory" => integer 5630504
        "stop_time" => float 1409701196.0924
        "stop_memory" => integer 5631048
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0924
        "start_memory" => integer 5635712
        "stop_time" => float 1409701196.0925
        "stop_memory" => integer 5636280
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.093
        "start_memory" => integer 5665600
        "stop_time" => float 1409701196.0931
        "stop_memory" => integer 5666144
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0931
        "start_memory" => integer 5670784
        "stop_time" => float 1409701196.0932
        "stop_memory" => integer 5671352
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0942
        "start_memory" => integer 5746344
        "stop_time" => float 1409701196.0942
        "stop_memory" => integer 5746888
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0943
        "start_memory" => integer 5751544
        "stop_time" => float 1409701196.0944
        "stop_memory" => integer 5752112
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0962
        "start_memory" => integer 5774256
        "stop_time" => float 1409701196.0963
        "stop_memory" => integer 5774800
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0963
        "start_memory" => integer 5779440
        "stop_time" => float 1409701196.0964
        "stop_memory" => integer 5780008
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0978
        "start_memory" => integer 5800840
        "stop_time" => float 1409701196.0978
        "stop_memory" => integer 5802424
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0979
        "start_memory" => integer 5807112
        "stop_time" => float 1409701196.0979
        "stop_memory" => integer 5807688
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.0989
        "start_memory" => integer 5935104
        "stop_time" => float 1409701196.099
        "stop_memory" => integer 5935656
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.099
        "start_memory" => integer 5940344
        "stop_time" => float 1409701196.0991
        "stop_memory" => integer 5940920
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1002
        "start_memory" => integer 6107952
        "stop_time" => float 1409701196.1003
        "stop_memory" => integer 6108504
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1004
        "start_memory" => integer 6113192
        "stop_time" => float 1409701196.1004
        "stop_memory" => integer 6113752
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1026
        "start_memory" => integer 6169368
        "stop_time" => float 1409701196.1026
        "stop_memory" => integer 6169944
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1027
        "start_memory" => integer 6174848
        "stop_time" => float 1409701196.1028
        "stop_memory" => integer 6175416
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1033
        "start_memory" => integer 6215456
        "stop_time" => float 1409701196.1034
        "stop_memory" => integer 6216032
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1035
        "start_memory" => integer 6220984
        "stop_time" => float 1409701196.1035
        "stop_memory" => integer 6221576
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1047
        "start_memory" => integer 6247512
        "stop_time" => float 1409701196.1047
        "stop_memory" => integer 6248080
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1048
        "start_memory" => integer 6252952
        "stop_time" => float 1409701196.1048
        "stop_memory" => integer 6253528
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1066
        "start_memory" => integer 6282760
        "stop_time" => float 1409701196.1066
        "stop_memory" => integer 6283336
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1085
        "start_memory" => integer 6292824
        "stop_time" => float 1409701196.1085
        "stop_memory" => integer 6293400
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1129
        "start_memory" => integer 6329544
        "stop_time" => float 1409701196.113
        "stop_memory" => integer 6330104
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1131
        "start_memory" => integer 6338576
        "stop_time" => float 1409701196.1131
        "stop_memory" => integer 6339064
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1143
        "start_memory" => integer 6339320
        "stop_time" => float 1409701196.1144
        "stop_memory" => integer 6339888
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1158
        "start_memory" => integer 6346352
        "stop_time" => float 1409701196.1159
        "stop_memory" => integer 6346920
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1168
        "start_memory" => integer 6358728
        "stop_time" => float 1409701196.1169
        "stop_memory" => integer 6359312
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1174
        "start_memory" => integer 6368048
        "stop_time" => float 1409701196.1174
        "stop_memory" => integer 6368624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1179
        "start_memory" => integer 6371704
        "stop_time" => float 1409701196.1179
        "stop_memory" => integer 6372264
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1181
        "start_memory" => integer 6380624
        "stop_time" => float 1409701196.1181
        "stop_memory" => integer 6381192
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1184
        "start_memory" => integer 6389496
        "stop_time" => float 1409701196.1185
        "stop_memory" => integer 6390032
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1185
        "start_memory" => integer 6394680
        "stop_time" => float 1409701196.1186
        "stop_memory" => integer 6395248
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.119
        "start_memory" => integer 6404552
        "stop_time" => float 1409701196.1191
        "stop_memory" => integer 6405128
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1192
        "start_memory" => integer 6413824
        "stop_time" => float 1409701196.1192
        "stop_memory" => integer 6414360
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1193
        "start_memory" => integer 6419008
        "stop_time" => float 1409701196.1193
        "stop_memory" => integer 6419576
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1209
        "start_memory" => integer 6769952
        "stop_time" => float 1409701196.1209
        "stop_memory" => integer 6770528
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1216
        "start_memory" => integer 6853944
        "stop_time" => float 1409701196.1216
        "stop_memory" => integer 6854528
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1222
        "start_memory" => integer 6897688
        "stop_time" => float 1409701196.1222
        "stop_memory" => integer 6898232
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1226
        "start_memory" => integer 6927624
        "stop_time" => float 1409701196.1227
        "stop_memory" => integer 6928184
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1231
        "start_memory" => integer 6960088
        "stop_time" => float 1409701196.1231
        "stop_memory" => integer 6960664
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1236
        "start_memory" => integer 6990992
        "stop_time" => float 1409701196.1237
        "stop_memory" => integer 6991528
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1238
        "start_memory" => integer 6996176
        "stop_time" => float 1409701196.1238
        "stop_memory" => integer 6996744
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1244
        "start_memory" => integer 7007752
        "stop_time" => float 1409701196.1245
        "stop_memory" => integer 7008312
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1246
        "start_memory" => integer 7013008
        "stop_time" => float 1409701196.1246
        "stop_memory" => integer 7013584
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1254
        "start_memory" => integer 7056368
        "stop_time" => float 1409701196.1254
        "stop_memory" => integer 7056920
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1255
        "start_memory" => integer 7061592
        "stop_time" => float 1409701196.1255
        "stop_memory" => integer 7062168
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.126
        "start_memory" => integer 7075944
        "stop_time" => float 1409701196.126
        "stop_memory" => integer 7076512
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1261
        "start_memory" => integer 7081384
        "stop_time" => float 1409701196.1261
        "stop_memory" => integer 7081968
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1263
        "start_memory" => integer 7097664
        "stop_time" => float 1409701196.1264
        "stop_memory" => integer 7098224
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1265
        "start_memory" => integer 7103112
        "stop_time" => float 1409701196.1265
        "stop_memory" => integer 7103696
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1267
        "start_memory" => integer 7121776
        "stop_time" => float 1409701196.1267
        "stop_memory" => integer 7122352
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1268
        "start_memory" => integer 7127344
        "stop_time" => float 1409701196.1268
        "stop_memory" => integer 7127936
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.127
        "start_memory" => integer 7133384
        "stop_time" => float 1409701196.127
        "stop_memory" => integer 7133936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1271
        "start_memory" => integer 7138816
        "stop_time" => float 1409701196.1271
        "stop_memory" => integer 7139400
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1272
        "start_memory" => integer 7148120
        "stop_time" => float 1409701196.1272
        "stop_memory" => integer 7148680
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1273
        "start_memory" => integer 7153552
        "stop_time" => float 1409701196.1274
        "stop_memory" => integer 7154136
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1281
        "start_memory" => integer 7251728
        "stop_time" => float 1409701196.1281
        "stop_memory" => integer 7252304
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1282
        "start_memory" => integer 7257288
        "stop_time" => float 1409701196.1282
        "stop_memory" => integer 7257896
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1287
        "start_memory" => integer 7276736
        "stop_time" => float 1409701196.1288
        "stop_memory" => integer 7277304
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1288
        "start_memory" => integer 7282336
        "stop_time" => float 1409701196.1289
        "stop_memory" => integer 7282920
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1293
        "start_memory" => integer 7299744
        "stop_time" => float 1409701196.1293
        "stop_memory" => integer 7300312
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1294
        "start_memory" => integer 7305256
        "stop_time" => float 1409701196.1294
        "stop_memory" => integer 7305848
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1299
        "start_memory" => integer 7324608
        "stop_time" => float 1409701196.1299
        "stop_memory" => integer 7325160
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.13
        "start_memory" => integer 7330024
        "stop_time" => float 1409701196.13
        "stop_memory" => integer 7330608
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1301
        "start_memory" => integer 7337984
        "stop_time" => float 1409701196.1301
        "stop_memory" => integer 7338544
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1302
        "start_memory" => integer 7343416
        "stop_time" => float 1409701196.1302
        "stop_memory" => integer 7344000
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1307
        "start_memory" => integer 7357192
        "stop_time" => float 1409701196.1307
        "stop_memory" => integer 7357768
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1308
        "start_memory" => integer 7362720
        "stop_time" => float 1409701196.1308
        "stop_memory" => integer 7363312
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1312
        "start_memory" => integer 7367992
        "stop_time" => float 1409701196.1312
        "stop_memory" => integer 7368544
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1313
        "start_memory" => integer 7373424
        "stop_time" => float 1409701196.1313
        "stop_memory" => integer 7374008
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1318
        "start_memory" => integer 7389296
        "stop_time" => float 1409701196.1318
        "stop_memory" => integer 7389856
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1319
        "start_memory" => integer 7394736
        "stop_time" => float 1409701196.1319
        "stop_memory" => integer 7395320
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1325
        "start_memory" => integer 7433304
        "stop_time" => float 1409701196.1325
        "stop_memory" => integer 7433880
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1326
        "start_memory" => integer 7438840
        "stop_time" => float 1409701196.1326
        "stop_memory" => integer 7439432
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1337
        "start_memory" => integer 7453160
        "stop_time" => float 1409701196.1338
        "stop_memory" => integer 7453728
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1338
        "start_memory" => integer 7458696
        "stop_time" => float 1409701196.1339
        "stop_memory" => integer 7459288
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1356
        "start_memory" => integer 7469624
        "stop_time" => float 1409701196.1356
        "stop_memory" => integer 7470192
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1357
        "start_memory" => integer 7475136
        "stop_time" => float 1409701196.1358
        "stop_memory" => integer 7475728
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1362
        "start_memory" => integer 7496088
        "stop_time" => float 1409701196.1363
        "stop_memory" => integer 7496656
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1363
        "start_memory" => integer 7501624
        "stop_time" => float 1409701196.1364
        "stop_memory" => integer 7502216
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1369
        "start_memory" => integer 7521560
        "stop_time" => float 1409701196.137
        "stop_memory" => integer 7522128
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.137
        "start_memory" => integer 7527144
        "stop_time" => float 1409701196.1371
        "stop_memory" => integer 7527736
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1376
        "start_memory" => integer 7544936
        "stop_time" => float 1409701196.1376
        "stop_memory" => integer 7545504
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1377
        "start_memory" => integer 7550472
        "stop_time" => float 1409701196.1378
        "stop_memory" => integer 7551064
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1384
        "start_memory" => integer 7569400
        "stop_time" => float 1409701196.1384
        "stop_memory" => integer 7569968
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1385
        "start_memory" => integer 7574920
        "stop_time" => float 1409701196.1386
        "stop_memory" => integer 7575512
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1391
        "start_memory" => integer 7595648
        "stop_time" => float 1409701196.1391
        "stop_memory" => integer 7596200
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1392
        "start_memory" => integer 7601080
        "stop_time" => float 1409701196.1392
        "stop_memory" => integer 7601664
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1399
        "start_memory" => integer 7612032
        "stop_time" => float 1409701196.14
        "stop_memory" => integer 7612592
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1401
        "start_memory" => integer 7617480
        "stop_time" => float 1409701196.1401
        "stop_memory" => integer 7618064
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1407
        "start_memory" => integer 7633560
        "stop_time" => float 1409701196.1407
        "stop_memory" => integer 7634136
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1408
        "start_memory" => integer 7639152
        "stop_time" => float 1409701196.1408
        "stop_memory" => integer 7639744
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.142
        "start_memory" => integer 7651240
        "stop_time" => float 1409701196.142
        "stop_memory" => integer 7651808
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1421
        "start_memory" => integer 7656824
        "stop_time" => float 1409701196.1421
        "stop_memory" => integer 7657416
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1431
        "start_memory" => integer 7667216
        "stop_time" => float 1409701196.1432
        "stop_memory" => integer 7667784
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1433
        "start_memory" => integer 7672720
        "stop_time" => float 1409701196.1434
        "stop_memory" => integer 7673296
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1438
        "start_memory" => integer 7679480
        "stop_time" => float 1409701196.1438
        "stop_memory" => integer 7680056
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1439
        "start_memory" => integer 7685008
        "stop_time" => float 1409701196.1439
        "stop_memory" => integer 7685600
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1456
        "start_memory" => integer 7695432
        "stop_time" => float 1409701196.1456
        "stop_memory" => integer 7695984
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1457
        "start_memory" => integer 7700864
        "stop_time" => float 1409701196.1458
        "stop_memory" => integer 7701448
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1475
        "start_memory" => integer 7775832
        "stop_time" => float 1409701196.1476
        "stop_memory" => integer 7776360
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1476
        "start_memory" => integer 7781016
        "stop_time" => float 1409701196.1477
        "stop_memory" => integer 7781584
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1511
        "start_memory" => integer 7807632
        "stop_time" => float 1409701196.1512
        "stop_memory" => integer 7808176
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1512
        "start_memory" => integer 7812832
        "stop_time" => float 1409701196.1513
        "stop_memory" => integer 7813400
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1518
        "start_memory" => integer 7845216
        "stop_time" => float 1409701196.1519
        "stop_memory" => integer 7845760
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1519
        "start_memory" => integer 7850408
        "stop_time" => float 1409701196.152
        "stop_memory" => integer 7850976
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1526
        "start_memory" => integer 7917280
        "stop_time" => float 1409701196.1527
        "stop_memory" => integer 7917840
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1529
        "start_memory" => integer 7924744
        "stop_time" => float 1409701196.1529
        "stop_memory" => integer 7925320
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1534
        "start_memory" => integer 7948768
        "stop_time" => float 1409701196.1534
        "stop_memory" => integer 7949352
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1535
        "start_memory" => integer 7956320
        "stop_time" => float 1409701196.1536
        "stop_memory" => integer 7956912
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1548
        "start_memory" => integer 8027576
        "stop_time" => float 1409701196.1548
        "stop_memory" => integer 8028112
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1549
        "start_memory" => integer 8032960
        "stop_time" => float 1409701196.155
        "stop_memory" => integer 8033536
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1554
        "start_memory" => integer 8061264
        "stop_time" => float 1409701196.1555
        "stop_memory" => integer 8061800
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1556
        "start_memory" => integer 8066456
        "stop_time" => float 1409701196.1556
        "stop_memory" => integer 8067024
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1566
        "start_memory" => integer 8187872
        "stop_time" => float 1409701196.1566
        "stop_memory" => integer 8188416
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1567
        "start_memory" => integer 8193088
        "stop_time" => float 1409701196.1567
        "stop_memory" => integer 8193656
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1613
        "start_memory" => integer 8232384
        "stop_time" => float 1409701196.1613
        "stop_memory" => integer 8232928
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1614
        "start_memory" => integer 8237584
        "stop_time" => float 1409701196.1614
        "stop_memory" => integer 8238152
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.163
        "start_memory" => integer 8479056
        "stop_time" => float 1409701196.1631
        "stop_memory" => integer 8479632
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1632
        "start_memory" => integer 8484568
        "stop_time" => float 1409701196.1632
        "stop_memory" => integer 8485152
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1639
        "start_memory" => integer 8503176
        "stop_time" => float 1409701196.164
        "stop_memory" => integer 8503752
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409701196.1646
        "start_memory" => integer 8470432
        "stop_time" => float 1409701196.1646
        "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'],
	);
}