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 1481046773.9404
        "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 1481046773.9404
        "start_memory" => integer 1118688
        "stop_time" => float 1481046773.9405
        "stop_memory" => integer 1119376
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9405
        "start_memory" => integer 1122920
        "stop_time" => float 1481046773.9406
        "stop_memory" => integer 1123528
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9411
        "start_memory" => integer 1200000
        "stop_time" => float 1481046773.9412
        "stop_memory" => integer 1200552
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9413
        "start_memory" => integer 1204056
        "stop_time" => float 1481046773.9413
        "stop_memory" => integer 1204648
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9414
        "start_memory" => integer 1212608
        "stop_time" => float 1481046773.9415
        "stop_memory" => integer 1213160
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9415
        "start_memory" => integer 1216624
        "stop_time" => float 1481046773.9416
        "stop_memory" => integer 1217232
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9417
        "start_memory" => integer 1226064
        "stop_time" => float 1481046773.9417
        "stop_memory" => integer 1226624
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9418
        "start_memory" => integer 1230064
        "stop_time" => float 1481046773.9419
        "stop_memory" => integer 1230712
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9426
        "start_memory" => integer 1325600
        "stop_time" => float 1481046773.9426
        "stop_memory" => integer 1326176
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9427
        "start_memory" => integer 1329656
        "stop_time" => float 1481046773.9427
        "stop_memory" => integer 1330248
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9428
        "start_memory" => integer 1342032
        "stop_time" => float 1481046773.9429
        "stop_memory" => integer 1342584
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.943
        "start_memory" => integer 1346008
        "stop_time" => float 1481046773.943
        "stop_memory" => integer 1346576
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9433
        "start_memory" => integer 1380968
        "stop_time" => float 1481046773.9433
        "stop_memory" => integer 1381568
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9433
        "start_memory" => integer 1382640
        "stop_time" => float 1481046773.9434
        "stop_memory" => integer 1383176
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9434
        "start_memory" => integer 1386584
        "stop_time" => float 1481046773.9435
        "stop_memory" => integer 1387160
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9437
        "start_memory" => integer 1406408
        "stop_time" => float 1481046773.9438
        "stop_memory" => integer 1407112
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9438
        "start_memory" => integer 1410536
        "stop_time" => float 1481046773.9439
        "stop_memory" => integer 1411104
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9444
        "start_memory" => integer 1506712
        "stop_time" => float 1481046773.9445
        "stop_memory" => integer 1507312
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9446
        "start_memory" => integer 1510816
        "stop_time" => float 1481046773.9446
        "stop_memory" => integer 1511416
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9449
        "start_memory" => integer 1550736
        "stop_time" => float 1481046773.945
        "stop_memory" => integer 1551264
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.945
        "start_memory" => integer 1551904
        "stop_time" => float 1481046773.945
        "stop_memory" => integer 1552480
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.949
        "start_memory" => integer 1951664
        "stop_time" => float 1481046773.9491
        "stop_memory" => integer 1952248
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9492
        "start_memory" => integer 1955752
        "stop_time" => float 1481046773.9493
        "stop_memory" => integer 1956352
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9494
        "start_memory" => integer 1957984
        "stop_time" => float 1481046773.9495
        "stop_memory" => integer 1958584
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9496
        "start_memory" => integer 1962096
        "stop_time" => float 1481046773.9497
        "stop_memory" => integer 1962672
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9502
        "start_memory" => integer 1992320
        "stop_time" => float 1481046773.9503
        "stop_memory" => integer 1992880
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9504
        "start_memory" => integer 1996384
        "stop_time" => float 1481046773.9505
        "stop_memory" => integer 1996984
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9513
        "start_memory" => integer 2059016
        "stop_time" => float 1481046773.9514
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9515
        "start_memory" => integer 2063000
        "stop_time" => float 1481046773.9515
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046773.9525
        "start_memory" => integer 2122784
        "stop_time" => float 1481046773.9526
        "stop_memory" => integer 2123400
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0355
        "start_memory" => integer 2164312
        "stop_time" => float 1481046774.0355
        "stop_memory" => integer 2164888
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0357
        "start_memory" => integer 2168312
        "stop_time" => float 1481046774.0357
        "stop_memory" => integer 2169152
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0364
        "start_memory" => integer 2195400
        "stop_time" => float 1481046774.0364
        "stop_memory" => integer 2195976
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0365
        "start_memory" => integer 2199456
        "stop_time" => float 1481046774.0365
        "stop_memory" => integer 2200048
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.037
        "start_memory" => integer 2217344
        "stop_time" => float 1481046774.037
        "stop_memory" => integer 2217912
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0371
        "start_memory" => integer 2221376
        "stop_time" => float 1481046774.0372
        "stop_memory" => integer 2221968
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0378
        "start_memory" => integer 2265424
        "stop_time" => float 1481046774.0378
        "stop_memory" => integer 2266024
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0379
        "start_memory" => integer 2277560
        "stop_time" => float 1481046774.0379
        "stop_memory" => integer 2278136
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.038
        "start_memory" => integer 2281648
        "stop_time" => float 1481046774.038
        "stop_memory" => integer 2282232
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0384
        "start_memory" => integer 2320248
        "stop_time" => float 1481046774.0385
        "stop_memory" => integer 2320848
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0387
        "start_memory" => integer 2332968
        "stop_time" => float 1481046774.0387
        "stop_memory" => integer 2333544
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0391
        "start_memory" => integer 2360560
        "stop_time" => float 1481046774.0392
        "stop_memory" => integer 2361160
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0394
        "start_memory" => integer 2368976
        "stop_time" => float 1481046774.0394
        "stop_memory" => integer 2369552
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0396
        "start_memory" => integer 2382704
        "stop_time" => float 1481046774.0396
        "stop_memory" => integer 2383304
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0398
        "start_memory" => integer 2390320
        "stop_time" => float 1481046774.0398
        "stop_memory" => integer 2390912
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.04
        "start_memory" => integer 2404216
        "stop_time" => float 1481046774.0401
        "stop_memory" => integer 2404808
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0403
        "start_memory" => integer 2418440
        "stop_time" => float 1481046774.0403
        "stop_memory" => integer 2419032
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0405
        "start_memory" => integer 2428512
        "stop_time" => float 1481046774.0405
        "stop_memory" => integer 2429104
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0407
        "start_memory" => integer 2437776
        "stop_time" => float 1481046774.0407
        "stop_memory" => integer 2438368
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.041
        "start_memory" => integer 2483720
        "stop_time" => float 1481046774.041
        "stop_memory" => integer 2484296
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0413
        "start_memory" => integer 2507224
        "stop_time" => float 1481046774.0413
        "stop_memory" => integer 2507824
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0415
        "start_memory" => integer 2521120
        "stop_time" => float 1481046774.0415
        "stop_memory" => integer 2521696
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0418
        "start_memory" => integer 2540896
        "stop_time" => float 1481046774.0418
        "stop_memory" => integer 2541480
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.042
        "start_memory" => integer 2555136
        "stop_time" => float 1481046774.042
        "stop_memory" => integer 2555704
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0421
        "start_memory" => integer 2559160
        "stop_time" => float 1481046774.0421
        "stop_memory" => integer 2559744
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0424
        "start_memory" => integer 2581944
        "stop_time" => float 1481046774.0424
        "stop_memory" => integer 2582504
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0425
        "start_memory" => integer 2585936
        "stop_time" => float 1481046774.0425
        "stop_memory" => integer 2586520
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0445
        "start_memory" => integer 2680448
        "stop_time" => float 1481046774.0445
        "stop_memory" => integer 2681024
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0551
        "start_memory" => integer 2711600
        "stop_time" => float 1481046774.0552
        "stop_memory" => integer 2712176
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0553
        "start_memory" => integer 2715680
        "stop_time" => float 1481046774.0554
        "stop_memory" => integer 2716272
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0593
        "start_memory" => integer 2735392
        "stop_time" => float 1481046774.0593
        "stop_memory" => integer 2735976
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0594
        "start_memory" => integer 2739504
        "stop_time" => float 1481046774.0594
        "stop_memory" => integer 2740104
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0633
        "start_memory" => integer 2759312
        "stop_time" => float 1481046774.0634
        "stop_memory" => integer 2759872
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0635
        "start_memory" => integer 2763352
        "stop_time" => float 1481046774.0635
        "stop_memory" => integer 2764456
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0641
        "start_memory" => integer 2819008
        "stop_time" => float 1481046774.0642
        "stop_memory" => integer 2819608
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0684
        "start_memory" => integer 2826904
        "stop_time" => float 1481046774.0684
        "stop_memory" => integer 2827480
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0685
        "start_memory" => integer 2831008
        "stop_time" => float 1481046774.0685
        "stop_memory" => integer 2831608
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0807
        "start_memory" => integer 2871296
        "stop_time" => float 1481046774.0807
        "stop_memory" => integer 2871872
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0808
        "start_memory" => integer 2875400
        "stop_time" => float 1481046774.0809
        "stop_memory" => integer 2876000
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0811
        "start_memory" => integer 2891968
        "stop_time" => float 1481046774.0811
        "stop_memory" => integer 2892544
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0817
        "start_memory" => integer 2899864
        "stop_time" => float 1481046774.0817
        "stop_memory" => integer 2900432
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0818
        "start_memory" => integer 2903904
        "stop_time" => float 1481046774.0818
        "stop_memory" => integer 2904496
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.083
        "start_memory" => integer 2953920
        "stop_time" => float 1481046774.083
        "stop_memory" => integer 2954504
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0831
        "start_memory" => integer 2958008
        "stop_time" => float 1481046774.0831
        "stop_memory" => integer 2958608
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0878
        "start_memory" => integer 2978008
        "stop_time" => float 1481046774.0878
        "stop_memory" => integer 2978568
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0879
        "start_memory" => integer 2982040
        "stop_time" => float 1481046774.0879
        "stop_memory" => integer 2982632
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0887
        "start_memory" => integer 2997800
        "stop_time" => float 1481046774.0888
        "stop_memory" => integer 2998336
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0888
        "start_memory" => integer 3001744
        "stop_time" => float 1481046774.0889
        "stop_memory" => integer 3002320
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0902
        "start_memory" => integer 3009000
        "stop_time" => float 1481046774.0903
        "stop_memory" => integer 3009600
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0904
        "start_memory" => integer 3013112
        "stop_time" => float 1481046774.0904
        "stop_memory" => integer 3013712
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0936
        "start_memory" => integer 3048760
        "stop_time" => float 1481046774.0936
        "stop_memory" => integer 3049352
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0941
        "start_memory" => integer 3057048
        "stop_time" => float 1481046774.0942
        "stop_memory" => integer 3057608
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0943
        "start_memory" => integer 3061096
        "stop_time" => float 1481046774.0944
        "stop_memory" => integer 3061688
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0973
        "start_memory" => integer 3079328
        "stop_time" => float 1481046774.0973
        "stop_memory" => integer 3079912
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0989
        "start_memory" => integer 3084512
        "stop_time" => float 1481046774.099
        "stop_memory" => integer 3085080
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.0991
        "start_memory" => integer 3088544
        "stop_time" => float 1481046774.0991
        "stop_memory" => integer 3089136
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1011
        "start_memory" => integer 3183192
        "stop_time" => float 1481046774.1012
        "stop_memory" => integer 3183792
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1013
        "start_memory" => integer 3187344
        "stop_time" => float 1481046774.1014
        "stop_memory" => integer 3187936
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1018
        "start_memory" => integer 3201512
        "stop_time" => float 1481046774.1018
        "stop_memory" => integer 3202104
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1019
        "start_memory" => integer 3205656
        "stop_time" => float 1481046774.1019
        "stop_memory" => integer 3206264
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1032
        "start_memory" => integer 3211296
        "stop_time" => float 1481046774.1033
        "stop_memory" => integer 3211864
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1033
        "start_memory" => integer 3215368
        "stop_time" => float 1481046774.1034
        "stop_memory" => integer 3215968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1046
        "start_memory" => integer 3310768
        "stop_time" => float 1481046774.1046
        "stop_memory" => integer 3311360
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1047
        "start_memory" => integer 3314912
        "stop_time" => float 1481046774.1047
        "stop_memory" => integer 3315520
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1049
        "start_memory" => integer 3327560
        "stop_time" => float 1481046774.105
        "stop_memory" => integer 3328128
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1051
        "start_memory" => integer 3331632
        "stop_time" => float 1481046774.1051
        "stop_memory" => integer 3332256
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.106
        "start_memory" => integer 3375896
        "stop_time" => float 1481046774.106
        "stop_memory" => integer 3376472
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1061
        "start_memory" => integer 3379992
        "stop_time" => float 1481046774.1061
        "stop_memory" => integer 3380592
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1068
        "start_memory" => integer 3425224
        "stop_time" => float 1481046774.1069
        "stop_memory" => integer 3425800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.107
        "start_memory" => integer 3429304
        "stop_time" => float 1481046774.107
        "stop_memory" => integer 3429904
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1078
        "start_memory" => integer 3457216
        "stop_time" => float 1481046774.1079
        "stop_memory" => integer 3457808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.108
        "start_memory" => integer 3461368
        "stop_time" => float 1481046774.108
        "stop_memory" => integer 3461976
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.109
        "start_memory" => integer 3498192
        "stop_time" => float 1481046774.109
        "stop_memory" => integer 3498792
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1091
        "start_memory" => integer 3502424
        "stop_time" => float 1481046774.1091
        "stop_memory" => integer 3503040
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1093
        "start_memory" => integer 3515184
        "stop_time" => float 1481046774.1094
        "stop_memory" => integer 3515776
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1095
        "start_memory" => integer 3519400
        "stop_time" => float 1481046774.1095
        "stop_memory" => integer 3520016
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1103
        "start_memory" => integer 3572136
        "stop_time" => float 1481046774.1104
        "stop_memory" => integer 3572728
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1105
        "start_memory" => integer 3576336
        "stop_time" => float 1481046774.1105
        "stop_memory" => integer 3576952
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1114
        "start_memory" => integer 3609544
        "stop_time" => float 1481046774.1114
        "stop_memory" => integer 3610136
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1115
        "start_memory" => integer 3613760
        "stop_time" => float 1481046774.1116
        "stop_memory" => integer 3614376
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1125
        "start_memory" => integer 3643000
        "stop_time" => float 1481046774.1125
        "stop_memory" => integer 3643592
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1126
        "start_memory" => integer 3647200
        "stop_time" => float 1481046774.1126
        "stop_memory" => integer 3647816
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1138
        "start_memory" => integer 3723736
        "stop_time" => float 1481046774.1139
        "stop_memory" => integer 3724328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.114
        "start_memory" => integer 3727936
        "stop_time" => float 1481046774.114
        "stop_memory" => integer 3728552
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1163
        "start_memory" => integer 3765072
        "stop_time" => float 1481046774.1164
        "stop_memory" => integer 3765648
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1165
        "start_memory" => integer 3769208
        "stop_time" => float 1481046774.1165
        "stop_memory" => integer 3769816
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1175
        "start_memory" => integer 3788144
        "stop_time" => float 1481046774.1176
        "stop_memory" => integer 3788680
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1177
        "start_memory" => integer 3792128
        "stop_time" => float 1481046774.1177
        "stop_memory" => integer 3792696
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1189
        "start_memory" => integer 3862280
        "stop_time" => float 1481046774.119
        "stop_memory" => integer 3862864
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.119
        "start_memory" => integer 3866320
        "stop_time" => float 1481046774.1191
        "stop_memory" => integer 3866896
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1235
        "start_memory" => integer 3881096
        "stop_time" => float 1481046774.1236
        "stop_memory" => integer 3881656
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1237
        "start_memory" => integer 3885088
        "stop_time" => float 1481046774.1238
        "stop_memory" => integer 3885672
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1264
        "start_memory" => integer 3907512
        "stop_time" => float 1481046774.1265
        "stop_memory" => integer 3908072
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1266
        "start_memory" => integer 3911496
        "stop_time" => float 1481046774.1267
        "stop_memory" => integer 3912064
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1275
        "start_memory" => integer 3935208
        "stop_time" => float 1481046774.1275
        "stop_memory" => integer 3935776
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1276
        "start_memory" => integer 3939208
        "stop_time" => float 1481046774.1277
        "stop_memory" => integer 3939776
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1285
        "start_memory" => integer 3965728
        "stop_time" => float 1481046774.1285
        "stop_memory" => integer 3966296
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1286
        "start_memory" => integer 3969720
        "stop_time" => float 1481046774.1287
        "stop_memory" => integer 3971312
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1299
        "start_memory" => integer 4018432
        "stop_time" => float 1481046774.13
        "stop_memory" => integer 4019000
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1301
        "start_memory" => integer 4022440
        "stop_time" => float 1481046774.1302
        "stop_memory" => integer 4023024
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1326
        "start_memory" => integer 4037568
        "stop_time" => float 1481046774.1327
        "stop_memory" => integer 4038128
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1328
        "start_memory" => integer 4041576
        "stop_time" => float 1481046774.1329
        "stop_memory" => integer 4042144
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1342
        "start_memory" => integer 4058776
        "stop_time" => float 1481046774.1343
        "stop_memory" => integer 4059360
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1344
        "start_memory" => integer 4062840
        "stop_time" => float 1481046774.1345
        "stop_memory" => integer 4063432
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1352
        "start_memory" => integer 4079896
        "stop_time" => float 1481046774.1353
        "stop_memory" => integer 4080464
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1354
        "start_memory" => integer 4083968
        "stop_time" => float 1481046774.1355
        "stop_memory" => integer 4084560
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1365
        "start_memory" => integer 4098144
        "stop_time" => float 1481046774.1368
        "stop_memory" => integer 4098712
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1369
        "start_memory" => integer 4102216
        "stop_time" => float 1481046774.137
        "stop_memory" => integer 4102808
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1378
        "start_memory" => integer 4116408
        "stop_time" => float 1481046774.1378
        "stop_memory" => integer 4116976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1381
        "start_memory" => integer 4120480
        "stop_time" => float 1481046774.1382
        "stop_memory" => integer 4121072
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.139
        "start_memory" => integer 4134672
        "stop_time" => float 1481046774.1391
        "stop_memory" => integer 4135240
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1392
        "start_memory" => integer 4138744
        "stop_time" => float 1481046774.1393
        "stop_memory" => integer 4139336
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.14
        "start_memory" => integer 4152920
        "stop_time" => float 1481046774.14
        "stop_memory" => integer 4153488
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1401
        "start_memory" => integer 4156992
        "stop_time" => float 1481046774.1402
        "stop_memory" => integer 4157584
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1408
        "start_memory" => integer 4171168
        "stop_time" => float 1481046774.1408
        "stop_memory" => integer 4171736
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1409
        "start_memory" => integer 4175240
        "stop_time" => float 1481046774.141
        "stop_memory" => integer 4175832
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1416
        "start_memory" => integer 4189432
        "stop_time" => float 1481046774.1416
        "stop_memory" => integer 4190000
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1417
        "start_memory" => integer 4193504
        "stop_time" => float 1481046774.1418
        "stop_memory" => integer 4194096
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1424
        "start_memory" => integer 4207680
        "stop_time" => float 1481046774.1424
        "stop_memory" => integer 4208248
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1425
        "start_memory" => integer 4211752
        "stop_time" => float 1481046774.1426
        "stop_memory" => integer 4212344
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1431
        "start_memory" => integer 4226024
        "stop_time" => float 1481046774.1431
        "stop_memory" => integer 4226592
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1432
        "start_memory" => integer 4230096
        "stop_time" => float 1481046774.1433
        "stop_memory" => integer 4230688
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.144
        "start_memory" => integer 4244272
        "stop_time" => float 1481046774.1441
        "stop_memory" => integer 4244840
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1446
        "start_memory" => integer 4248344
        "stop_time" => float 1481046774.1447
        "stop_memory" => integer 4248936
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1453
        "start_memory" => integer 4262520
        "stop_time" => float 1481046774.1453
        "stop_memory" => integer 4263088
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1455
        "start_memory" => integer 4266592
        "stop_time" => float 1481046774.1455
        "stop_memory" => integer 4267184
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1461
        "start_memory" => integer 4280752
        "stop_time" => float 1481046774.1462
        "stop_memory" => integer 4281320
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1463
        "start_memory" => integer 4284824
        "stop_time" => float 1481046774.1464
        "stop_memory" => integer 4285416
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1471
        "start_memory" => integer 4299000
        "stop_time" => float 1481046774.1472
        "stop_memory" => integer 4299568
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1473
        "start_memory" => integer 4303072
        "stop_time" => float 1481046774.1474
        "stop_memory" => integer 4303664
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1481
        "start_memory" => integer 4317264
        "stop_time" => float 1481046774.1481
        "stop_memory" => integer 4317832
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1483
        "start_memory" => integer 4321336
        "stop_time" => float 1481046774.1484
        "stop_memory" => integer 4321928
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1489
        "start_memory" => integer 4335544
        "stop_time" => float 1481046774.149
        "stop_memory" => integer 4336112
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1491
        "start_memory" => integer 4339616
        "stop_time" => float 1481046774.1491
        "stop_memory" => integer 4340208
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1496
        "start_memory" => integer 4353808
        "stop_time" => float 1481046774.1497
        "stop_memory" => integer 4354376
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1498
        "start_memory" => integer 4357880
        "stop_time" => float 1481046774.1499
        "stop_memory" => integer 4358472
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1505
        "start_memory" => integer 4372200
        "stop_time" => float 1481046774.1506
        "stop_memory" => integer 4372768
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1507
        "start_memory" => integer 4376272
        "stop_time" => float 1481046774.1508
        "stop_memory" => integer 4376864
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1514
        "start_memory" => integer 4390480
        "stop_time" => float 1481046774.1515
        "stop_memory" => integer 4391048
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1516
        "start_memory" => integer 4394552
        "stop_time" => float 1481046774.1516
        "stop_memory" => integer 4395144
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1523
        "start_memory" => integer 4408744
        "stop_time" => float 1481046774.1524
        "stop_memory" => integer 4409312
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1525
        "start_memory" => integer 4412816
        "stop_time" => float 1481046774.1526
        "stop_memory" => integer 4413408
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1533
        "start_memory" => integer 4427008
        "stop_time" => float 1481046774.1534
        "stop_memory" => integer 4427576
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1535
        "start_memory" => integer 4431080
        "stop_time" => float 1481046774.1536
        "stop_memory" => integer 4431672
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1542
        "start_memory" => integer 4445256
        "stop_time" => float 1481046774.1542
        "stop_memory" => integer 4445824
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1543
        "start_memory" => integer 4449328
        "stop_time" => float 1481046774.1544
        "stop_memory" => integer 4449920
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1551
        "start_memory" => integer 4463504
        "stop_time" => float 1481046774.1552
        "stop_memory" => integer 4464072
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1552
        "start_memory" => integer 4467576
        "stop_time" => float 1481046774.1553
        "stop_memory" => integer 4468168
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.156
        "start_memory" => integer 4481768
        "stop_time" => float 1481046774.1561
        "stop_memory" => integer 4482336
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1562
        "start_memory" => integer 4485840
        "stop_time" => float 1481046774.1563
        "stop_memory" => integer 4486432
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1568
        "start_memory" => integer 4500016
        "stop_time" => float 1481046774.1569
        "stop_memory" => integer 4500584
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1571
        "start_memory" => integer 4504088
        "stop_time" => float 1481046774.1571
        "stop_memory" => integer 4504680
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1585
        "start_memory" => integer 4518504
        "stop_time" => float 1481046774.1586
        "stop_memory" => integer 4519072
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1587
        "start_memory" => integer 4522576
        "stop_time" => float 1481046774.1587
        "stop_memory" => integer 4523168
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1613
        "start_memory" => integer 4546096
        "stop_time" => float 1481046774.1613
        "stop_memory" => integer 4546664
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1614
        "start_memory" => integer 4550128
        "stop_time" => float 1481046774.1615
        "stop_memory" => integer 4550704
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1632
        "start_memory" => integer 4631888
        "stop_time" => float 1481046774.1633
        "stop_memory" => integer 4632464
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1639
        "start_memory" => integer 4635928
        "stop_time" => float 1481046774.1639
        "stop_memory" => integer 4636520
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1657
        "start_memory" => integer 4737640
        "stop_time" => float 1481046774.1657
        "stop_memory" => integer 4738192
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1658
        "start_memory" => integer 4741672
        "stop_time" => float 1481046774.1659
        "stop_memory" => integer 4742256
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1679
        "start_memory" => integer 4775224
        "stop_time" => float 1481046774.168
        "stop_memory" => integer 4775816
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1681
        "start_memory" => integer 4779336
        "stop_time" => float 1481046774.1682
        "stop_memory" => integer 4779936
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1688
        "start_memory" => integer 4805504
        "stop_time" => float 1481046774.1689
        "stop_memory" => integer 4806096
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.169
        "start_memory" => integer 4809672
        "stop_time" => float 1481046774.1691
        "stop_memory" => integer 4810280
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1702
        "start_memory" => integer 4828984
        "stop_time" => float 1481046774.1702
        "stop_memory" => integer 4829552
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1703
        "start_memory" => integer 4833080
        "stop_time" => float 1481046774.1704
        "stop_memory" => integer 4833680
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.172
        "start_memory" => integer 4852296
        "stop_time" => float 1481046774.1721
        "stop_memory" => integer 4852888
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.175
        "start_memory" => integer 4862632
        "stop_time" => float 1481046774.1751
        "stop_memory" => integer 4863208
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1754
        "start_memory" => integer 4871808
        "stop_time" => float 1481046774.1754
        "stop_memory" => integer 4872392
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1766
        "start_memory" => integer 4881768
        "stop_time" => float 1481046774.1767
        "stop_memory" => integer 4882320
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1768
        "start_memory" => integer 4885776
        "stop_time" => float 1481046774.1768
        "stop_memory" => integer 4886360
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1773
        "start_memory" => integer 4890400
        "stop_time" => float 1481046774.1774
        "stop_memory" => integer 4890960
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1775
        "start_memory" => integer 4894544
        "stop_time" => float 1481046774.1775
        "stop_memory" => integer 4895144
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.178
        "start_memory" => integer 4899040
        "stop_time" => float 1481046774.1781
        "stop_memory" => integer 4899600
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1782
        "start_memory" => integer 4903136
        "stop_time" => float 1481046774.1782
        "stop_memory" => integer 4903712
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1793
        "start_memory" => integer 4912704
        "stop_time" => float 1481046774.1794
        "stop_memory" => integer 4913296
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1795
        "start_memory" => integer 4916824
        "stop_time" => float 1481046774.1795
        "stop_memory" => integer 4917400
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.18
        "start_memory" => integer 4919536
        "stop_time" => float 1481046774.1801
        "stop_memory" => integer 4920168
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1802
        "start_memory" => integer 4926968
        "stop_time" => float 1481046774.1802
        "stop_memory" => integer 4927520
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1803
        "start_memory" => integer 4930960
        "stop_time" => float 1481046774.1804
        "stop_memory" => integer 4931544
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1824
        "start_memory" => integer 5163080
        "stop_time" => float 1481046774.1825
        "stop_memory" => integer 5163672
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1831
        "start_memory" => integer 5220440
        "stop_time" => float 1481046774.1832
        "stop_memory" => integer 5221024
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1837
        "start_memory" => integer 5255448
        "stop_time" => float 1481046774.1838
        "stop_memory" => integer 5256032
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1839
        "start_memory" => integer 5259584
        "stop_time" => float 1481046774.1839
        "stop_memory" => integer 5260184
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1844
        "start_memory" => integer 5266192
        "stop_time" => float 1481046774.1845
        "stop_memory" => integer 5266752
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1849
        "start_memory" => integer 5292856
        "stop_time" => float 1481046774.185
        "stop_memory" => integer 5293432
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1854
        "start_memory" => integer 5322392
        "stop_time" => float 1481046774.1855
        "stop_memory" => integer 5322984
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1859
        "start_memory" => integer 5349696
        "stop_time" => float 1481046774.186
        "stop_memory" => integer 5350232
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.186
        "start_memory" => integer 5353736
        "stop_time" => float 1481046774.1861
        "stop_memory" => integer 5354336
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.188
        "start_memory" => integer 5381464
        "stop_time" => float 1481046774.1881
        "stop_memory" => integer 5382088
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1882
        "start_memory" => integer 5385888
        "stop_time" => float 1481046774.1883
        "stop_memory" => integer 5386512
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1907
        "start_memory" => integer 5418328
        "stop_time" => float 1481046774.1908
        "stop_memory" => integer 5418904
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1909
        "start_memory" => integer 5422488
        "stop_time" => float 1481046774.1909
        "stop_memory" => integer 5423096
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1947
        "start_memory" => integer 5487816
        "stop_time" => float 1481046774.1948
        "stop_memory" => integer 5488368
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1949
        "start_memory" => integer 5491912
        "stop_time" => float 1481046774.195
        "stop_memory" => integer 5492504
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1955
        "start_memory" => integer 5502624
        "stop_time" => float 1481046774.1955
        "stop_memory" => integer 5503176
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1956
        "start_memory" => integer 5506696
        "stop_time" => float 1481046774.1957
        "stop_memory" => integer 5507296
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1964
        "start_memory" => integer 5551832
        "stop_time" => float 1481046774.1965
        "stop_memory" => integer 5552464
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1966
        "start_memory" => integer 5555968
        "stop_time" => float 1481046774.1966
        "stop_memory" => integer 5556536
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1971
        "start_memory" => integer 5576912
        "stop_time" => float 1481046774.1972
        "stop_memory" => integer 5577528
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1972
        "start_memory" => integer 5581048
        "stop_time" => float 1481046774.1973
        "stop_memory" => integer 5581648
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1985
        "start_memory" => integer 5630336
        "stop_time" => float 1481046774.1986
        "stop_memory" => integer 5630896
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1986
        "start_memory" => integer 5634464
        "stop_time" => float 1481046774.1987
        "stop_memory" => integer 5635056
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1993
        "start_memory" => integer 5657352
        "stop_time" => float 1481046774.1994
        "stop_memory" => integer 5657928
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.1994
        "start_memory" => integer 5661424
        "stop_time" => float 1481046774.1995
        "stop_memory" => integer 5661984
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2006
        "start_memory" => integer 5734584
        "stop_time" => float 1481046774.2007
        "stop_memory" => integer 5735160
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2007
        "start_memory" => integer 5738608
        "stop_time" => float 1481046774.2008
        "stop_memory" => integer 5739192
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2055
        "start_memory" => integer 5758368
        "stop_time" => float 1481046774.2056
        "stop_memory" => integer 5758928
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2057
        "start_memory" => integer 5762424
        "stop_time" => float 1481046774.2058
        "stop_memory" => integer 5763064
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2066
        "start_memory" => integer 5822560
        "stop_time" => float 1481046774.2066
        "stop_memory" => integer 5823128
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2068
        "start_memory" => integer 5826640
        "stop_time" => float 1481046774.2068
        "stop_memory" => integer 5827240
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2077
        "start_memory" => integer 5896424
        "stop_time" => float 1481046774.2078
        "stop_memory" => integer 5897064
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2079
        "start_memory" => integer 5900608
        "stop_time" => float 1481046774.2079
        "stop_memory" => integer 5901192
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2089
        "start_memory" => integer 5919240
        "stop_time" => float 1481046774.2089
        "stop_memory" => integer 5919848
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2092
        "start_memory" => integer 5885760
        "stop_time" => float 1481046774.2093
        "stop_memory" => integer 5888080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2098
        "start_memory" => integer 5924272
        "stop_time" => float 1481046774.2099
        "stop_memory" => integer 5925936
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481046774.2099
        "start_memory" => integer 5925568
        "stop_time" => float 1481046774.21
        "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'],
	);
}