Modules

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-2012 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/kohana/profiler.php on line 14.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1475199043.2257
        "start_memory" => integer 1117232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2257
        "start_memory" => integer 1119472
        "stop_time" => float 1475199043.2258
        "stop_memory" => integer 1120160
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2259
        "start_memory" => integer 1123704
        "stop_time" => float 1475199043.2259
        "stop_memory" => integer 1124312
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2265
        "start_memory" => integer 1200776
        "stop_time" => float 1475199043.2266
        "stop_memory" => integer 1201328
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2266
        "start_memory" => integer 1204832
        "stop_time" => float 1475199043.2267
        "stop_memory" => integer 1205424
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2268
        "start_memory" => integer 1213392
        "stop_time" => float 1475199043.2269
        "stop_memory" => integer 1213944
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2269
        "start_memory" => integer 1217408
        "stop_time" => float 1475199043.227
        "stop_memory" => integer 1218016
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2271
        "start_memory" => integer 1226880
        "stop_time" => float 1475199043.2272
        "stop_memory" => integer 1227440
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2272
        "start_memory" => integer 1230880
        "stop_time" => float 1475199043.2273
        "stop_memory" => integer 1231528
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.228
        "start_memory" => integer 1326352
        "stop_time" => float 1475199043.2281
        "stop_memory" => integer 1326936
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2282
        "start_memory" => integer 1330416
        "stop_time" => float 1475199043.2282
        "stop_memory" => integer 1331008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2283
        "start_memory" => integer 1342792
        "stop_time" => float 1475199043.2284
        "stop_memory" => integer 1343344
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2285
        "start_memory" => integer 1346768
        "stop_time" => float 1475199043.2285
        "stop_memory" => integer 1347336
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2288
        "start_memory" => integer 1381728
        "stop_time" => float 1475199043.2289
        "stop_memory" => integer 1382328
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2289
        "start_memory" => integer 1383400
        "stop_time" => float 1475199043.2289
        "stop_memory" => integer 1383936
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.229
        "start_memory" => integer 1387344
        "stop_time" => float 1475199043.2291
        "stop_memory" => integer 1387920
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2293
        "start_memory" => integer 1407168
        "stop_time" => float 1475199043.2294
        "stop_memory" => integer 1407872
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2294
        "start_memory" => integer 1411296
        "stop_time" => float 1475199043.2295
        "stop_memory" => integer 1411864
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2301
        "start_memory" => integer 1507472
        "stop_time" => float 1475199043.2301
        "stop_memory" => integer 1508072
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2302
        "start_memory" => integer 1511576
        "stop_time" => float 1475199043.2303
        "stop_memory" => integer 1512176
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2306
        "start_memory" => integer 1551448
        "stop_time" => float 1475199043.2307
        "stop_memory" => integer 1551976
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2307
        "start_memory" => integer 1552616
        "stop_time" => float 1475199043.2307
        "stop_memory" => integer 1553192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2333
        "start_memory" => integer 1952376
        "stop_time" => float 1475199043.2334
        "stop_memory" => integer 1952960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2335
        "start_memory" => integer 1956464
        "stop_time" => float 1475199043.2335
        "stop_memory" => integer 1957064
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2337
        "start_memory" => integer 1958696
        "stop_time" => float 1475199043.2337
        "stop_memory" => integer 1959296
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2338
        "start_memory" => integer 1962808
        "stop_time" => float 1475199043.2338
        "stop_memory" => integer 1963384
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2341
        "start_memory" => integer 1993032
        "stop_time" => float 1475199043.2342
        "stop_memory" => integer 1993592
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2342
        "start_memory" => integer 1997096
        "stop_time" => float 1475199043.2343
        "stop_memory" => integer 1997696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2348
        "start_memory" => integer 2059736
        "stop_time" => float 1475199043.2348
        "stop_memory" => integer 2060288
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2349
        "start_memory" => integer 2063728
        "stop_time" => float 1475199043.235
        "stop_memory" => integer 2064296
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.2359
        "start_memory" => integer 2123488
        "stop_time" => float 1475199043.236
        "stop_memory" => integer 2124104
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3385
        "start_memory" => integer 2164976
        "stop_time" => float 1475199043.3385
        "stop_memory" => integer 2165552
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3386
        "start_memory" => integer 2168976
        "stop_time" => float 1475199043.3387
        "stop_memory" => integer 2169816
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3394
        "start_memory" => integer 2196064
        "stop_time" => float 1475199043.3394
        "stop_memory" => integer 2196640
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3395
        "start_memory" => integer 2200120
        "stop_time" => float 1475199043.3395
        "stop_memory" => integer 2200712
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.34
        "start_memory" => integer 2218008
        "stop_time" => float 1475199043.3401
        "stop_memory" => integer 2218576
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3401
        "start_memory" => integer 2222040
        "stop_time" => float 1475199043.3402
        "stop_memory" => integer 2222632
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3408
        "start_memory" => integer 2266088
        "stop_time" => float 1475199043.3409
        "stop_memory" => integer 2266688
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.341
        "start_memory" => integer 2278224
        "stop_time" => float 1475199043.341
        "stop_memory" => integer 2278800
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3411
        "start_memory" => integer 2282312
        "stop_time" => float 1475199043.3411
        "stop_memory" => integer 2282896
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3416
        "start_memory" => integer 2320912
        "stop_time" => float 1475199043.3416
        "stop_memory" => integer 2321512
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3418
        "start_memory" => integer 2333632
        "stop_time" => float 1475199043.3418
        "stop_memory" => integer 2334208
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3422
        "start_memory" => integer 2361224
        "stop_time" => float 1475199043.3422
        "stop_memory" => integer 2361824
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3424
        "start_memory" => integer 2369640
        "stop_time" => float 1475199043.3424
        "stop_memory" => integer 2370216
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3427
        "start_memory" => integer 2383368
        "stop_time" => float 1475199043.3427
        "stop_memory" => integer 2383968
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3429
        "start_memory" => integer 2390984
        "stop_time" => float 1475199043.3429
        "stop_memory" => integer 2391576
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3431
        "start_memory" => integer 2404880
        "stop_time" => float 1475199043.3432
        "stop_memory" => integer 2405472
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3434
        "start_memory" => integer 2419104
        "stop_time" => float 1475199043.3434
        "stop_memory" => integer 2419696
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3436
        "start_memory" => integer 2429176
        "stop_time" => float 1475199043.3436
        "stop_memory" => integer 2429768
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3438
        "start_memory" => integer 2438440
        "stop_time" => float 1475199043.3439
        "stop_memory" => integer 2439032
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3441
        "start_memory" => integer 2484384
        "stop_time" => float 1475199043.3441
        "stop_memory" => integer 2484960
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3444
        "start_memory" => integer 2507888
        "stop_time" => float 1475199043.3445
        "stop_memory" => integer 2508488
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3447
        "start_memory" => integer 2521784
        "stop_time" => float 1475199043.3447
        "stop_memory" => integer 2522360
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.345
        "start_memory" => integer 2541560
        "stop_time" => float 1475199043.345
        "stop_memory" => integer 2542144
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3452
        "start_memory" => integer 2555800
        "stop_time" => float 1475199043.3453
        "stop_memory" => integer 2556368
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3453
        "start_memory" => integer 2559824
        "stop_time" => float 1475199043.3454
        "stop_memory" => integer 2560408
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3456
        "start_memory" => integer 2582608
        "stop_time" => float 1475199043.3456
        "stop_memory" => integer 2583168
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3457
        "start_memory" => integer 2586600
        "stop_time" => float 1475199043.3458
        "stop_memory" => integer 2587184
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3476
        "start_memory" => integer 2681112
        "stop_time" => float 1475199043.3477
        "stop_memory" => integer 2681688
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3532
        "start_memory" => integer 2712264
        "stop_time" => float 1475199043.3532
        "stop_memory" => integer 2712840
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3533
        "start_memory" => integer 2716320
        "stop_time" => float 1475199043.3533
        "stop_memory" => integer 2716912
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3564
        "start_memory" => integer 2736024
        "stop_time" => float 1475199043.3564
        "stop_memory" => integer 2736608
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3565
        "start_memory" => integer 2740136
        "stop_time" => float 1475199043.3565
        "stop_memory" => integer 2740736
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3597
        "start_memory" => integer 2759920
        "stop_time" => float 1475199043.3597
        "stop_memory" => integer 2760480
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3598
        "start_memory" => integer 2763960
        "stop_time" => float 1475199043.3599
        "stop_memory" => integer 2765064
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3605
        "start_memory" => integer 2819592
        "stop_time" => float 1475199043.3606
        "stop_memory" => integer 2820192
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3653
        "start_memory" => integer 2827504
        "stop_time" => float 1475199043.3653
        "stop_memory" => integer 2828080
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3654
        "start_memory" => integer 2831584
        "stop_time" => float 1475199043.3655
        "stop_memory" => integer 2832184
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3801
        "start_memory" => integer 2871856
        "stop_time" => float 1475199043.3802
        "stop_memory" => integer 2872432
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3804
        "start_memory" => integer 2875960
        "stop_time" => float 1475199043.3804
        "stop_memory" => integer 2876560
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3807
        "start_memory" => integer 2892504
        "stop_time" => float 1475199043.3808
        "stop_memory" => integer 2893080
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3815
        "start_memory" => integer 2900384
        "stop_time" => float 1475199043.3815
        "stop_memory" => integer 2900952
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3817
        "start_memory" => integer 2904424
        "stop_time" => float 1475199043.3817
        "stop_memory" => integer 2905016
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3827
        "start_memory" => integer 2954488
        "stop_time" => float 1475199043.3828
        "stop_memory" => integer 2955072
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3829
        "start_memory" => integer 2958576
        "stop_time" => float 1475199043.3829
        "stop_memory" => integer 2959176
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.388
        "start_memory" => integer 2978552
        "stop_time" => float 1475199043.3881
        "stop_memory" => integer 2979112
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3883
        "start_memory" => integer 2982584
        "stop_time" => float 1475199043.3883
        "stop_memory" => integer 2983176
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3891
        "start_memory" => integer 2998344
        "stop_time" => float 1475199043.3892
        "stop_memory" => integer 2998880
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3893
        "start_memory" => integer 3002288
        "stop_time" => float 1475199043.3894
        "stop_memory" => integer 3002864
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.391
        "start_memory" => integer 3009536
        "stop_time" => float 1475199043.391
        "stop_memory" => integer 3010136
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3911
        "start_memory" => integer 3013648
        "stop_time" => float 1475199043.3912
        "stop_memory" => integer 3014248
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3946
        "start_memory" => integer 3049296
        "stop_time" => float 1475199043.3947
        "stop_memory" => integer 3049888
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3953
        "start_memory" => integer 3057584
        "stop_time" => float 1475199043.3954
        "stop_memory" => integer 3058144
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3955
        "start_memory" => integer 3061632
        "stop_time" => float 1475199043.3956
        "stop_memory" => integer 3062224
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.3991
        "start_memory" => integer 3079864
        "stop_time" => float 1475199043.3991
        "stop_memory" => integer 3080448
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.401
        "start_memory" => integer 3085048
        "stop_time" => float 1475199043.4011
        "stop_memory" => integer 3085616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4012
        "start_memory" => integer 3089080
        "stop_time" => float 1475199043.4012
        "stop_memory" => integer 3089672
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4037
        "start_memory" => integer 3183728
        "stop_time" => float 1475199043.4038
        "stop_memory" => integer 3184328
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4039
        "start_memory" => integer 3187880
        "stop_time" => float 1475199043.404
        "stop_memory" => integer 3188472
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4045
        "start_memory" => integer 3202048
        "stop_time" => float 1475199043.4045
        "stop_memory" => integer 3202640
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4047
        "start_memory" => integer 3206192
        "stop_time" => float 1475199043.4048
        "stop_memory" => integer 3206800
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4063
        "start_memory" => integer 3211832
        "stop_time" => float 1475199043.4063
        "stop_memory" => integer 3212400
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4064
        "start_memory" => integer 3215904
        "stop_time" => float 1475199043.4065
        "stop_memory" => integer 3216504
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4075
        "start_memory" => integer 3311296
        "stop_time" => float 1475199043.4076
        "stop_memory" => integer 3311888
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4078
        "start_memory" => integer 3315440
        "stop_time" => float 1475199043.4078
        "stop_memory" => integer 3316048
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.408
        "start_memory" => integer 3328088
        "stop_time" => float 1475199043.4081
        "stop_memory" => integer 3328656
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4081
        "start_memory" => integer 3332160
        "stop_time" => float 1475199043.4082
        "stop_memory" => integer 3332784
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4092
        "start_memory" => integer 3376424
        "stop_time" => float 1475199043.4093
        "stop_memory" => integer 3377000
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4095
        "start_memory" => integer 3380520
        "stop_time" => float 1475199043.4095
        "stop_memory" => integer 3381120
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4103
        "start_memory" => integer 3425752
        "stop_time" => float 1475199043.4104
        "stop_memory" => integer 3426328
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4105
        "start_memory" => integer 3429832
        "stop_time" => float 1475199043.4106
        "stop_memory" => integer 3430432
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4116
        "start_memory" => integer 3457744
        "stop_time" => float 1475199043.4117
        "stop_memory" => integer 3458336
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4118
        "start_memory" => integer 3461896
        "stop_time" => float 1475199043.4119
        "stop_memory" => integer 3462504
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4129
        "start_memory" => integer 3498720
        "stop_time" => float 1475199043.413
        "stop_memory" => integer 3499320
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4131
        "start_memory" => integer 3502952
        "stop_time" => float 1475199043.4132
        "stop_memory" => integer 3503568
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4134
        "start_memory" => integer 3515712
        "stop_time" => float 1475199043.4134
        "stop_memory" => integer 3516304
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4136
        "start_memory" => integer 3519928
        "stop_time" => float 1475199043.4136
        "stop_memory" => integer 3520544
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4146
        "start_memory" => integer 3572664
        "stop_time" => float 1475199043.4147
        "stop_memory" => integer 3573256
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4149
        "start_memory" => integer 3576864
        "stop_time" => float 1475199043.4149
        "stop_memory" => integer 3577480
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4158
        "start_memory" => integer 3610072
        "stop_time" => float 1475199043.4159
        "stop_memory" => integer 3610664
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.416
        "start_memory" => integer 3614288
        "stop_time" => float 1475199043.4161
        "stop_memory" => integer 3614904
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.417
        "start_memory" => integer 3643528
        "stop_time" => float 1475199043.417
        "stop_memory" => integer 3644120
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4172
        "start_memory" => integer 3647728
        "stop_time" => float 1475199043.4173
        "stop_memory" => integer 3648344
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4185
        "start_memory" => integer 3724264
        "stop_time" => float 1475199043.4185
        "stop_memory" => integer 3724856
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4186
        "start_memory" => integer 3728464
        "stop_time" => float 1475199043.4187
        "stop_memory" => integer 3729080
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4209
        "start_memory" => integer 3765616
        "stop_time" => float 1475199043.4209
        "stop_memory" => integer 3766192
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4211
        "start_memory" => integer 3769752
        "stop_time" => float 1475199043.4211
        "stop_memory" => integer 3770360
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.422
        "start_memory" => integer 3788688
        "stop_time" => float 1475199043.4221
        "stop_memory" => integer 3789224
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4222
        "start_memory" => integer 3792672
        "stop_time" => float 1475199043.4224
        "stop_memory" => integer 3793240
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4238
        "start_memory" => integer 3862800
        "stop_time" => float 1475199043.4239
        "stop_memory" => integer 3863384
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.424
        "start_memory" => integer 3866840
        "stop_time" => float 1475199043.424
        "stop_memory" => integer 3867416
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4289
        "start_memory" => integer 3881616
        "stop_time" => float 1475199043.429
        "stop_memory" => integer 3882176
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4291
        "start_memory" => integer 3885608
        "stop_time" => float 1475199043.4292
        "stop_memory" => integer 3886192
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4325
        "start_memory" => integer 3908032
        "stop_time" => float 1475199043.4326
        "stop_memory" => integer 3908592
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4327
        "start_memory" => integer 3912016
        "stop_time" => float 1475199043.4327
        "stop_memory" => integer 3912584
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4335
        "start_memory" => integer 3935728
        "stop_time" => float 1475199043.4336
        "stop_memory" => integer 3936296
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4337
        "start_memory" => integer 3939744
        "stop_time" => float 1475199043.4337
        "stop_memory" => integer 3940312
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4343
        "start_memory" => integer 3966232
        "stop_time" => float 1475199043.4344
        "stop_memory" => integer 3966800
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4345
        "start_memory" => integer 3970224
        "stop_time" => float 1475199043.4346
        "stop_memory" => integer 3971816
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4359
        "start_memory" => integer 4018936
        "stop_time" => float 1475199043.4361
        "stop_memory" => integer 4019504
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4362
        "start_memory" => integer 4022944
        "stop_time" => float 1475199043.4363
        "stop_memory" => integer 4023528
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4383
        "start_memory" => integer 4038080
        "stop_time" => float 1475199043.4384
        "stop_memory" => integer 4038640
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4385
        "start_memory" => integer 4042088
        "stop_time" => float 1475199043.4386
        "stop_memory" => integer 4042656
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.44
        "start_memory" => integer 4059280
        "stop_time" => float 1475199043.4401
        "stop_memory" => integer 4059864
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4403
        "start_memory" => integer 4063344
        "stop_time" => float 1475199043.4404
        "stop_memory" => integer 4063936
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4411
        "start_memory" => integer 4080400
        "stop_time" => float 1475199043.4412
        "stop_memory" => integer 4080968
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4413
        "start_memory" => integer 4084472
        "stop_time" => float 1475199043.4414
        "stop_memory" => integer 4085064
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.442
        "start_memory" => integer 4098648
        "stop_time" => float 1475199043.4421
        "stop_memory" => integer 4099216
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4422
        "start_memory" => integer 4102720
        "stop_time" => float 1475199043.4423
        "stop_memory" => integer 4103312
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.443
        "start_memory" => integer 4116912
        "stop_time" => float 1475199043.4431
        "stop_memory" => integer 4117480
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4432
        "start_memory" => integer 4120984
        "stop_time" => float 1475199043.4434
        "stop_memory" => integer 4121576
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4441
        "start_memory" => integer 4135176
        "stop_time" => float 1475199043.4442
        "stop_memory" => integer 4135744
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4443
        "start_memory" => integer 4139248
        "stop_time" => float 1475199043.4444
        "stop_memory" => integer 4139840
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4452
        "start_memory" => integer 4153424
        "stop_time" => float 1475199043.4453
        "stop_memory" => integer 4153992
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4455
        "start_memory" => integer 4157496
        "stop_time" => float 1475199043.4456
        "stop_memory" => integer 4158088
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4462
        "start_memory" => integer 4171672
        "stop_time" => float 1475199043.4463
        "stop_memory" => integer 4172240
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4464
        "start_memory" => integer 4175744
        "stop_time" => float 1475199043.4465
        "stop_memory" => integer 4176336
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4471
        "start_memory" => integer 4189936
        "stop_time" => float 1475199043.4472
        "stop_memory" => integer 4190504
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4473
        "start_memory" => integer 4194008
        "stop_time" => float 1475199043.4474
        "stop_memory" => integer 4194600
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4481
        "start_memory" => integer 4208184
        "stop_time" => float 1475199043.4482
        "stop_memory" => integer 4208752
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4483
        "start_memory" => integer 4212256
        "stop_time" => float 1475199043.4484
        "stop_memory" => integer 4212848
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4491
        "start_memory" => integer 4226528
        "stop_time" => float 1475199043.4492
        "stop_memory" => integer 4227096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4493
        "start_memory" => integer 4230600
        "stop_time" => float 1475199043.4494
        "stop_memory" => integer 4231192
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4502
        "start_memory" => integer 4244800
        "stop_time" => float 1475199043.4503
        "stop_memory" => integer 4245368
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4505
        "start_memory" => integer 4248872
        "stop_time" => float 1475199043.4505
        "stop_memory" => integer 4249464
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4512
        "start_memory" => integer 4263048
        "stop_time" => float 1475199043.4513
        "stop_memory" => integer 4263616
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4514
        "start_memory" => integer 4267120
        "stop_time" => float 1475199043.4515
        "stop_memory" => integer 4267712
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4521
        "start_memory" => integer 4281280
        "stop_time" => float 1475199043.4522
        "stop_memory" => integer 4281848
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4522
        "start_memory" => integer 4285352
        "stop_time" => float 1475199043.4523
        "stop_memory" => integer 4285944
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.453
        "start_memory" => integer 4299528
        "stop_time" => float 1475199043.4531
        "stop_memory" => integer 4300096
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4532
        "start_memory" => integer 4303600
        "stop_time" => float 1475199043.4533
        "stop_memory" => integer 4304192
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.454
        "start_memory" => integer 4317792
        "stop_time" => float 1475199043.4541
        "stop_memory" => integer 4318360
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4542
        "start_memory" => integer 4321864
        "stop_time" => float 1475199043.4543
        "stop_memory" => integer 4322456
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4549
        "start_memory" => integer 4336072
        "stop_time" => float 1475199043.455
        "stop_memory" => integer 4336640
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4551
        "start_memory" => integer 4340144
        "stop_time" => float 1475199043.4552
        "stop_memory" => integer 4340736
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4558
        "start_memory" => integer 4354336
        "stop_time" => float 1475199043.4558
        "stop_memory" => integer 4354904
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4559
        "start_memory" => integer 4358408
        "stop_time" => float 1475199043.456
        "stop_memory" => integer 4359000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4568
        "start_memory" => integer 4372728
        "stop_time" => float 1475199043.4568
        "stop_memory" => integer 4373296
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.457
        "start_memory" => integer 4376800
        "stop_time" => float 1475199043.4571
        "stop_memory" => integer 4377392
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4579
        "start_memory" => integer 4391008
        "stop_time" => float 1475199043.458
        "stop_memory" => integer 4391576
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4581
        "start_memory" => integer 4395080
        "stop_time" => float 1475199043.4582
        "stop_memory" => integer 4395672
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4589
        "start_memory" => integer 4409272
        "stop_time" => float 1475199043.459
        "stop_memory" => integer 4409840
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4591
        "start_memory" => integer 4413344
        "stop_time" => float 1475199043.4592
        "stop_memory" => integer 4413936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4598
        "start_memory" => integer 4427536
        "stop_time" => float 1475199043.4598
        "stop_memory" => integer 4428104
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.46
        "start_memory" => integer 4431608
        "stop_time" => float 1475199043.4601
        "stop_memory" => integer 4432200
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4608
        "start_memory" => integer 4445784
        "stop_time" => float 1475199043.4608
        "stop_memory" => integer 4446352
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4609
        "start_memory" => integer 4449856
        "stop_time" => float 1475199043.461
        "stop_memory" => integer 4450448
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4616
        "start_memory" => integer 4464032
        "stop_time" => float 1475199043.4617
        "stop_memory" => integer 4464600
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4617
        "start_memory" => integer 4468104
        "stop_time" => float 1475199043.4618
        "stop_memory" => integer 4468696
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4625
        "start_memory" => integer 4482296
        "stop_time" => float 1475199043.4625
        "stop_memory" => integer 4482864
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4626
        "start_memory" => integer 4486368
        "stop_time" => float 1475199043.4627
        "stop_memory" => integer 4486960
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4633
        "start_memory" => integer 4500544
        "stop_time" => float 1475199043.4634
        "stop_memory" => integer 4501112
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4635
        "start_memory" => integer 4504616
        "stop_time" => float 1475199043.4636
        "stop_memory" => integer 4505208
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4651
        "start_memory" => integer 4519032
        "stop_time" => float 1475199043.4652
        "stop_memory" => integer 4519600
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4653
        "start_memory" => integer 4523104
        "stop_time" => float 1475199043.4653
        "stop_memory" => integer 4523696
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4675
        "start_memory" => integer 4546624
        "stop_time" => float 1475199043.4675
        "stop_memory" => integer 4547192
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4676
        "start_memory" => integer 4550656
        "stop_time" => float 1475199043.4677
        "stop_memory" => integer 4551232
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4689
        "start_memory" => integer 4632416
        "stop_time" => float 1475199043.4689
        "stop_memory" => integer 4632992
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4691
        "start_memory" => integer 4636456
        "stop_time" => float 1475199043.4692
        "stop_memory" => integer 4637048
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4707
        "start_memory" => integer 4738240
        "stop_time" => float 1475199043.4709
        "stop_memory" => integer 4738792
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.471
        "start_memory" => integer 4742272
        "stop_time" => float 1475199043.4711
        "stop_memory" => integer 4742856
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4733
        "start_memory" => integer 4775824
        "stop_time" => float 1475199043.4734
        "stop_memory" => integer 4776416
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4735
        "start_memory" => integer 4779936
        "stop_time" => float 1475199043.4735
        "stop_memory" => integer 4780536
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4744
        "start_memory" => integer 4806104
        "stop_time" => float 1475199043.4745
        "stop_memory" => integer 4806696
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4746
        "start_memory" => integer 4810272
        "stop_time" => float 1475199043.4747
        "stop_memory" => integer 4810880
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4759
        "start_memory" => integer 4829584
        "stop_time" => float 1475199043.476
        "stop_memory" => integer 4830152
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4762
        "start_memory" => integer 4833688
        "stop_time" => float 1475199043.4763
        "stop_memory" => integer 4834288
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4784
        "start_memory" => integer 4852928
        "stop_time" => float 1475199043.4784
        "stop_memory" => integer 4853520
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4837
        "start_memory" => integer 4863200
        "stop_time" => float 1475199043.4839
        "stop_memory" => integer 4863776
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4845
        "start_memory" => integer 4872408
        "stop_time" => float 1475199043.4846
        "stop_memory" => integer 4872992
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4873
        "start_memory" => integer 4882392
        "stop_time" => float 1475199043.4875
        "stop_memory" => integer 4882944
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4877
        "start_memory" => integer 4886408
        "stop_time" => float 1475199043.4879
        "stop_memory" => integer 4887000
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.489
        "start_memory" => integer 4891032
        "stop_time" => float 1475199043.4891
        "stop_memory" => integer 4891592
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4892
        "start_memory" => integer 4895048
        "stop_time" => float 1475199043.4894
        "stop_memory" => integer 4895640
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4904
        "start_memory" => integer 4899592
        "stop_time" => float 1475199043.4905
        "stop_memory" => integer 4900152
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4906
        "start_memory" => integer 4903696
        "stop_time" => float 1475199043.4908
        "stop_memory" => integer 4904288
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4925
        "start_memory" => integer 4913264
        "stop_time" => float 1475199043.4926
        "stop_memory" => integer 4913824
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4928
        "start_memory" => integer 4917288
        "stop_time" => float 1475199043.4929
        "stop_memory" => integer 4917912
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4937
        "start_memory" => integer 4920096
        "stop_time" => float 1475199043.4938
        "stop_memory" => integer 4920736
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.494
        "start_memory" => integer 4927520
        "stop_time" => float 1475199043.4941
        "stop_memory" => integer 4928072
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4943
        "start_memory" => integer 4931536
        "stop_time" => float 1475199043.4945
        "stop_memory" => integer 4932120
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4983
        "start_memory" => integer 5163720
        "stop_time" => float 1475199043.4984
        "stop_memory" => integer 5164312
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.4997
        "start_memory" => integer 5221064
        "stop_time" => float 1475199043.4999
        "stop_memory" => integer 5221648
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5011
        "start_memory" => integer 5256048
        "stop_time" => float 1475199043.5012
        "stop_memory" => integer 5256632
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5014
        "start_memory" => integer 5260152
        "stop_time" => float 1475199043.5015
        "stop_memory" => integer 5260752
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5026
        "start_memory" => integer 5266760
        "stop_time" => float 1475199043.5027
        "stop_memory" => integer 5267320
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5037
        "start_memory" => integer 5293376
        "stop_time" => float 1475199043.5039
        "stop_memory" => integer 5293952
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5046
        "start_memory" => integer 5322936
        "stop_time" => float 1475199043.5047
        "stop_memory" => integer 5323528
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5056
        "start_memory" => integer 5350208
        "stop_time" => float 1475199043.5057
        "stop_memory" => integer 5350744
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5059
        "start_memory" => integer 5354248
        "stop_time" => float 1475199043.506
        "stop_memory" => integer 5354832
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5093
        "start_memory" => integer 5382000
        "stop_time" => float 1475199043.5094
        "stop_memory" => integer 5382624
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5095
        "start_memory" => integer 5386472
        "stop_time" => float 1475199043.5096
        "stop_memory" => integer 5387104
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5124
        "start_memory" => integer 5418872
        "stop_time" => float 1475199043.5125
        "stop_memory" => integer 5419448
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5126
        "start_memory" => integer 5423016
        "stop_time" => float 1475199043.5127
        "stop_memory" => integer 5423632
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5172
        "start_memory" => integer 5488408
        "stop_time" => float 1475199043.5173
        "stop_memory" => integer 5488952
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5174
        "start_memory" => integer 5492496
        "stop_time" => float 1475199043.5176
        "stop_memory" => integer 5493104
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5182
        "start_memory" => integer 5503168
        "stop_time" => float 1475199043.5183
        "stop_memory" => integer 5503792
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5184
        "start_memory" => integer 5507272
        "stop_time" => float 1475199043.5185
        "stop_memory" => integer 5507864
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5195
        "start_memory" => integer 5552392
        "stop_time" => float 1475199043.5195
        "stop_memory" => integer 5552976
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5196
        "start_memory" => integer 5556512
        "stop_time" => float 1475199043.5197
        "stop_memory" => integer 5557120
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5204
        "start_memory" => integer 5577448
        "stop_time" => float 1475199043.5204
        "stop_memory" => integer 5578080
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5206
        "start_memory" => integer 5581656
        "stop_time" => float 1475199043.5206
        "stop_memory" => integer 5582256
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5218
        "start_memory" => integer 5630880
        "stop_time" => float 1475199043.5218
        "stop_memory" => integer 5631448
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.522
        "start_memory" => integer 5635008
        "stop_time" => float 1475199043.5221
        "stop_memory" => integer 5635600
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5227
        "start_memory" => integer 5657880
        "stop_time" => float 1475199043.5228
        "stop_memory" => integer 5658496
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5229
        "start_memory" => integer 5661992
        "stop_time" => float 1475199043.523
        "stop_memory" => integer 5662568
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5242
        "start_memory" => integer 5735128
        "stop_time" => float 1475199043.5243
        "stop_memory" => integer 5735696
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5244
        "start_memory" => integer 5739184
        "stop_time" => float 1475199043.5245
        "stop_memory" => integer 5739768
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5298
        "start_memory" => integer 5758936
        "stop_time" => float 1475199043.5299
        "stop_memory" => integer 5759496
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.53
        "start_memory" => integer 5762968
        "stop_time" => float 1475199043.5301
        "stop_memory" => integer 5763608
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5312
        "start_memory" => integer 5823152
        "stop_time" => float 1475199043.5313
        "stop_memory" => integer 5823720
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5314
        "start_memory" => integer 5827248
        "stop_time" => float 1475199043.5315
        "stop_memory" => integer 5827832
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5328
        "start_memory" => integer 5896976
        "stop_time" => float 1475199043.5329
        "stop_memory" => integer 5897616
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.533
        "start_memory" => integer 5901176
        "stop_time" => float 1475199043.5331
        "stop_memory" => integer 5901760
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5341
        "start_memory" => integer 5919800
        "stop_time" => float 1475199043.5342
        "stop_memory" => integer 5920448
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5346
        "start_memory" => integer 5886368
        "stop_time" => float 1475199043.5347
        "stop_memory" => integer 5888688
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5353
        "start_memory" => integer 5924816
        "stop_time" => float 1475199043.5354
        "stop_memory" => integer 5926480
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1475199043.5354
        "start_memory" => integer 5926112
        "stop_time" => float 1475199043.5355
        "stop_memory" => integer 5927800
    )
)

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