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 1398364988.2185
        "start_memory" => integer 1691528
        "stop_time" => float 1398364988.5764
        "stop_memory" => integer 8471368
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2185
        "start_memory" => integer 1694344
        "stop_time" => float 1398364988.2186
        "stop_memory" => integer 1694936
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2194
        "start_memory" => integer 1823336
        "stop_time" => float 1398364988.2194
        "stop_memory" => integer 1823896
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2195
        "start_memory" => integer 1829328
        "stop_time" => float 1398364988.2196
        "stop_memory" => integer 1829912
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2197
        "start_memory" => integer 1840608
        "stop_time" => float 1398364988.2198
        "stop_memory" => integer 1841152
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.22
        "start_memory" => integer 1846032
        "stop_time" => float 1398364988.2201
        "stop_memory" => integer 1846608
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2202
        "start_memory" => integer 1850008
        "stop_time" => float 1398364988.2203
        "stop_memory" => integer 1850592
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2245
        "start_memory" => integer 2434352
        "stop_time" => float 1398364988.2246
        "stop_memory" => integer 2434928
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2248
        "start_memory" => integer 2439800
        "stop_time" => float 1398364988.2248
        "stop_memory" => integer 2440440
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2256
        "start_memory" => integer 2586176
        "stop_time" => float 1398364988.2257
        "stop_memory" => integer 2586704
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2259
        "start_memory" => integer 2591352
        "stop_time" => float 1398364988.2259
        "stop_memory" => integer 2591920
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2265
        "start_memory" => integer 2623680
        "stop_time" => float 1398364988.2266
        "stop_memory" => integer 2624232
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2267
        "start_memory" => integer 2628872
        "stop_time" => float 1398364988.2269
        "stop_memory" => integer 2629440
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2284
        "start_memory" => integer 2796976
        "stop_time" => float 1398364988.2285
        "stop_memory" => integer 2797520
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2286
        "start_memory" => integer 2802160
        "stop_time" => float 1398364988.2288
        "stop_memory" => integer 2802728
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2293
        "start_memory" => integer 2857248
        "stop_time" => float 1398364988.2294
        "stop_memory" => integer 2857840
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2295
        "start_memory" => integer 2859760
        "stop_time" => float 1398364988.2297
        "stop_memory" => integer 2860448
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2299
        "start_memory" => integer 2865328
        "stop_time" => float 1398364988.23
        "stop_memory" => integer 2865912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2302
        "start_memory" => integer 2868624
        "stop_time" => float 1398364988.2304
        "stop_memory" => integer 2869184
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2305
        "start_memory" => integer 2874056
        "stop_time" => float 1398364988.2306
        "stop_memory" => integer 2874640
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.231
        "start_memory" => integer 2924152
        "stop_time" => float 1398364988.2311
        "stop_memory" => integer 2924696
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2312
        "start_memory" => integer 2929368
        "stop_time" => float 1398364988.2313
        "stop_memory" => integer 2929944
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2321
        "start_memory" => integer 3026304
        "stop_time" => float 1398364988.2322
        "stop_memory" => integer 3026840
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2324
        "start_memory" => integer 3031480
        "stop_time" => float 1398364988.2326
        "stop_memory" => integer 3032048
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.2351
        "start_memory" => integer 3116616
        "stop_time" => float 1398364988.2354
        "stop_memory" => integer 3117208
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3339
        "start_memory" => integer 3156496
        "stop_time" => float 1398364988.3339
        "stop_memory" => integer 3157064
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.334
        "start_memory" => integer 3161728
        "stop_time" => float 1398364988.334
        "stop_memory" => integer 3162304
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3351
        "start_memory" => integer 3216224
        "stop_time" => float 1398364988.3351
        "stop_memory" => integer 3216776
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3352
        "start_memory" => integer 3221616
        "stop_time" => float 1398364988.3352
        "stop_memory" => integer 3222192
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3361
        "start_memory" => integer 3247248
        "stop_time" => float 1398364988.3361
        "stop_memory" => integer 3247800
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3362
        "start_memory" => integer 3252488
        "stop_time" => float 1398364988.3363
        "stop_memory" => integer 3253064
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3372
        "start_memory" => integer 3326176
        "stop_time" => float 1398364988.3373
        "stop_memory" => integer 3326760
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3374
        "start_memory" => integer 3344752
        "stop_time" => float 1398364988.3375
        "stop_memory" => integer 3345568
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3376
        "start_memory" => integer 3350432
        "stop_time" => float 1398364988.3377
        "stop_memory" => integer 3351016
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3384
        "start_memory" => integer 3416168
        "stop_time" => float 1398364988.3385
        "stop_memory" => integer 3416744
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3389
        "start_memory" => integer 3436160
        "stop_time" => float 1398364988.3389
        "stop_memory" => integer 3436736
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3396
        "start_memory" => integer 3485288
        "stop_time" => float 1398364988.3396
        "stop_memory" => integer 3485864
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3399
        "start_memory" => integer 3497040
        "stop_time" => float 1398364988.34
        "stop_memory" => integer 3497616
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3404
        "start_memory" => integer 3515616
        "stop_time" => float 1398364988.3405
        "stop_memory" => integer 3516192
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3408
        "start_memory" => integer 3525856
        "stop_time" => float 1398364988.3409
        "stop_memory" => integer 3526432
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3413
        "start_memory" => integer 3546536
        "stop_time" => float 1398364988.3413
        "stop_memory" => integer 3547112
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3417
        "start_memory" => integer 3567600
        "stop_time" => float 1398364988.3417
        "stop_memory" => integer 3568192
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.342
        "start_memory" => integer 3581432
        "stop_time" => float 1398364988.3421
        "stop_memory" => integer 3582000
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3424
        "start_memory" => integer 3594216
        "stop_time" => float 1398364988.3425
        "stop_memory" => integer 3594792
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3429
        "start_memory" => integer 3643048
        "stop_time" => float 1398364988.343
        "stop_memory" => integer 3643608
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3435
        "start_memory" => integer 3682080
        "stop_time" => float 1398364988.3435
        "stop_memory" => integer 3682664
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3439
        "start_memory" => integer 3702064
        "stop_time" => float 1398364988.3439
        "stop_memory" => integer 3702640
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3443
        "start_memory" => integer 3733816
        "stop_time" => float 1398364988.3444
        "stop_memory" => integer 3734392
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3448
        "start_memory" => integer 3753104
        "stop_time" => float 1398364988.3448
        "stop_memory" => integer 3753648
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3449
        "start_memory" => integer 3758320
        "stop_time" => float 1398364988.345
        "stop_memory" => integer 3758896
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3571
        "start_memory" => integer 3879592
        "stop_time" => float 1398364988.3572
        "stop_memory" => integer 3880144
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3573
        "start_memory" => integer 3884976
        "stop_time" => float 1398364988.3573
        "stop_memory" => integer 3885552
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3625
        "start_memory" => integer 3911032
        "stop_time" => float 1398364988.3625
        "stop_memory" => integer 3911616
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3627
        "start_memory" => integer 3916552
        "stop_time" => float 1398364988.3627
        "stop_memory" => integer 3917128
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.368
        "start_memory" => integer 3942712
        "stop_time" => float 1398364988.3681
        "stop_memory" => integer 3943272
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3686
        "start_memory" => integer 3948128
        "stop_time" => float 1398364988.3687
        "stop_memory" => integer 3948696
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3695
        "start_memory" => integer 4036080
        "stop_time" => float 1398364988.3695
        "stop_memory" => integer 4036680
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3754
        "start_memory" => integer 4043608
        "stop_time" => float 1398364988.3755
        "stop_memory" => integer 4044160
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3757
        "start_memory" => integer 4049040
        "stop_time" => float 1398364988.3758
        "stop_memory" => integer 4049624
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3978
        "start_memory" => integer 4106456
        "stop_time" => float 1398364988.3979
        "stop_memory" => integer 4107016
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3981
        "start_memory" => integer 4111936
        "stop_time" => float 1398364988.3981
        "stop_memory" => integer 4112520
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3983
        "start_memory" => integer 4135832
        "stop_time" => float 1398364988.3983
        "stop_memory" => integer 4136408
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3992
        "start_memory" => integer 4145456
        "stop_time" => float 1398364988.3992
        "stop_memory" => integer 4146016
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.3993
        "start_memory" => integer 4150880
        "stop_time" => float 1398364988.3994
        "stop_memory" => integer 4151464
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4006
        "start_memory" => integer 4230928
        "stop_time" => float 1398364988.4007
        "stop_memory" => integer 4232000
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4008
        "start_memory" => integer 4236904
        "stop_time" => float 1398364988.4009
        "stop_memory" => integer 4237488
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4085
        "start_memory" => integer 4263168
        "stop_time" => float 1398364988.4086
        "stop_memory" => integer 4263728
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4088
        "start_memory" => integer 4268592
        "stop_time" => float 1398364988.4088
        "stop_memory" => integer 4269176
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.41
        "start_memory" => integer 4290568
        "stop_time" => float 1398364988.4101
        "stop_memory" => integer 4291096
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4102
        "start_memory" => integer 4295744
        "stop_time" => float 1398364988.4103
        "stop_memory" => integer 4296312
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4138
        "start_memory" => integer 4307216
        "stop_time" => float 1398364988.4138
        "stop_memory" => integer 4307808
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4148
        "start_memory" => integer 4318592
        "stop_time" => float 1398364988.4148
        "stop_memory" => integer 4319168
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4152
        "start_memory" => integer 4357768
        "stop_time" => float 1398364988.4153
        "stop_memory" => integer 4358256
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4175
        "start_memory" => integer 4359456
        "stop_time" => float 1398364988.4176
        "stop_memory" => integer 4360032
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4204
        "start_memory" => integer 4389040
        "stop_time" => float 1398364988.4205
        "stop_memory" => integer 4389584
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4206
        "start_memory" => integer 4394440
        "stop_time" => float 1398364988.4207
        "stop_memory" => integer 4395016
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4254
        "start_memory" => integer 4409552
        "stop_time" => float 1398364988.4254
        "stop_memory" => integer 4410128
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4279
        "start_memory" => integer 4414984
        "stop_time" => float 1398364988.428
        "stop_memory" => integer 4415520
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4281
        "start_memory" => integer 4420168
        "stop_time" => float 1398364988.4282
        "stop_memory" => integer 4420736
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4289
        "start_memory" => integer 4448512
        "stop_time" => float 1398364988.429
        "stop_memory" => integer 4449088
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4291
        "start_memory" => integer 4453928
        "stop_time" => float 1398364988.4292
        "stop_memory" => integer 4454512
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4326
        "start_memory" => integer 4574584
        "stop_time" => float 1398364988.4327
        "stop_memory" => integer 4575160
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4328
        "start_memory" => integer 4580112
        "stop_time" => float 1398364988.4329
        "stop_memory" => integer 4580704
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.433
        "start_memory" => integer 4585864
        "stop_time" => float 1398364988.4332
        "stop_memory" => integer 4586416
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4339
        "start_memory" => integer 4605872
        "stop_time" => float 1398364988.434
        "stop_memory" => integer 4606464
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4342
        "start_memory" => integer 4611424
        "stop_time" => float 1398364988.4342
        "stop_memory" => integer 4612016
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4366
        "start_memory" => integer 4617952
        "stop_time" => float 1398364988.4367
        "stop_memory" => integer 4618504
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4369
        "start_memory" => integer 4623368
        "stop_time" => float 1398364988.4369
        "stop_memory" => integer 4623952
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4387
        "start_memory" => integer 4755848
        "stop_time" => float 1398364988.4387
        "stop_memory" => integer 4756424
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4388
        "start_memory" => integer 4761384
        "stop_time" => float 1398364988.4389
        "stop_memory" => integer 4762000
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4392
        "start_memory" => integer 4782680
        "stop_time" => float 1398364988.4392
        "stop_memory" => integer 4783248
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4394
        "start_memory" => integer 4788160
        "stop_time" => float 1398364988.4394
        "stop_memory" => integer 4788736
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.441
        "start_memory" => integer 4850752
        "stop_time" => float 1398364988.4411
        "stop_memory" => integer 4851312
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4413
        "start_memory" => integer 4856184
        "stop_time" => float 1398364988.4413
        "stop_memory" => integer 4856768
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4428
        "start_memory" => integer 4914976
        "stop_time" => float 1398364988.4428
        "stop_memory" => integer 4915536
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.443
        "start_memory" => integer 4920400
        "stop_time" => float 1398364988.443
        "stop_memory" => integer 4920984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4446
        "start_memory" => integer 4963552
        "stop_time" => float 1398364988.4446
        "stop_memory" => integer 4964128
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4448
        "start_memory" => integer 4969096
        "stop_time" => float 1398364988.4448
        "stop_memory" => integer 4969696
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4464
        "start_memory" => integer 5019640
        "stop_time" => float 1398364988.4464
        "stop_memory" => integer 5020216
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4466
        "start_memory" => integer 5026304
        "stop_time" => float 1398364988.4467
        "stop_memory" => integer 5026904
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.447
        "start_memory" => integer 5046552
        "stop_time" => float 1398364988.447
        "stop_memory" => integer 5047128
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4472
        "start_memory" => integer 5053200
        "stop_time" => float 1398364988.4473
        "stop_memory" => integer 5053808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4487
        "start_memory" => integer 5116768
        "stop_time" => float 1398364988.4487
        "stop_memory" => integer 5117344
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.449
        "start_memory" => integer 5122408
        "stop_time" => float 1398364988.4491
        "stop_memory" => integer 5123008
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4505
        "start_memory" => integer 5170616
        "stop_time" => float 1398364988.4506
        "stop_memory" => integer 5171192
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4507
        "start_memory" => integer 5176248
        "stop_time" => float 1398364988.4508
        "stop_memory" => integer 5176848
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4521
        "start_memory" => integer 5208912
        "stop_time" => float 1398364988.4521
        "stop_memory" => integer 5209488
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4522
        "start_memory" => integer 5214552
        "stop_time" => float 1398364988.4523
        "stop_memory" => integer 5215152
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4535
        "start_memory" => integer 5314952
        "stop_time" => float 1398364988.4535
        "stop_memory" => integer 5315528
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4536
        "start_memory" => integer 5320592
        "stop_time" => float 1398364988.4537
        "stop_memory" => integer 5321192
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4563
        "start_memory" => integer 5369080
        "stop_time" => float 1398364988.4564
        "stop_memory" => integer 5369640
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4565
        "start_memory" => integer 5374608
        "stop_time" => float 1398364988.4565
        "stop_memory" => integer 5375200
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4577
        "start_memory" => integer 5398328
        "stop_time" => float 1398364988.4578
        "stop_memory" => integer 5398848
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4579
        "start_memory" => integer 5403488
        "stop_time" => float 1398364988.458
        "stop_memory" => integer 5404056
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4593
        "start_memory" => integer 5513104
        "stop_time" => float 1398364988.4593
        "stop_memory" => integer 5513664
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4594
        "start_memory" => integer 5518360
        "stop_time" => float 1398364988.4596
        "stop_memory" => integer 5518936
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4648
        "start_memory" => integer 5538704
        "stop_time" => float 1398364988.4649
        "stop_memory" => integer 5539240
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4651
        "start_memory" => integer 5543904
        "stop_time" => float 1398364988.4652
        "stop_memory" => integer 5544472
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4685
        "start_memory" => integer 5581904
        "stop_time" => float 1398364988.4686
        "stop_memory" => integer 5582448
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4688
        "start_memory" => integer 5587088
        "stop_time" => float 1398364988.4689
        "stop_memory" => integer 5587656
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.47
        "start_memory" => integer 5629984
        "stop_time" => float 1398364988.4701
        "stop_memory" => integer 5630528
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4702
        "start_memory" => integer 5635168
        "stop_time" => float 1398364988.4703
        "stop_memory" => integer 5635760
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4711
        "start_memory" => integer 5665104
        "stop_time" => float 1398364988.4712
        "stop_memory" => integer 5665648
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4713
        "start_memory" => integer 5670288
        "stop_time" => float 1398364988.4714
        "stop_memory" => integer 5670856
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4732
        "start_memory" => integer 5745880
        "stop_time" => float 1398364988.4732
        "stop_memory" => integer 5746424
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4733
        "start_memory" => integer 5751080
        "stop_time" => float 1398364988.4734
        "stop_memory" => integer 5751648
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4757
        "start_memory" => integer 5773776
        "stop_time" => float 1398364988.4758
        "stop_memory" => integer 5774320
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4759
        "start_memory" => integer 5778960
        "stop_time" => float 1398364988.476
        "stop_memory" => integer 5779528
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4776
        "start_memory" => integer 5800376
        "stop_time" => float 1398364988.4777
        "stop_memory" => integer 5801960
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4778
        "start_memory" => integer 5806648
        "stop_time" => float 1398364988.4778
        "stop_memory" => integer 5807224
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4791
        "start_memory" => integer 5934608
        "stop_time" => float 1398364988.4791
        "stop_memory" => integer 5935160
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4792
        "start_memory" => integer 5939840
        "stop_time" => float 1398364988.4793
        "stop_memory" => integer 5940416
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4809
        "start_memory" => integer 6107432
        "stop_time" => float 1398364988.481
        "stop_memory" => integer 6107984
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4811
        "start_memory" => integer 6112672
        "stop_time" => float 1398364988.4811
        "stop_memory" => integer 6113232
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4838
        "start_memory" => integer 6168848
        "stop_time" => float 1398364988.4838
        "stop_memory" => integer 6169424
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4839
        "start_memory" => integer 6174312
        "stop_time" => float 1398364988.484
        "stop_memory" => integer 6174880
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4848
        "start_memory" => integer 6214912
        "stop_time" => float 1398364988.4848
        "stop_memory" => integer 6215488
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4849
        "start_memory" => integer 6220440
        "stop_time" => float 1398364988.485
        "stop_memory" => integer 6221032
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4863
        "start_memory" => integer 6246992
        "stop_time" => float 1398364988.4864
        "stop_memory" => integer 6247568
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4865
        "start_memory" => integer 6252464
        "stop_time" => float 1398364988.4866
        "stop_memory" => integer 6253040
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4894
        "start_memory" => integer 6282224
        "stop_time" => float 1398364988.4894
        "stop_memory" => integer 6282800
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4924
        "start_memory" => integer 6292288
        "stop_time" => float 1398364988.4924
        "stop_memory" => integer 6292864
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.499
        "start_memory" => integer 6329000
        "stop_time" => float 1398364988.4991
        "stop_memory" => integer 6329560
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.4993
        "start_memory" => integer 6338032
        "stop_time" => float 1398364988.4994
        "stop_memory" => integer 6338520
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5012
        "start_memory" => integer 6338776
        "stop_time" => float 1398364988.5013
        "stop_memory" => integer 6339344
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.503
        "start_memory" => integer 6345808
        "stop_time" => float 1398364988.5031
        "stop_memory" => integer 6346376
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5046
        "start_memory" => integer 6358184
        "stop_time" => float 1398364988.5047
        "stop_memory" => integer 6358768
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5052
        "start_memory" => integer 6367512
        "stop_time" => float 1398364988.5053
        "stop_memory" => integer 6368088
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.506
        "start_memory" => integer 6371168
        "stop_time" => float 1398364988.5061
        "stop_memory" => integer 6371728
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5064
        "start_memory" => integer 6380072
        "stop_time" => float 1398364988.5065
        "stop_memory" => integer 6380640
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5069
        "start_memory" => integer 6388944
        "stop_time" => float 1398364988.507
        "stop_memory" => integer 6389480
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5071
        "start_memory" => integer 6394128
        "stop_time" => float 1398364988.5072
        "stop_memory" => integer 6394696
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5079
        "start_memory" => integer 6404000
        "stop_time" => float 1398364988.5079
        "stop_memory" => integer 6404576
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.508
        "start_memory" => integer 6413288
        "stop_time" => float 1398364988.5081
        "stop_memory" => integer 6413824
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5081
        "start_memory" => integer 6418472
        "stop_time" => float 1398364988.5082
        "stop_memory" => integer 6419040
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5102
        "start_memory" => integer 6769432
        "stop_time" => float 1398364988.5103
        "stop_memory" => integer 6770008
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5112
        "start_memory" => integer 6853424
        "stop_time" => float 1398364988.5113
        "stop_memory" => integer 6854008
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5121
        "start_memory" => integer 6897168
        "stop_time" => float 1398364988.5121
        "stop_memory" => integer 6897712
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5128
        "start_memory" => integer 6927104
        "stop_time" => float 1398364988.5128
        "stop_memory" => integer 6927664
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5136
        "start_memory" => integer 6959568
        "stop_time" => float 1398364988.5136
        "stop_memory" => integer 6960144
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5143
        "start_memory" => integer 6990464
        "stop_time" => float 1398364988.5144
        "stop_memory" => integer 6991000
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5145
        "start_memory" => integer 6995648
        "stop_time" => float 1398364988.5146
        "stop_memory" => integer 6996216
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5155
        "start_memory" => integer 7007216
        "stop_time" => float 1398364988.5156
        "stop_memory" => integer 7007776
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5156
        "start_memory" => integer 7012472
        "stop_time" => float 1398364988.5157
        "stop_memory" => integer 7013048
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5165
        "start_memory" => integer 7055832
        "stop_time" => float 1398364988.5166
        "stop_memory" => integer 7056384
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5167
        "start_memory" => integer 7061056
        "stop_time" => float 1398364988.5167
        "stop_memory" => integer 7061632
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5173
        "start_memory" => integer 7075408
        "stop_time" => float 1398364988.5174
        "stop_memory" => integer 7075976
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5175
        "start_memory" => integer 7080848
        "stop_time" => float 1398364988.5175
        "stop_memory" => integer 7081432
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5178
        "start_memory" => integer 7097128
        "stop_time" => float 1398364988.5178
        "stop_memory" => integer 7097688
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5179
        "start_memory" => integer 7102576
        "stop_time" => float 1398364988.5181
        "stop_memory" => integer 7103160
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5183
        "start_memory" => integer 7121240
        "stop_time" => float 1398364988.5184
        "stop_memory" => integer 7121816
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5185
        "start_memory" => integer 7126808
        "stop_time" => float 1398364988.5186
        "stop_memory" => integer 7127400
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5188
        "start_memory" => integer 7132848
        "stop_time" => float 1398364988.5189
        "stop_memory" => integer 7133400
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5189
        "start_memory" => integer 7138280
        "stop_time" => float 1398364988.519
        "stop_memory" => integer 7138864
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5191
        "start_memory" => integer 7147584
        "stop_time" => float 1398364988.5192
        "stop_memory" => integer 7148144
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5193
        "start_memory" => integer 7153016
        "stop_time" => float 1398364988.5194
        "stop_memory" => integer 7153600
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5205
        "start_memory" => integer 7251192
        "stop_time" => float 1398364988.5205
        "stop_memory" => integer 7251768
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5206
        "start_memory" => integer 7256752
        "stop_time" => float 1398364988.5208
        "stop_memory" => integer 7257344
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5215
        "start_memory" => integer 7276216
        "stop_time" => float 1398364988.5215
        "stop_memory" => integer 7276800
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5216
        "start_memory" => integer 7281832
        "stop_time" => float 1398364988.5216
        "stop_memory" => integer 7282416
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5223
        "start_memory" => integer 7299240
        "stop_time" => float 1398364988.5223
        "stop_memory" => integer 7299808
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5224
        "start_memory" => integer 7304752
        "stop_time" => float 1398364988.5226
        "stop_memory" => integer 7305344
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5233
        "start_memory" => integer 7324104
        "stop_time" => float 1398364988.5233
        "stop_memory" => integer 7324656
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5234
        "start_memory" => integer 7329520
        "stop_time" => float 1398364988.5235
        "stop_memory" => integer 7330104
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5235
        "start_memory" => integer 7337480
        "stop_time" => float 1398364988.5236
        "stop_memory" => integer 7338040
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5237
        "start_memory" => integer 7342912
        "stop_time" => float 1398364988.5238
        "stop_memory" => integer 7343496
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5244
        "start_memory" => integer 7356688
        "stop_time" => float 1398364988.5245
        "stop_memory" => integer 7357264
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5247
        "start_memory" => integer 7362216
        "stop_time" => float 1398364988.5247
        "stop_memory" => integer 7362808
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5254
        "start_memory" => integer 7367488
        "stop_time" => float 1398364988.5255
        "stop_memory" => integer 7368040
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5257
        "start_memory" => integer 7372920
        "stop_time" => float 1398364988.5257
        "stop_memory" => integer 7373504
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5265
        "start_memory" => integer 7388792
        "stop_time" => float 1398364988.5266
        "stop_memory" => integer 7389352
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5266
        "start_memory" => integer 7394232
        "stop_time" => float 1398364988.5268
        "stop_memory" => integer 7394816
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5277
        "start_memory" => integer 7432800
        "stop_time" => float 1398364988.5278
        "stop_memory" => integer 7433376
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5279
        "start_memory" => integer 7438336
        "stop_time" => float 1398364988.5279
        "stop_memory" => integer 7438928
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5299
        "start_memory" => integer 7452632
        "stop_time" => float 1398364988.53
        "stop_memory" => integer 7453200
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5301
        "start_memory" => integer 7458168
        "stop_time" => float 1398364988.5302
        "stop_memory" => integer 7458760
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5319
        "start_memory" => integer 7469096
        "stop_time" => float 1398364988.532
        "stop_memory" => integer 7469664
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5321
        "start_memory" => integer 7474608
        "stop_time" => float 1398364988.5321
        "stop_memory" => integer 7475200
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5328
        "start_memory" => integer 7495560
        "stop_time" => float 1398364988.5328
        "stop_memory" => integer 7496128
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5329
        "start_memory" => integer 7501096
        "stop_time" => float 1398364988.533
        "stop_memory" => integer 7501688
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5335
        "start_memory" => integer 7521032
        "stop_time" => float 1398364988.5335
        "stop_memory" => integer 7521600
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5337
        "start_memory" => integer 7526624
        "stop_time" => float 1398364988.5338
        "stop_memory" => integer 7527216
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5343
        "start_memory" => integer 7544432
        "stop_time" => float 1398364988.5343
        "stop_memory" => integer 7545000
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5344
        "start_memory" => integer 7549968
        "stop_time" => float 1398364988.5344
        "stop_memory" => integer 7550560
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.535
        "start_memory" => integer 7568888
        "stop_time" => float 1398364988.5351
        "stop_memory" => integer 7569456
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5352
        "start_memory" => integer 7574408
        "stop_time" => float 1398364988.5353
        "stop_memory" => integer 7575000
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.536
        "start_memory" => integer 7595136
        "stop_time" => float 1398364988.5361
        "stop_memory" => integer 7595688
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5362
        "start_memory" => integer 7600568
        "stop_time" => float 1398364988.5363
        "stop_memory" => integer 7601152
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.537
        "start_memory" => integer 7611520
        "stop_time" => float 1398364988.537
        "stop_memory" => integer 7612080
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5371
        "start_memory" => integer 7616968
        "stop_time" => float 1398364988.5372
        "stop_memory" => integer 7617552
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5379
        "start_memory" => integer 7633048
        "stop_time" => float 1398364988.5379
        "stop_memory" => integer 7633624
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.538
        "start_memory" => integer 7638640
        "stop_time" => float 1398364988.5381
        "stop_memory" => integer 7639232
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5392
        "start_memory" => integer 7650704
        "stop_time" => float 1398364988.5393
        "stop_memory" => integer 7651272
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5394
        "start_memory" => integer 7656288
        "stop_time" => float 1398364988.5395
        "stop_memory" => integer 7656880
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5406
        "start_memory" => integer 7666688
        "stop_time" => float 1398364988.5407
        "stop_memory" => integer 7667256
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5408
        "start_memory" => integer 7672192
        "stop_time" => float 1398364988.5409
        "stop_memory" => integer 7672768
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5414
        "start_memory" => integer 7678928
        "stop_time" => float 1398364988.5415
        "stop_memory" => integer 7679528
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5416
        "start_memory" => integer 7684480
        "stop_time" => float 1398364988.5417
        "stop_memory" => integer 7685072
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.544
        "start_memory" => integer 7694912
        "stop_time" => float 1398364988.5441
        "stop_memory" => integer 7695464
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5442
        "start_memory" => integer 7700344
        "stop_time" => float 1398364988.5443
        "stop_memory" => integer 7700928
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5461
        "start_memory" => integer 7775304
        "stop_time" => float 1398364988.5462
        "stop_memory" => integer 7775832
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5463
        "start_memory" => integer 7780480
        "stop_time" => float 1398364988.5464
        "stop_memory" => integer 7781048
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5521
        "start_memory" => integer 7807104
        "stop_time" => float 1398364988.5522
        "stop_memory" => integer 7807648
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5524
        "start_memory" => integer 7812304
        "stop_time" => float 1398364988.5525
        "stop_memory" => integer 7812872
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5533
        "start_memory" => integer 7844672
        "stop_time" => float 1398364988.5534
        "stop_memory" => integer 7845216
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5535
        "start_memory" => integer 7849864
        "stop_time" => float 1398364988.5536
        "stop_memory" => integer 7850432
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5549
        "start_memory" => integer 7916728
        "stop_time" => float 1398364988.555
        "stop_memory" => integer 7917288
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5552
        "start_memory" => integer 7924192
        "stop_time" => float 1398364988.5553
        "stop_memory" => integer 7924768
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5559
        "start_memory" => integer 7948216
        "stop_time" => float 1398364988.556
        "stop_memory" => integer 7948800
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5561
        "start_memory" => integer 7955768
        "stop_time" => float 1398364988.5562
        "stop_memory" => integer 7956360
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5579
        "start_memory" => integer 8027040
        "stop_time" => float 1398364988.558
        "stop_memory" => integer 8027576
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5581
        "start_memory" => integer 8032448
        "stop_time" => float 1398364988.5583
        "stop_memory" => integer 8033000
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5592
        "start_memory" => integer 8060736
        "stop_time" => float 1398364988.5593
        "stop_memory" => integer 8061272
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5595
        "start_memory" => integer 8065912
        "stop_time" => float 1398364988.5596
        "stop_memory" => integer 8066480
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5614
        "start_memory" => integer 8187360
        "stop_time" => float 1398364988.5615
        "stop_memory" => integer 8187904
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5616
        "start_memory" => integer 8192560
        "stop_time" => float 1398364988.5617
        "stop_memory" => integer 8193128
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5701
        "start_memory" => integer 8231848
        "stop_time" => float 1398364988.5703
        "stop_memory" => integer 8232392
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5705
        "start_memory" => integer 8237048
        "stop_time" => float 1398364988.5707
        "stop_memory" => integer 8237616
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5734
        "start_memory" => integer 8478488
        "stop_time" => float 1398364988.5735
        "stop_memory" => integer 8479064
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5737
        "start_memory" => integer 8484000
        "stop_time" => float 1398364988.5738
        "stop_memory" => integer 8484584
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.5753
        "start_memory" => integer 8502616
        "stop_time" => float 1398364988.5754
        "stop_memory" => integer 8503192
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398364988.576
        "start_memory" => integer 8469872
        "stop_time" => float 1398364988.5762
        "stop_memory" => integer 8471984
    )
)

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