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 1487736851.2416
        "start_memory" => integer 1116440
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2417
        "start_memory" => integer 1118688
        "stop_time" => float 1487736851.2417
        "stop_memory" => integer 1119376
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2418
        "start_memory" => integer 1122920
        "stop_time" => float 1487736851.2418
        "stop_memory" => integer 1123528
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2424
        "start_memory" => integer 1200000
        "stop_time" => float 1487736851.2425
        "stop_memory" => integer 1200552
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2425
        "start_memory" => integer 1204056
        "stop_time" => float 1487736851.2426
        "stop_memory" => integer 1204648
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2427
        "start_memory" => integer 1212608
        "stop_time" => float 1487736851.2427
        "stop_memory" => integer 1213160
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2428
        "start_memory" => integer 1216624
        "stop_time" => float 1487736851.2428
        "stop_memory" => integer 1217232
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.243
        "start_memory" => integer 1226064
        "stop_time" => float 1487736851.243
        "stop_memory" => integer 1226624
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2431
        "start_memory" => integer 1230064
        "stop_time" => float 1487736851.2431
        "stop_memory" => integer 1230712
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2438
        "start_memory" => integer 1325600
        "stop_time" => float 1487736851.2439
        "stop_memory" => integer 1326176
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.244
        "start_memory" => integer 1329656
        "stop_time" => float 1487736851.244
        "stop_memory" => integer 1330248
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2441
        "start_memory" => integer 1342032
        "stop_time" => float 1487736851.2442
        "stop_memory" => integer 1342584
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2443
        "start_memory" => integer 1346008
        "stop_time" => float 1487736851.2443
        "stop_memory" => integer 1346576
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2446
        "start_memory" => integer 1380968
        "stop_time" => float 1487736851.2446
        "stop_memory" => integer 1381568
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2447
        "start_memory" => integer 1382640
        "stop_time" => float 1487736851.2447
        "stop_memory" => integer 1383176
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2448
        "start_memory" => integer 1386584
        "stop_time" => float 1487736851.2448
        "stop_memory" => integer 1387160
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.245
        "start_memory" => integer 1406408
        "stop_time" => float 1487736851.2451
        "stop_memory" => integer 1407112
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2452
        "start_memory" => integer 1410536
        "stop_time" => float 1487736851.2452
        "stop_memory" => integer 1411104
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2458
        "start_memory" => integer 1506712
        "stop_time" => float 1487736851.2458
        "stop_memory" => integer 1507312
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2459
        "start_memory" => integer 1510816
        "stop_time" => float 1487736851.246
        "stop_memory" => integer 1511416
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2463
        "start_memory" => integer 1550736
        "stop_time" => float 1487736851.2463
        "stop_memory" => integer 1551264
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2463
        "start_memory" => integer 1551904
        "stop_time" => float 1487736851.2464
        "stop_memory" => integer 1552480
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.249
        "start_memory" => integer 1951664
        "stop_time" => float 1487736851.2491
        "stop_memory" => integer 1952248
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2492
        "start_memory" => integer 1955752
        "stop_time" => float 1487736851.2492
        "stop_memory" => integer 1956352
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2493
        "start_memory" => integer 1957984
        "stop_time" => float 1487736851.2493
        "stop_memory" => integer 1958584
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2494
        "start_memory" => integer 1962096
        "stop_time" => float 1487736851.2495
        "stop_memory" => integer 1962672
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2497
        "start_memory" => integer 1992320
        "stop_time" => float 1487736851.2498
        "stop_memory" => integer 1992880
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2498
        "start_memory" => integer 1996384
        "stop_time" => float 1487736851.2499
        "stop_memory" => integer 1996984
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2504
        "start_memory" => integer 2059016
        "stop_time" => float 1487736851.2504
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2505
        "start_memory" => integer 2063000
        "stop_time" => float 1487736851.2505
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.2515
        "start_memory" => integer 2122784
        "stop_time" => float 1487736851.2515
        "stop_memory" => integer 2123400
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3209
        "start_memory" => integer 2164312
        "stop_time" => float 1487736851.321
        "stop_memory" => integer 2164888
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3211
        "start_memory" => integer 2168312
        "stop_time" => float 1487736851.3211
        "stop_memory" => integer 2169152
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3217
        "start_memory" => integer 2195400
        "stop_time" => float 1487736851.3218
        "stop_memory" => integer 2195976
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3218
        "start_memory" => integer 2199456
        "stop_time" => float 1487736851.3219
        "stop_memory" => integer 2200048
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3225
        "start_memory" => integer 2217344
        "stop_time" => float 1487736851.3225
        "stop_memory" => integer 2217912
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3226
        "start_memory" => integer 2221376
        "stop_time" => float 1487736851.3227
        "stop_memory" => integer 2221968
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3233
        "start_memory" => integer 2265424
        "stop_time" => float 1487736851.3234
        "stop_memory" => integer 2266024
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3235
        "start_memory" => integer 2277560
        "stop_time" => float 1487736851.3235
        "stop_memory" => integer 2278136
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3236
        "start_memory" => integer 2281648
        "stop_time" => float 1487736851.3236
        "stop_memory" => integer 2282232
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3241
        "start_memory" => integer 2320248
        "stop_time" => float 1487736851.3241
        "stop_memory" => integer 2320848
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3243
        "start_memory" => integer 2332968
        "stop_time" => float 1487736851.3244
        "stop_memory" => integer 2333544
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3249
        "start_memory" => integer 2360560
        "stop_time" => float 1487736851.325
        "stop_memory" => integer 2361160
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3253
        "start_memory" => integer 2368976
        "stop_time" => float 1487736851.3253
        "stop_memory" => integer 2369552
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3256
        "start_memory" => integer 2382704
        "stop_time" => float 1487736851.3257
        "stop_memory" => integer 2383304
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.326
        "start_memory" => integer 2390320
        "stop_time" => float 1487736851.326
        "stop_memory" => integer 2390912
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3264
        "start_memory" => integer 2404216
        "stop_time" => float 1487736851.3264
        "stop_memory" => integer 2404808
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3267
        "start_memory" => integer 2418440
        "stop_time" => float 1487736851.3268
        "stop_memory" => integer 2419032
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3271
        "start_memory" => integer 2428512
        "stop_time" => float 1487736851.3271
        "stop_memory" => integer 2429104
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3274
        "start_memory" => integer 2437776
        "stop_time" => float 1487736851.3275
        "stop_memory" => integer 2438368
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3278
        "start_memory" => integer 2483720
        "stop_time" => float 1487736851.3279
        "stop_memory" => integer 2484296
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3284
        "start_memory" => integer 2507224
        "stop_time" => float 1487736851.3284
        "stop_memory" => integer 2507824
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3287
        "start_memory" => integer 2521120
        "stop_time" => float 1487736851.3288
        "stop_memory" => integer 2521696
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3291
        "start_memory" => integer 2540896
        "stop_time" => float 1487736851.3291
        "stop_memory" => integer 2541480
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3293
        "start_memory" => integer 2555136
        "stop_time" => float 1487736851.3294
        "stop_memory" => integer 2555704
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3294
        "start_memory" => integer 2559160
        "stop_time" => float 1487736851.3295
        "stop_memory" => integer 2559744
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3296
        "start_memory" => integer 2581944
        "stop_time" => float 1487736851.3297
        "stop_memory" => integer 2582504
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3298
        "start_memory" => integer 2585936
        "stop_time" => float 1487736851.3298
        "stop_memory" => integer 2586520
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3318
        "start_memory" => integer 2680448
        "stop_time" => float 1487736851.3319
        "stop_memory" => integer 2681024
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3373
        "start_memory" => integer 2711600
        "stop_time" => float 1487736851.3373
        "stop_memory" => integer 2712176
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3374
        "start_memory" => integer 2715680
        "stop_time" => float 1487736851.3374
        "stop_memory" => integer 2716272
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3404
        "start_memory" => integer 2735392
        "stop_time" => float 1487736851.3405
        "stop_memory" => integer 2735976
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3406
        "start_memory" => integer 2739504
        "stop_time" => float 1487736851.3406
        "stop_memory" => integer 2740104
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3437
        "start_memory" => integer 2759312
        "stop_time" => float 1487736851.3438
        "stop_memory" => integer 2759872
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3439
        "start_memory" => integer 2763352
        "stop_time" => float 1487736851.3439
        "stop_memory" => integer 2764456
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3443
        "start_memory" => integer 2819008
        "stop_time" => float 1487736851.3444
        "stop_memory" => integer 2819608
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3477
        "start_memory" => integer 2826904
        "stop_time" => float 1487736851.3477
        "stop_memory" => integer 2827480
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3478
        "start_memory" => integer 2831008
        "stop_time" => float 1487736851.3478
        "stop_memory" => integer 2831608
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3581
        "start_memory" => integer 2871296
        "stop_time" => float 1487736851.3581
        "stop_memory" => integer 2871872
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3582
        "start_memory" => integer 2875400
        "stop_time" => float 1487736851.3582
        "stop_memory" => integer 2876000
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3584
        "start_memory" => integer 2891968
        "stop_time" => float 1487736851.3585
        "stop_memory" => integer 2892544
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3589
        "start_memory" => integer 2899864
        "stop_time" => float 1487736851.3589
        "stop_memory" => integer 2900432
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.359
        "start_memory" => integer 2903904
        "stop_time" => float 1487736851.359
        "stop_memory" => integer 2904496
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3598
        "start_memory" => integer 2953920
        "stop_time" => float 1487736851.3598
        "stop_memory" => integer 2954504
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3599
        "start_memory" => integer 2958008
        "stop_time" => float 1487736851.3599
        "stop_memory" => integer 2958608
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3636
        "start_memory" => integer 2978008
        "stop_time" => float 1487736851.3636
        "stop_memory" => integer 2978568
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3637
        "start_memory" => integer 2982040
        "stop_time" => float 1487736851.3637
        "stop_memory" => integer 2982632
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3643
        "start_memory" => integer 2997800
        "stop_time" => float 1487736851.3643
        "stop_memory" => integer 2998336
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3644
        "start_memory" => integer 3001744
        "stop_time" => float 1487736851.3645
        "stop_memory" => integer 3002320
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3656
        "start_memory" => integer 3009000
        "stop_time" => float 1487736851.3656
        "stop_memory" => integer 3009600
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3657
        "start_memory" => integer 3013112
        "stop_time" => float 1487736851.3658
        "stop_memory" => integer 3013712
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3683
        "start_memory" => integer 3048760
        "stop_time" => float 1487736851.3683
        "stop_memory" => integer 3049352
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3687
        "start_memory" => integer 3057048
        "stop_time" => float 1487736851.3688
        "stop_memory" => integer 3057608
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3689
        "start_memory" => integer 3061096
        "stop_time" => float 1487736851.3689
        "stop_memory" => integer 3061688
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3714
        "start_memory" => integer 3079328
        "stop_time" => float 1487736851.3714
        "stop_memory" => integer 3079912
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3728
        "start_memory" => integer 3084512
        "stop_time" => float 1487736851.3728
        "stop_memory" => integer 3085080
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3729
        "start_memory" => integer 3088544
        "stop_time" => float 1487736851.373
        "stop_memory" => integer 3089136
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3747
        "start_memory" => integer 3183192
        "stop_time" => float 1487736851.3748
        "stop_memory" => integer 3183792
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3748
        "start_memory" => integer 3187344
        "stop_time" => float 1487736851.3749
        "stop_memory" => integer 3187936
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3752
        "start_memory" => integer 3201512
        "stop_time" => float 1487736851.3753
        "stop_memory" => integer 3202104
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3754
        "start_memory" => integer 3205656
        "stop_time" => float 1487736851.3754
        "stop_memory" => integer 3206264
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3765
        "start_memory" => integer 3211296
        "stop_time" => float 1487736851.3765
        "stop_memory" => integer 3211864
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3766
        "start_memory" => integer 3215368
        "stop_time" => float 1487736851.3766
        "stop_memory" => integer 3215968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3776
        "start_memory" => integer 3310768
        "stop_time" => float 1487736851.3776
        "stop_memory" => integer 3311360
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3777
        "start_memory" => integer 3314912
        "stop_time" => float 1487736851.3777
        "stop_memory" => integer 3315520
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3779
        "start_memory" => integer 3327560
        "stop_time" => float 1487736851.3779
        "stop_memory" => integer 3328128
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.378
        "start_memory" => integer 3331632
        "stop_time" => float 1487736851.378
        "stop_memory" => integer 3332256
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3788
        "start_memory" => integer 3375896
        "stop_time" => float 1487736851.3788
        "stop_memory" => integer 3376472
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3789
        "start_memory" => integer 3379992
        "stop_time" => float 1487736851.3789
        "stop_memory" => integer 3380592
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3795
        "start_memory" => integer 3425224
        "stop_time" => float 1487736851.3795
        "stop_memory" => integer 3425800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3797
        "start_memory" => integer 3429304
        "stop_time" => float 1487736851.3797
        "stop_memory" => integer 3429904
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3805
        "start_memory" => integer 3457216
        "stop_time" => float 1487736851.3805
        "stop_memory" => integer 3457808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3806
        "start_memory" => integer 3461368
        "stop_time" => float 1487736851.3806
        "stop_memory" => integer 3461976
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3813
        "start_memory" => integer 3498192
        "stop_time" => float 1487736851.3814
        "stop_memory" => integer 3498792
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3815
        "start_memory" => integer 3502424
        "stop_time" => float 1487736851.3815
        "stop_memory" => integer 3503040
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3816
        "start_memory" => integer 3515184
        "stop_time" => float 1487736851.3817
        "stop_memory" => integer 3515776
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3818
        "start_memory" => integer 3519400
        "stop_time" => float 1487736851.3818
        "stop_memory" => integer 3520016
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3825
        "start_memory" => integer 3572136
        "stop_time" => float 1487736851.3825
        "stop_memory" => integer 3572728
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3826
        "start_memory" => integer 3576336
        "stop_time" => float 1487736851.3826
        "stop_memory" => integer 3576952
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3834
        "start_memory" => integer 3609544
        "stop_time" => float 1487736851.3834
        "stop_memory" => integer 3610136
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3835
        "start_memory" => integer 3613760
        "stop_time" => float 1487736851.3835
        "stop_memory" => integer 3614376
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3843
        "start_memory" => integer 3643000
        "stop_time" => float 1487736851.3844
        "stop_memory" => integer 3643592
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3844
        "start_memory" => integer 3647200
        "stop_time" => float 1487736851.3845
        "stop_memory" => integer 3647816
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3854
        "start_memory" => integer 3723736
        "stop_time" => float 1487736851.3855
        "stop_memory" => integer 3724328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3855
        "start_memory" => integer 3727936
        "stop_time" => float 1487736851.3856
        "stop_memory" => integer 3728552
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3871
        "start_memory" => integer 3765072
        "stop_time" => float 1487736851.3872
        "stop_memory" => integer 3765648
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3872
        "start_memory" => integer 3769208
        "stop_time" => float 1487736851.3873
        "stop_memory" => integer 3769816
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3879
        "start_memory" => integer 3788144
        "stop_time" => float 1487736851.388
        "stop_memory" => integer 3788680
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.388
        "start_memory" => integer 3792128
        "stop_time" => float 1487736851.3881
        "stop_memory" => integer 3792696
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3889
        "start_memory" => integer 3862280
        "stop_time" => float 1487736851.389
        "stop_memory" => integer 3862864
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3891
        "start_memory" => integer 3866320
        "stop_time" => float 1487736851.3891
        "stop_memory" => integer 3866896
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3923
        "start_memory" => integer 3881096
        "stop_time" => float 1487736851.3923
        "stop_memory" => integer 3881656
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3924
        "start_memory" => integer 3885088
        "stop_time" => float 1487736851.3925
        "stop_memory" => integer 3885672
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3944
        "start_memory" => integer 3907512
        "stop_time" => float 1487736851.3945
        "stop_memory" => integer 3908072
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3946
        "start_memory" => integer 3911496
        "stop_time" => float 1487736851.3946
        "stop_memory" => integer 3912064
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3952
        "start_memory" => integer 3935208
        "stop_time" => float 1487736851.3952
        "stop_memory" => integer 3935776
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3953
        "start_memory" => integer 3939208
        "stop_time" => float 1487736851.3953
        "stop_memory" => integer 3939776
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3959
        "start_memory" => integer 3965728
        "stop_time" => float 1487736851.3959
        "stop_memory" => integer 3966296
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.396
        "start_memory" => integer 3969720
        "stop_time" => float 1487736851.3961
        "stop_memory" => integer 3971312
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.397
        "start_memory" => integer 4018432
        "stop_time" => float 1487736851.3971
        "stop_memory" => integer 4019000
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3971
        "start_memory" => integer 4022440
        "stop_time" => float 1487736851.3972
        "stop_memory" => integer 4023024
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3987
        "start_memory" => integer 4037568
        "stop_time" => float 1487736851.3987
        "stop_memory" => integer 4038128
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3988
        "start_memory" => integer 4041576
        "stop_time" => float 1487736851.3989
        "stop_memory" => integer 4042144
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.3998
        "start_memory" => integer 4058776
        "stop_time" => float 1487736851.3999
        "stop_memory" => integer 4059360
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4
        "start_memory" => integer 4062840
        "stop_time" => float 1487736851.4
        "stop_memory" => integer 4063432
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4005
        "start_memory" => integer 4079896
        "stop_time" => float 1487736851.4006
        "stop_memory" => integer 4080464
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4007
        "start_memory" => integer 4083968
        "stop_time" => float 1487736851.4007
        "stop_memory" => integer 4084560
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4012
        "start_memory" => integer 4098144
        "stop_time" => float 1487736851.4012
        "stop_memory" => integer 4098712
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4013
        "start_memory" => integer 4102216
        "stop_time" => float 1487736851.4014
        "stop_memory" => integer 4102808
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4018
        "start_memory" => integer 4116408
        "stop_time" => float 1487736851.4019
        "stop_memory" => integer 4116976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4019
        "start_memory" => integer 4120480
        "stop_time" => float 1487736851.402
        "stop_memory" => integer 4121072
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4025
        "start_memory" => integer 4134672
        "stop_time" => float 1487736851.4025
        "stop_memory" => integer 4135240
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4026
        "start_memory" => integer 4138744
        "stop_time" => float 1487736851.4026
        "stop_memory" => integer 4139336
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4031
        "start_memory" => integer 4152920
        "stop_time" => float 1487736851.4031
        "stop_memory" => integer 4153488
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4032
        "start_memory" => integer 4156992
        "stop_time" => float 1487736851.4033
        "stop_memory" => integer 4157584
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4037
        "start_memory" => integer 4171168
        "stop_time" => float 1487736851.4038
        "stop_memory" => integer 4171736
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4038
        "start_memory" => integer 4175240
        "stop_time" => float 1487736851.4039
        "stop_memory" => integer 4175832
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4044
        "start_memory" => integer 4189432
        "stop_time" => float 1487736851.4044
        "stop_memory" => integer 4190000
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4045
        "start_memory" => integer 4193504
        "stop_time" => float 1487736851.4045
        "stop_memory" => integer 4194096
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.405
        "start_memory" => integer 4207680
        "stop_time" => float 1487736851.405
        "stop_memory" => integer 4208248
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4051
        "start_memory" => integer 4211752
        "stop_time" => float 1487736851.4052
        "stop_memory" => integer 4212344
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4056
        "start_memory" => integer 4226024
        "stop_time" => float 1487736851.4057
        "stop_memory" => integer 4226592
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4057
        "start_memory" => integer 4230096
        "stop_time" => float 1487736851.4058
        "stop_memory" => integer 4230688
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4063
        "start_memory" => integer 4244272
        "stop_time" => float 1487736851.4063
        "stop_memory" => integer 4244840
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4064
        "start_memory" => integer 4248344
        "stop_time" => float 1487736851.4064
        "stop_memory" => integer 4248936
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4069
        "start_memory" => integer 4262520
        "stop_time" => float 1487736851.4069
        "stop_memory" => integer 4263088
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.407
        "start_memory" => integer 4266592
        "stop_time" => float 1487736851.4071
        "stop_memory" => integer 4267184
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4075
        "start_memory" => integer 4280752
        "stop_time" => float 1487736851.4076
        "stop_memory" => integer 4281320
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4076
        "start_memory" => integer 4284824
        "stop_time" => float 1487736851.4077
        "stop_memory" => integer 4285416
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4082
        "start_memory" => integer 4299000
        "stop_time" => float 1487736851.4082
        "stop_memory" => integer 4299568
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4083
        "start_memory" => integer 4303072
        "stop_time" => float 1487736851.4083
        "stop_memory" => integer 4303664
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4088
        "start_memory" => integer 4317264
        "stop_time" => float 1487736851.4088
        "stop_memory" => integer 4317832
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4089
        "start_memory" => integer 4321336
        "stop_time" => float 1487736851.409
        "stop_memory" => integer 4321928
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4094
        "start_memory" => integer 4335544
        "stop_time" => float 1487736851.4095
        "stop_memory" => integer 4336112
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4095
        "start_memory" => integer 4339616
        "stop_time" => float 1487736851.4096
        "stop_memory" => integer 4340208
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.41
        "start_memory" => integer 4353808
        "stop_time" => float 1487736851.4101
        "stop_memory" => integer 4354376
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4102
        "start_memory" => integer 4357880
        "stop_time" => float 1487736851.4102
        "stop_memory" => integer 4358472
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4107
        "start_memory" => integer 4372200
        "stop_time" => float 1487736851.4107
        "stop_memory" => integer 4372768
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4108
        "start_memory" => integer 4376272
        "stop_time" => float 1487736851.4109
        "stop_memory" => integer 4376864
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4113
        "start_memory" => integer 4390480
        "stop_time" => float 1487736851.4114
        "stop_memory" => integer 4391048
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4114
        "start_memory" => integer 4394552
        "stop_time" => float 1487736851.4115
        "stop_memory" => integer 4395144
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.412
        "start_memory" => integer 4408744
        "stop_time" => float 1487736851.412
        "stop_memory" => integer 4409312
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4121
        "start_memory" => integer 4412816
        "stop_time" => float 1487736851.4122
        "stop_memory" => integer 4413408
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4126
        "start_memory" => integer 4427008
        "stop_time" => float 1487736851.4127
        "stop_memory" => integer 4427576
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4128
        "start_memory" => integer 4431080
        "stop_time" => float 1487736851.4128
        "stop_memory" => integer 4431672
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4133
        "start_memory" => integer 4445256
        "stop_time" => float 1487736851.4133
        "stop_memory" => integer 4445824
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4134
        "start_memory" => integer 4449328
        "stop_time" => float 1487736851.4134
        "stop_memory" => integer 4449920
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4139
        "start_memory" => integer 4463504
        "stop_time" => float 1487736851.4139
        "stop_memory" => integer 4464072
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.414
        "start_memory" => integer 4467576
        "stop_time" => float 1487736851.4141
        "stop_memory" => integer 4468168
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4145
        "start_memory" => integer 4481768
        "stop_time" => float 1487736851.4146
        "stop_memory" => integer 4482336
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4146
        "start_memory" => integer 4485840
        "stop_time" => float 1487736851.4147
        "stop_memory" => integer 4486432
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4152
        "start_memory" => integer 4500016
        "stop_time" => float 1487736851.4152
        "stop_memory" => integer 4500584
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4153
        "start_memory" => integer 4504088
        "stop_time" => float 1487736851.4153
        "stop_memory" => integer 4504680
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4164
        "start_memory" => integer 4518504
        "stop_time" => float 1487736851.4165
        "stop_memory" => integer 4519072
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4165
        "start_memory" => integer 4522576
        "stop_time" => float 1487736851.4166
        "stop_memory" => integer 4523168
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4185
        "start_memory" => integer 4546096
        "stop_time" => float 1487736851.4186
        "stop_memory" => integer 4546664
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4186
        "start_memory" => integer 4550128
        "stop_time" => float 1487736851.4187
        "stop_memory" => integer 4550704
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4197
        "start_memory" => integer 4631888
        "stop_time" => float 1487736851.4197
        "stop_memory" => integer 4632464
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4198
        "start_memory" => integer 4635928
        "stop_time" => float 1487736851.4198
        "stop_memory" => integer 4636520
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.421
        "start_memory" => integer 4737640
        "stop_time" => float 1487736851.4211
        "stop_memory" => integer 4738192
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4211
        "start_memory" => integer 4741672
        "stop_time" => float 1487736851.4212
        "stop_memory" => integer 4742256
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4229
        "start_memory" => integer 4775224
        "stop_time" => float 1487736851.423
        "stop_memory" => integer 4775816
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4231
        "start_memory" => integer 4779336
        "stop_time" => float 1487736851.4231
        "stop_memory" => integer 4779936
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4236
        "start_memory" => integer 4805504
        "stop_time" => float 1487736851.4237
        "stop_memory" => integer 4806096
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4238
        "start_memory" => integer 4809672
        "stop_time" => float 1487736851.4238
        "stop_memory" => integer 4810280
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4248
        "start_memory" => integer 4828984
        "stop_time" => float 1487736851.4248
        "stop_memory" => integer 4829552
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4249
        "start_memory" => integer 4833080
        "stop_time" => float 1487736851.4249
        "stop_memory" => integer 4833680
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4263
        "start_memory" => integer 4852296
        "stop_time" => float 1487736851.4263
        "stop_memory" => integer 4852888
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4287
        "start_memory" => integer 4862632
        "stop_time" => float 1487736851.4288
        "stop_memory" => integer 4863208
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.429
        "start_memory" => integer 4871808
        "stop_time" => float 1487736851.4291
        "stop_memory" => integer 4872392
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4301
        "start_memory" => integer 4881768
        "stop_time" => float 1487736851.4301
        "stop_memory" => integer 4882320
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4302
        "start_memory" => integer 4885776
        "stop_time" => float 1487736851.4303
        "stop_memory" => integer 4886360
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4307
        "start_memory" => integer 4890400
        "stop_time" => float 1487736851.4307
        "stop_memory" => integer 4890960
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4308
        "start_memory" => integer 4894544
        "stop_time" => float 1487736851.4309
        "stop_memory" => integer 4895144
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4313
        "start_memory" => integer 4899040
        "stop_time" => float 1487736851.4313
        "stop_memory" => integer 4899600
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4314
        "start_memory" => integer 4903136
        "stop_time" => float 1487736851.4315
        "stop_memory" => integer 4903712
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4322
        "start_memory" => integer 4912704
        "stop_time" => float 1487736851.4323
        "stop_memory" => integer 4913296
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4324
        "start_memory" => integer 4916824
        "stop_time" => float 1487736851.4324
        "stop_memory" => integer 4917400
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4328
        "start_memory" => integer 4919536
        "stop_time" => float 1487736851.4329
        "stop_memory" => integer 4920168
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.433
        "start_memory" => integer 4926968
        "stop_time" => float 1487736851.433
        "stop_memory" => integer 4927520
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4331
        "start_memory" => integer 4930960
        "stop_time" => float 1487736851.4332
        "stop_memory" => integer 4931544
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4349
        "start_memory" => integer 5163080
        "stop_time" => float 1487736851.4349
        "stop_memory" => integer 5163672
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4355
        "start_memory" => integer 5220440
        "stop_time" => float 1487736851.4356
        "stop_memory" => integer 5221024
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.436
        "start_memory" => integer 5255448
        "stop_time" => float 1487736851.4361
        "stop_memory" => integer 5256032
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4361
        "start_memory" => integer 5259584
        "stop_time" => float 1487736851.4362
        "stop_memory" => integer 5260184
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4366
        "start_memory" => integer 5266192
        "stop_time" => float 1487736851.4366
        "stop_memory" => integer 5266752
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.437
        "start_memory" => integer 5292856
        "stop_time" => float 1487736851.437
        "stop_memory" => integer 5293432
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4374
        "start_memory" => integer 5322392
        "stop_time" => float 1487736851.4374
        "stop_memory" => integer 5322984
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4378
        "start_memory" => integer 5349696
        "stop_time" => float 1487736851.4379
        "stop_memory" => integer 5350232
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4379
        "start_memory" => integer 5353736
        "stop_time" => float 1487736851.438
        "stop_memory" => integer 5354336
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4396
        "start_memory" => integer 5381464
        "stop_time" => float 1487736851.4397
        "stop_memory" => integer 5382088
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4398
        "start_memory" => integer 5385888
        "stop_time" => float 1487736851.4398
        "stop_memory" => integer 5386512
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4417
        "start_memory" => integer 5418328
        "stop_time" => float 1487736851.4418
        "stop_memory" => integer 5418904
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4419
        "start_memory" => integer 5422488
        "stop_time" => float 1487736851.442
        "stop_memory" => integer 5423096
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4452
        "start_memory" => integer 5487816
        "stop_time" => float 1487736851.4452
        "stop_memory" => integer 5488368
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4453
        "start_memory" => integer 5491912
        "stop_time" => float 1487736851.4453
        "stop_memory" => integer 5492504
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4458
        "start_memory" => integer 5502624
        "stop_time" => float 1487736851.4458
        "stop_memory" => integer 5503176
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4459
        "start_memory" => integer 5506696
        "stop_time" => float 1487736851.446
        "stop_memory" => integer 5507296
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4466
        "start_memory" => integer 5551832
        "stop_time" => float 1487736851.4466
        "stop_memory" => integer 5552464
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4467
        "start_memory" => integer 5555968
        "stop_time" => float 1487736851.4468
        "stop_memory" => integer 5556536
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4472
        "start_memory" => integer 5576912
        "stop_time" => float 1487736851.4472
        "stop_memory" => integer 5577528
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4473
        "start_memory" => integer 5581048
        "stop_time" => float 1487736851.4473
        "stop_memory" => integer 5581648
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4483
        "start_memory" => integer 5630336
        "stop_time" => float 1487736851.4483
        "stop_memory" => integer 5630896
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4484
        "start_memory" => integer 5634464
        "stop_time" => float 1487736851.4485
        "stop_memory" => integer 5635056
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4489
        "start_memory" => integer 5657352
        "stop_time" => float 1487736851.449
        "stop_memory" => integer 5657928
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.449
        "start_memory" => integer 5661424
        "stop_time" => float 1487736851.4491
        "stop_memory" => integer 5661984
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.45
        "start_memory" => integer 5734584
        "stop_time" => float 1487736851.45
        "stop_memory" => integer 5735160
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4501
        "start_memory" => integer 5738608
        "stop_time" => float 1487736851.4502
        "stop_memory" => integer 5739192
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.454
        "start_memory" => integer 5758368
        "stop_time" => float 1487736851.454
        "stop_memory" => integer 5758928
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4541
        "start_memory" => integer 5762424
        "stop_time" => float 1487736851.4541
        "stop_memory" => integer 5763064
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4549
        "start_memory" => integer 5822560
        "stop_time" => float 1487736851.4549
        "stop_memory" => integer 5823128
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.455
        "start_memory" => integer 5826640
        "stop_time" => float 1487736851.455
        "stop_memory" => integer 5827240
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4558
        "start_memory" => integer 5896424
        "stop_time" => float 1487736851.4559
        "stop_memory" => integer 5897064
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.456
        "start_memory" => integer 5900608
        "stop_time" => float 1487736851.456
        "stop_memory" => integer 5901192
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4567
        "start_memory" => integer 5919240
        "stop_time" => float 1487736851.4568
        "stop_memory" => integer 5919848
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.457
        "start_memory" => integer 5885760
        "stop_time" => float 1487736851.4571
        "stop_memory" => integer 5888080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4576
        "start_memory" => integer 5924272
        "stop_time" => float 1487736851.4576
        "stop_memory" => integer 5925936
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487736851.4576
        "start_memory" => integer 5925568
        "stop_time" => float 1487736851.4577
        "stop_memory" => integer 5927232
    )
)

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