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 1490674822.7595
        "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 1490674822.7595
        "start_memory" => integer 1118688
        "stop_time" => float 1490674822.7596
        "stop_memory" => integer 1119376
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7596
        "start_memory" => integer 1122920
        "stop_time" => float 1490674822.7597
        "stop_memory" => integer 1123528
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7602
        "start_memory" => integer 1200000
        "stop_time" => float 1490674822.7603
        "stop_memory" => integer 1200552
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7603
        "start_memory" => integer 1204056
        "stop_time" => float 1490674822.7604
        "stop_memory" => integer 1204648
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7605
        "start_memory" => integer 1212608
        "stop_time" => float 1490674822.7605
        "stop_memory" => integer 1213160
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7606
        "start_memory" => integer 1216624
        "stop_time" => float 1490674822.7606
        "stop_memory" => integer 1217232
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7607
        "start_memory" => integer 1226064
        "stop_time" => float 1490674822.7608
        "stop_memory" => integer 1226624
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7608
        "start_memory" => integer 1230064
        "stop_time" => float 1490674822.7609
        "stop_memory" => integer 1230712
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7616
        "start_memory" => integer 1325600
        "stop_time" => float 1490674822.7616
        "stop_memory" => integer 1326176
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7617
        "start_memory" => integer 1329656
        "stop_time" => float 1490674822.7617
        "stop_memory" => integer 1330248
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7618
        "start_memory" => integer 1342032
        "stop_time" => float 1490674822.7619
        "stop_memory" => integer 1342584
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7619
        "start_memory" => integer 1346008
        "stop_time" => float 1490674822.762
        "stop_memory" => integer 1346576
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7622
        "start_memory" => integer 1380968
        "stop_time" => float 1490674822.7623
        "stop_memory" => integer 1381568
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7623
        "start_memory" => integer 1382640
        "stop_time" => float 1490674822.7624
        "stop_memory" => integer 1383176
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7624
        "start_memory" => integer 1386584
        "stop_time" => float 1490674822.7625
        "stop_memory" => integer 1387160
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7627
        "start_memory" => integer 1406408
        "stop_time" => float 1490674822.7627
        "stop_memory" => integer 1407112
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7628
        "start_memory" => integer 1410536
        "stop_time" => float 1490674822.7628
        "stop_memory" => integer 1411104
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7634
        "start_memory" => integer 1506712
        "stop_time" => float 1490674822.7634
        "stop_memory" => integer 1507312
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7635
        "start_memory" => integer 1510816
        "stop_time" => float 1490674822.7635
        "stop_memory" => integer 1511416
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7638
        "start_memory" => integer 1550736
        "stop_time" => float 1490674822.7639
        "stop_memory" => integer 1551264
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7639
        "start_memory" => integer 1551904
        "stop_time" => float 1490674822.7639
        "stop_memory" => integer 1552480
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7665
        "start_memory" => integer 1951664
        "stop_time" => float 1490674822.7666
        "stop_memory" => integer 1952248
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7666
        "start_memory" => integer 1955752
        "stop_time" => float 1490674822.7667
        "stop_memory" => integer 1956352
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7668
        "start_memory" => integer 1957984
        "stop_time" => float 1490674822.7668
        "stop_memory" => integer 1958584
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7669
        "start_memory" => integer 1962096
        "stop_time" => float 1490674822.7669
        "stop_memory" => integer 1962672
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7672
        "start_memory" => integer 1992320
        "stop_time" => float 1490674822.7672
        "stop_memory" => integer 1992880
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7673
        "start_memory" => integer 1996384
        "stop_time" => float 1490674822.7673
        "stop_memory" => integer 1996984
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7678
        "start_memory" => integer 2059016
        "stop_time" => float 1490674822.7678
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7679
        "start_memory" => integer 2063000
        "stop_time" => float 1490674822.768
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.7689
        "start_memory" => integer 2122784
        "stop_time" => float 1490674822.7689
        "stop_memory" => integer 2123400
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8257
        "start_memory" => integer 2164312
        "stop_time" => float 1490674822.8257
        "stop_memory" => integer 2164888
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8258
        "start_memory" => integer 2168312
        "stop_time" => float 1490674822.8259
        "stop_memory" => integer 2169152
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8265
        "start_memory" => integer 2195400
        "stop_time" => float 1490674822.8265
        "stop_memory" => integer 2195976
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8266
        "start_memory" => integer 2199456
        "stop_time" => float 1490674822.8266
        "stop_memory" => integer 2200048
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8271
        "start_memory" => integer 2217344
        "stop_time" => float 1490674822.8271
        "stop_memory" => integer 2217912
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8272
        "start_memory" => integer 2221376
        "stop_time" => float 1490674822.8272
        "stop_memory" => integer 2221968
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8278
        "start_memory" => integer 2265424
        "stop_time" => float 1490674822.8279
        "stop_memory" => integer 2266024
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.828
        "start_memory" => integer 2277560
        "stop_time" => float 1490674822.828
        "stop_memory" => integer 2278136
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8281
        "start_memory" => integer 2281648
        "stop_time" => float 1490674822.8281
        "stop_memory" => integer 2282232
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8285
        "start_memory" => integer 2320248
        "stop_time" => float 1490674822.8286
        "stop_memory" => integer 2320848
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8288
        "start_memory" => integer 2332968
        "stop_time" => float 1490674822.8288
        "stop_memory" => integer 2333544
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8292
        "start_memory" => integer 2360560
        "stop_time" => float 1490674822.8292
        "stop_memory" => integer 2361160
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8294
        "start_memory" => integer 2368976
        "stop_time" => float 1490674822.8294
        "stop_memory" => integer 2369552
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8296
        "start_memory" => integer 2382704
        "stop_time" => float 1490674822.8296
        "stop_memory" => integer 2383304
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8298
        "start_memory" => integer 2390320
        "stop_time" => float 1490674822.8298
        "stop_memory" => integer 2390912
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.83
        "start_memory" => integer 2404216
        "stop_time" => float 1490674822.8301
        "stop_memory" => integer 2404808
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8303
        "start_memory" => integer 2418440
        "stop_time" => float 1490674822.8303
        "stop_memory" => integer 2419032
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8305
        "start_memory" => integer 2428512
        "stop_time" => float 1490674822.8305
        "stop_memory" => integer 2429104
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8307
        "start_memory" => integer 2437776
        "stop_time" => float 1490674822.8307
        "stop_memory" => integer 2438368
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8309
        "start_memory" => integer 2483720
        "stop_time" => float 1490674822.831
        "stop_memory" => integer 2484296
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8312
        "start_memory" => integer 2507224
        "stop_time" => float 1490674822.8313
        "stop_memory" => integer 2507824
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8315
        "start_memory" => integer 2521120
        "stop_time" => float 1490674822.8315
        "stop_memory" => integer 2521696
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8317
        "start_memory" => integer 2540896
        "stop_time" => float 1490674822.8318
        "stop_memory" => integer 2541480
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.832
        "start_memory" => integer 2555136
        "stop_time" => float 1490674822.832
        "stop_memory" => integer 2555704
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8321
        "start_memory" => integer 2559160
        "stop_time" => float 1490674822.8321
        "stop_memory" => integer 2559744
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8323
        "start_memory" => integer 2581944
        "stop_time" => float 1490674822.8323
        "stop_memory" => integer 2582504
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8324
        "start_memory" => integer 2585936
        "stop_time" => float 1490674822.8324
        "stop_memory" => integer 2586520
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8344
        "start_memory" => integer 2680448
        "stop_time" => float 1490674822.8344
        "stop_memory" => integer 2681024
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8398
        "start_memory" => integer 2711600
        "stop_time" => float 1490674822.8399
        "stop_memory" => integer 2712176
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.84
        "start_memory" => integer 2715680
        "stop_time" => float 1490674822.84
        "stop_memory" => integer 2716272
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8431
        "start_memory" => integer 2735392
        "stop_time" => float 1490674822.8432
        "stop_memory" => integer 2735976
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8432
        "start_memory" => integer 2739504
        "stop_time" => float 1490674822.8433
        "stop_memory" => integer 2740104
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8465
        "start_memory" => integer 2759312
        "stop_time" => float 1490674822.8465
        "stop_memory" => integer 2759872
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8466
        "start_memory" => integer 2763352
        "stop_time" => float 1490674822.8466
        "stop_memory" => integer 2764456
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8471
        "start_memory" => integer 2819008
        "stop_time" => float 1490674822.8472
        "stop_memory" => integer 2819608
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8506
        "start_memory" => integer 2826904
        "stop_time" => float 1490674822.8506
        "stop_memory" => integer 2827480
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8507
        "start_memory" => integer 2831008
        "stop_time" => float 1490674822.8507
        "stop_memory" => integer 2831608
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8609
        "start_memory" => integer 2871296
        "stop_time" => float 1490674822.861
        "stop_memory" => integer 2871872
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8611
        "start_memory" => integer 2875400
        "stop_time" => float 1490674822.8611
        "stop_memory" => integer 2876000
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8612
        "start_memory" => integer 2891968
        "stop_time" => float 1490674822.8613
        "stop_memory" => integer 2892544
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8617
        "start_memory" => integer 2899864
        "stop_time" => float 1490674822.8617
        "stop_memory" => integer 2900432
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8618
        "start_memory" => integer 2903904
        "stop_time" => float 1490674822.8618
        "stop_memory" => integer 2904496
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8626
        "start_memory" => integer 2953920
        "stop_time" => float 1490674822.8626
        "stop_memory" => integer 2954504
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8627
        "start_memory" => integer 2958008
        "stop_time" => float 1490674822.8627
        "stop_memory" => integer 2958608
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8664
        "start_memory" => integer 2978008
        "stop_time" => float 1490674822.8664
        "stop_memory" => integer 2978568
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8665
        "start_memory" => integer 2982040
        "stop_time" => float 1490674822.8665
        "stop_memory" => integer 2982632
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8671
        "start_memory" => integer 2997800
        "stop_time" => float 1490674822.8671
        "stop_memory" => integer 2998336
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8672
        "start_memory" => integer 3001744
        "stop_time" => float 1490674822.8673
        "stop_memory" => integer 3002320
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8684
        "start_memory" => integer 3009000
        "stop_time" => float 1490674822.8684
        "stop_memory" => integer 3009600
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8685
        "start_memory" => integer 3013112
        "stop_time" => float 1490674822.8685
        "stop_memory" => integer 3013712
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8711
        "start_memory" => integer 3048760
        "stop_time" => float 1490674822.8711
        "stop_memory" => integer 3049352
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8715
        "start_memory" => integer 3057048
        "stop_time" => float 1490674822.8716
        "stop_memory" => integer 3057608
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8716
        "start_memory" => integer 3061096
        "stop_time" => float 1490674822.8717
        "stop_memory" => integer 3061688
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8741
        "start_memory" => integer 3079328
        "stop_time" => float 1490674822.8741
        "stop_memory" => integer 3079912
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8755
        "start_memory" => integer 3084512
        "stop_time" => float 1490674822.8755
        "stop_memory" => integer 3085080
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8756
        "start_memory" => integer 3088544
        "stop_time" => float 1490674822.8756
        "stop_memory" => integer 3089136
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8773
        "start_memory" => integer 3183192
        "stop_time" => float 1490674822.8773
        "stop_memory" => integer 3183792
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8774
        "start_memory" => integer 3187344
        "stop_time" => float 1490674822.8774
        "stop_memory" => integer 3187936
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8778
        "start_memory" => integer 3201512
        "stop_time" => float 1490674822.8778
        "stop_memory" => integer 3202104
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8779
        "start_memory" => integer 3205656
        "stop_time" => float 1490674822.8779
        "stop_memory" => integer 3206264
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.879
        "start_memory" => integer 3211296
        "stop_time" => float 1490674822.879
        "stop_memory" => integer 3211864
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8791
        "start_memory" => integer 3215368
        "stop_time" => float 1490674822.8791
        "stop_memory" => integer 3215968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8801
        "start_memory" => integer 3310768
        "stop_time" => float 1490674822.8801
        "stop_memory" => integer 3311360
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8802
        "start_memory" => integer 3314912
        "stop_time" => float 1490674822.8802
        "stop_memory" => integer 3315520
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8804
        "start_memory" => integer 3327560
        "stop_time" => float 1490674822.8804
        "stop_memory" => integer 3328128
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8805
        "start_memory" => integer 3331632
        "stop_time" => float 1490674822.8805
        "stop_memory" => integer 3332256
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8812
        "start_memory" => integer 3375896
        "stop_time" => float 1490674822.8813
        "stop_memory" => integer 3376472
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8813
        "start_memory" => integer 3379992
        "stop_time" => float 1490674822.8814
        "stop_memory" => integer 3380592
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.882
        "start_memory" => integer 3425224
        "stop_time" => float 1490674822.882
        "stop_memory" => integer 3425800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8821
        "start_memory" => integer 3429304
        "stop_time" => float 1490674822.8821
        "stop_memory" => integer 3429904
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8828
        "start_memory" => integer 3457216
        "stop_time" => float 1490674822.8829
        "stop_memory" => integer 3457808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8829
        "start_memory" => integer 3461368
        "stop_time" => float 1490674822.883
        "stop_memory" => integer 3461976
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8837
        "start_memory" => integer 3498192
        "stop_time" => float 1490674822.8837
        "stop_memory" => integer 3498792
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8838
        "start_memory" => integer 3502424
        "stop_time" => float 1490674822.8839
        "stop_memory" => integer 3503040
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.884
        "start_memory" => integer 3515184
        "stop_time" => float 1490674822.884
        "stop_memory" => integer 3515776
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8841
        "start_memory" => integer 3519400
        "stop_time" => float 1490674822.8841
        "stop_memory" => integer 3520016
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8848
        "start_memory" => integer 3572136
        "stop_time" => float 1490674822.8849
        "stop_memory" => integer 3572728
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8849
        "start_memory" => integer 3576336
        "stop_time" => float 1490674822.885
        "stop_memory" => integer 3576952
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8857
        "start_memory" => integer 3609544
        "stop_time" => float 1490674822.8857
        "stop_memory" => integer 3610136
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8858
        "start_memory" => integer 3613760
        "stop_time" => float 1490674822.8858
        "stop_memory" => integer 3614376
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8865
        "start_memory" => integer 3643000
        "stop_time" => float 1490674822.8865
        "stop_memory" => integer 3643592
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8866
        "start_memory" => integer 3647200
        "stop_time" => float 1490674822.8866
        "stop_memory" => integer 3647816
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8875
        "start_memory" => integer 3723736
        "stop_time" => float 1490674822.8876
        "stop_memory" => integer 3724328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8876
        "start_memory" => integer 3727936
        "stop_time" => float 1490674822.8877
        "stop_memory" => integer 3728552
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8892
        "start_memory" => integer 3765072
        "stop_time" => float 1490674822.8892
        "stop_memory" => integer 3765648
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8893
        "start_memory" => integer 3769208
        "stop_time" => float 1490674822.8894
        "stop_memory" => integer 3769816
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.89
        "start_memory" => integer 3788144
        "stop_time" => float 1490674822.89
        "stop_memory" => integer 3788680
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8901
        "start_memory" => integer 3792128
        "stop_time" => float 1490674822.8902
        "stop_memory" => integer 3792696
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.891
        "start_memory" => integer 3862280
        "stop_time" => float 1490674822.8911
        "stop_memory" => integer 3862864
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8911
        "start_memory" => integer 3866320
        "stop_time" => float 1490674822.8912
        "stop_memory" => integer 3866896
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8943
        "start_memory" => integer 3881096
        "stop_time" => float 1490674822.8943
        "stop_memory" => integer 3881656
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8944
        "start_memory" => integer 3885088
        "stop_time" => float 1490674822.8945
        "stop_memory" => integer 3885672
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8964
        "start_memory" => integer 3907512
        "stop_time" => float 1490674822.8965
        "stop_memory" => integer 3908072
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8966
        "start_memory" => integer 3911496
        "stop_time" => float 1490674822.8966
        "stop_memory" => integer 3912064
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8971
        "start_memory" => integer 3935208
        "stop_time" => float 1490674822.8972
        "stop_memory" => integer 3935776
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8973
        "start_memory" => integer 3939208
        "stop_time" => float 1490674822.8973
        "stop_memory" => integer 3939776
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8978
        "start_memory" => integer 3965728
        "stop_time" => float 1490674822.8979
        "stop_memory" => integer 3966296
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.898
        "start_memory" => integer 3969720
        "stop_time" => float 1490674822.898
        "stop_memory" => integer 3971312
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8989
        "start_memory" => integer 4018432
        "stop_time" => float 1490674822.899
        "stop_memory" => integer 4019000
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.8991
        "start_memory" => integer 4022440
        "stop_time" => float 1490674822.8991
        "stop_memory" => integer 4023024
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9006
        "start_memory" => integer 4037568
        "stop_time" => float 1490674822.9007
        "stop_memory" => integer 4038128
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9007
        "start_memory" => integer 4041576
        "stop_time" => float 1490674822.9008
        "stop_memory" => integer 4042144
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9018
        "start_memory" => integer 4058776
        "stop_time" => float 1490674822.9018
        "stop_memory" => integer 4059360
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9019
        "start_memory" => integer 4062840
        "stop_time" => float 1490674822.9019
        "stop_memory" => integer 4063432
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9024
        "start_memory" => integer 4079896
        "stop_time" => float 1490674822.9025
        "stop_memory" => integer 4080464
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9025
        "start_memory" => integer 4083968
        "stop_time" => float 1490674822.9026
        "stop_memory" => integer 4084560
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.903
        "start_memory" => integer 4098144
        "stop_time" => float 1490674822.9031
        "stop_memory" => integer 4098712
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9032
        "start_memory" => integer 4102216
        "stop_time" => float 1490674822.9032
        "stop_memory" => integer 4102808
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9037
        "start_memory" => integer 4116408
        "stop_time" => float 1490674822.9037
        "stop_memory" => integer 4116976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9038
        "start_memory" => integer 4120480
        "stop_time" => float 1490674822.9038
        "stop_memory" => integer 4121072
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9043
        "start_memory" => integer 4134672
        "stop_time" => float 1490674822.9043
        "stop_memory" => integer 4135240
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9044
        "start_memory" => integer 4138744
        "stop_time" => float 1490674822.9045
        "stop_memory" => integer 4139336
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9049
        "start_memory" => integer 4152920
        "stop_time" => float 1490674822.9049
        "stop_memory" => integer 4153488
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.905
        "start_memory" => integer 4156992
        "stop_time" => float 1490674822.9051
        "stop_memory" => integer 4157584
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9055
        "start_memory" => integer 4171168
        "stop_time" => float 1490674822.9056
        "stop_memory" => integer 4171736
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9056
        "start_memory" => integer 4175240
        "stop_time" => float 1490674822.9057
        "stop_memory" => integer 4175832
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9061
        "start_memory" => integer 4189432
        "stop_time" => float 1490674822.9062
        "stop_memory" => integer 4190000
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9062
        "start_memory" => integer 4193504
        "stop_time" => float 1490674822.9063
        "stop_memory" => integer 4194096
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9067
        "start_memory" => integer 4207680
        "stop_time" => float 1490674822.9068
        "stop_memory" => integer 4208248
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9069
        "start_memory" => integer 4211752
        "stop_time" => float 1490674822.9069
        "stop_memory" => integer 4212344
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9074
        "start_memory" => integer 4226024
        "stop_time" => float 1490674822.9074
        "stop_memory" => integer 4226592
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9075
        "start_memory" => integer 4230096
        "stop_time" => float 1490674822.9075
        "stop_memory" => integer 4230688
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.908
        "start_memory" => integer 4244272
        "stop_time" => float 1490674822.908
        "stop_memory" => integer 4244840
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9081
        "start_memory" => integer 4248344
        "stop_time" => float 1490674822.9081
        "stop_memory" => integer 4248936
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9086
        "start_memory" => integer 4262520
        "stop_time" => float 1490674822.9086
        "stop_memory" => integer 4263088
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9087
        "start_memory" => integer 4266592
        "stop_time" => float 1490674822.9088
        "stop_memory" => integer 4267184
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9092
        "start_memory" => integer 4280752
        "stop_time" => float 1490674822.9093
        "stop_memory" => integer 4281320
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9093
        "start_memory" => integer 4284824
        "stop_time" => float 1490674822.9094
        "stop_memory" => integer 4285416
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9098
        "start_memory" => integer 4299000
        "stop_time" => float 1490674822.9099
        "stop_memory" => integer 4299568
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9099
        "start_memory" => integer 4303072
        "stop_time" => float 1490674822.91
        "stop_memory" => integer 4303664
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9104
        "start_memory" => integer 4317264
        "stop_time" => float 1490674822.9105
        "stop_memory" => integer 4317832
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9105
        "start_memory" => integer 4321336
        "stop_time" => float 1490674822.9106
        "stop_memory" => integer 4321928
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.911
        "start_memory" => integer 4335544
        "stop_time" => float 1490674822.9111
        "stop_memory" => integer 4336112
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9112
        "start_memory" => integer 4339616
        "stop_time" => float 1490674822.9112
        "stop_memory" => integer 4340208
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9117
        "start_memory" => integer 4353808
        "stop_time" => float 1490674822.9117
        "stop_memory" => integer 4354376
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9118
        "start_memory" => integer 4357880
        "stop_time" => float 1490674822.9118
        "stop_memory" => integer 4358472
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9123
        "start_memory" => integer 4372200
        "stop_time" => float 1490674822.9123
        "stop_memory" => integer 4372768
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9124
        "start_memory" => integer 4376272
        "stop_time" => float 1490674822.9124
        "stop_memory" => integer 4376864
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9129
        "start_memory" => integer 4390480
        "stop_time" => float 1490674822.9129
        "stop_memory" => integer 4391048
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.913
        "start_memory" => integer 4394552
        "stop_time" => float 1490674822.9131
        "stop_memory" => integer 4395144
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9135
        "start_memory" => integer 4408744
        "stop_time" => float 1490674822.9136
        "stop_memory" => integer 4409312
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9136
        "start_memory" => integer 4412816
        "stop_time" => float 1490674822.9137
        "stop_memory" => integer 4413408
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9141
        "start_memory" => integer 4427008
        "stop_time" => float 1490674822.9142
        "stop_memory" => integer 4427576
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9142
        "start_memory" => integer 4431080
        "stop_time" => float 1490674822.9143
        "stop_memory" => integer 4431672
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9147
        "start_memory" => integer 4445256
        "stop_time" => float 1490674822.9148
        "stop_memory" => integer 4445824
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9149
        "start_memory" => integer 4449328
        "stop_time" => float 1490674822.9149
        "stop_memory" => integer 4449920
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9153
        "start_memory" => integer 4463504
        "stop_time" => float 1490674822.9154
        "stop_memory" => integer 4464072
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9155
        "start_memory" => integer 4467576
        "stop_time" => float 1490674822.9155
        "stop_memory" => integer 4468168
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.916
        "start_memory" => integer 4481768
        "stop_time" => float 1490674822.916
        "stop_memory" => integer 4482336
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9161
        "start_memory" => integer 4485840
        "stop_time" => float 1490674822.9161
        "stop_memory" => integer 4486432
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9166
        "start_memory" => integer 4500016
        "stop_time" => float 1490674822.9167
        "stop_memory" => integer 4500584
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9167
        "start_memory" => integer 4504088
        "stop_time" => float 1490674822.9168
        "stop_memory" => integer 4504680
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9178
        "start_memory" => integer 4518504
        "stop_time" => float 1490674822.9179
        "stop_memory" => integer 4519072
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.918
        "start_memory" => integer 4522576
        "stop_time" => float 1490674822.918
        "stop_memory" => integer 4523168
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9199
        "start_memory" => integer 4546096
        "stop_time" => float 1490674822.92
        "stop_memory" => integer 4546664
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.92
        "start_memory" => integer 4550128
        "stop_time" => float 1490674822.9201
        "stop_memory" => integer 4550704
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9211
        "start_memory" => integer 4631888
        "stop_time" => float 1490674822.9212
        "stop_memory" => integer 4632464
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9213
        "start_memory" => integer 4635928
        "stop_time" => float 1490674822.9213
        "stop_memory" => integer 4636520
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9226
        "start_memory" => integer 4737640
        "stop_time" => float 1490674822.9226
        "stop_memory" => integer 4738192
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9227
        "start_memory" => integer 4741672
        "stop_time" => float 1490674822.9228
        "stop_memory" => integer 4742256
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9245
        "start_memory" => integer 4775224
        "stop_time" => float 1490674822.9245
        "stop_memory" => integer 4775816
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9246
        "start_memory" => integer 4779336
        "stop_time" => float 1490674822.9246
        "stop_memory" => integer 4779936
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9251
        "start_memory" => integer 4805504
        "stop_time" => float 1490674822.9252
        "stop_memory" => integer 4806096
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9253
        "start_memory" => integer 4809672
        "stop_time" => float 1490674822.9253
        "stop_memory" => integer 4810280
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9262
        "start_memory" => integer 4828984
        "stop_time" => float 1490674822.9263
        "stop_memory" => integer 4829552
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9263
        "start_memory" => integer 4833080
        "stop_time" => float 1490674822.9264
        "stop_memory" => integer 4833680
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9277
        "start_memory" => integer 4852296
        "stop_time" => float 1490674822.9277
        "stop_memory" => integer 4852888
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9301
        "start_memory" => integer 4862632
        "stop_time" => float 1490674822.9302
        "stop_memory" => integer 4863208
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9303
        "start_memory" => integer 4871808
        "stop_time" => float 1490674822.9304
        "stop_memory" => integer 4872392
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9317
        "start_memory" => integer 4881768
        "stop_time" => float 1490674822.9318
        "stop_memory" => integer 4882320
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9318
        "start_memory" => integer 4885776
        "stop_time" => float 1490674822.9319
        "stop_memory" => integer 4886360
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9323
        "start_memory" => integer 4890400
        "stop_time" => float 1490674822.9324
        "stop_memory" => integer 4890960
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9325
        "start_memory" => integer 4894544
        "stop_time" => float 1490674822.9325
        "stop_memory" => integer 4895144
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.933
        "start_memory" => integer 4899040
        "stop_time" => float 1490674822.9331
        "stop_memory" => integer 4899600
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9331
        "start_memory" => integer 4903136
        "stop_time" => float 1490674822.9332
        "stop_memory" => integer 4903712
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9341
        "start_memory" => integer 4912704
        "stop_time" => float 1490674822.9342
        "stop_memory" => integer 4913296
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9343
        "start_memory" => integer 4916824
        "stop_time" => float 1490674822.9343
        "stop_memory" => integer 4917400
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9347
        "start_memory" => integer 4919536
        "stop_time" => float 1490674822.9348
        "stop_memory" => integer 4920168
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9349
        "start_memory" => integer 4926968
        "stop_time" => float 1490674822.9349
        "stop_memory" => integer 4927520
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.935
        "start_memory" => integer 4930960
        "stop_time" => float 1490674822.935
        "stop_memory" => integer 4931544
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9367
        "start_memory" => integer 5163080
        "stop_time" => float 1490674822.9368
        "stop_memory" => integer 5163672
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9373
        "start_memory" => integer 5220440
        "stop_time" => float 1490674822.9374
        "stop_memory" => integer 5221024
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9378
        "start_memory" => integer 5255448
        "stop_time" => float 1490674822.9378
        "stop_memory" => integer 5256032
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9379
        "start_memory" => integer 5259584
        "stop_time" => float 1490674822.938
        "stop_memory" => integer 5260184
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9384
        "start_memory" => integer 5266192
        "stop_time" => float 1490674822.9384
        "stop_memory" => integer 5266752
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9388
        "start_memory" => integer 5292856
        "stop_time" => float 1490674822.9388
        "stop_memory" => integer 5293432
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9392
        "start_memory" => integer 5322392
        "stop_time" => float 1490674822.9392
        "stop_memory" => integer 5322984
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9396
        "start_memory" => integer 5349696
        "stop_time" => float 1490674822.9396
        "stop_memory" => integer 5350232
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9397
        "start_memory" => integer 5353736
        "stop_time" => float 1490674822.9397
        "stop_memory" => integer 5354336
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9413
        "start_memory" => integer 5381464
        "stop_time" => float 1490674822.9414
        "stop_memory" => integer 5382088
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9415
        "start_memory" => integer 5385888
        "stop_time" => float 1490674822.9415
        "stop_memory" => integer 5386512
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9435
        "start_memory" => integer 5418328
        "stop_time" => float 1490674822.9435
        "stop_memory" => integer 5418904
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9436
        "start_memory" => integer 5422488
        "stop_time" => float 1490674822.9436
        "stop_memory" => integer 5423096
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9468
        "start_memory" => integer 5487816
        "stop_time" => float 1490674822.9469
        "stop_memory" => integer 5488368
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.947
        "start_memory" => integer 5491912
        "stop_time" => float 1490674822.947
        "stop_memory" => integer 5492504
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9474
        "start_memory" => integer 5502624
        "stop_time" => float 1490674822.9475
        "stop_memory" => integer 5503176
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9476
        "start_memory" => integer 5506696
        "stop_time" => float 1490674822.9476
        "stop_memory" => integer 5507296
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9482
        "start_memory" => integer 5551832
        "stop_time" => float 1490674822.9483
        "stop_memory" => integer 5552464
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9483
        "start_memory" => integer 5555968
        "stop_time" => float 1490674822.9484
        "stop_memory" => integer 5556536
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9488
        "start_memory" => integer 5576912
        "stop_time" => float 1490674822.9488
        "stop_memory" => integer 5577528
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9489
        "start_memory" => integer 5581048
        "stop_time" => float 1490674822.949
        "stop_memory" => integer 5581648
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9499
        "start_memory" => integer 5630336
        "stop_time" => float 1490674822.95
        "stop_memory" => integer 5630896
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.95
        "start_memory" => integer 5634464
        "stop_time" => float 1490674822.9501
        "stop_memory" => integer 5635056
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9505
        "start_memory" => integer 5657352
        "stop_time" => float 1490674822.9506
        "stop_memory" => integer 5657928
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9506
        "start_memory" => integer 5661424
        "stop_time" => float 1490674822.9507
        "stop_memory" => integer 5661984
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9516
        "start_memory" => integer 5734584
        "stop_time" => float 1490674822.9516
        "stop_memory" => integer 5735160
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9517
        "start_memory" => integer 5738608
        "stop_time" => float 1490674822.9517
        "stop_memory" => integer 5739192
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9555
        "start_memory" => integer 5758368
        "stop_time" => float 1490674822.9555
        "stop_memory" => integer 5758928
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9556
        "start_memory" => integer 5762424
        "stop_time" => float 1490674822.9557
        "stop_memory" => integer 5763064
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9564
        "start_memory" => integer 5822560
        "stop_time" => float 1490674822.9564
        "stop_memory" => integer 5823128
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9565
        "start_memory" => integer 5826640
        "stop_time" => float 1490674822.9566
        "stop_memory" => integer 5827240
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9573
        "start_memory" => integer 5896424
        "stop_time" => float 1490674822.9574
        "stop_memory" => integer 5897064
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9575
        "start_memory" => integer 5900608
        "stop_time" => float 1490674822.9575
        "stop_memory" => integer 5901192
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9582
        "start_memory" => integer 5919240
        "stop_time" => float 1490674822.9583
        "stop_memory" => integer 5919848
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9585
        "start_memory" => integer 5885760
        "stop_time" => float 1490674822.9586
        "stop_memory" => integer 5888080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.959
        "start_memory" => integer 5924272
        "stop_time" => float 1490674822.9591
        "stop_memory" => integer 5925936
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1490674822.9591
        "start_memory" => integer 5925568
        "stop_time" => float 1490674822.9591
        "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'],
	);
}