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 1485190596.8648
        "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 1485190596.8648
        "start_memory" => integer 1118688
        "stop_time" => float 1485190596.8649
        "stop_memory" => integer 1119376
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.865
        "start_memory" => integer 1122920
        "stop_time" => float 1485190596.865
        "stop_memory" => integer 1123528
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8657
        "start_memory" => integer 1200000
        "stop_time" => float 1485190596.8657
        "stop_memory" => integer 1200552
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8659
        "start_memory" => integer 1204056
        "stop_time" => float 1485190596.8659
        "stop_memory" => integer 1204648
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8661
        "start_memory" => integer 1212608
        "stop_time" => float 1485190596.8661
        "stop_memory" => integer 1213160
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8662
        "start_memory" => integer 1216624
        "stop_time" => float 1485190596.8662
        "stop_memory" => integer 1217232
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8664
        "start_memory" => integer 1226064
        "stop_time" => float 1485190596.8665
        "stop_memory" => integer 1226624
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8665
        "start_memory" => integer 1230064
        "stop_time" => float 1485190596.8666
        "stop_memory" => integer 1230712
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8675
        "start_memory" => integer 1325600
        "stop_time" => float 1485190596.8676
        "stop_memory" => integer 1326176
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8677
        "start_memory" => integer 1329656
        "stop_time" => float 1485190596.8678
        "stop_memory" => integer 1330248
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8679
        "start_memory" => integer 1342032
        "stop_time" => float 1485190596.868
        "stop_memory" => integer 1342584
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8681
        "start_memory" => integer 1346008
        "stop_time" => float 1485190596.8681
        "stop_memory" => integer 1346576
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8685
        "start_memory" => integer 1380968
        "stop_time" => float 1485190596.8685
        "stop_memory" => integer 1381568
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8685
        "start_memory" => integer 1382640
        "stop_time" => float 1485190596.8686
        "stop_memory" => integer 1383176
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8687
        "start_memory" => integer 1386584
        "stop_time" => float 1485190596.8688
        "stop_memory" => integer 1387160
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8691
        "start_memory" => integer 1406408
        "stop_time" => float 1485190596.8691
        "stop_memory" => integer 1407112
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8692
        "start_memory" => integer 1410536
        "stop_time" => float 1485190596.8693
        "stop_memory" => integer 1411104
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.87
        "start_memory" => integer 1506712
        "stop_time" => float 1485190596.87
        "stop_memory" => integer 1507312
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8702
        "start_memory" => integer 1510816
        "stop_time" => float 1485190596.8702
        "stop_memory" => integer 1511416
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8706
        "start_memory" => integer 1550736
        "stop_time" => float 1485190596.8707
        "stop_memory" => integer 1551264
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8707
        "start_memory" => integer 1551904
        "stop_time" => float 1485190596.8707
        "stop_memory" => integer 1552480
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8738
        "start_memory" => integer 1951664
        "stop_time" => float 1485190596.8738
        "stop_memory" => integer 1952248
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8739
        "start_memory" => integer 1955752
        "stop_time" => float 1485190596.874
        "stop_memory" => integer 1956352
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8741
        "start_memory" => integer 1957984
        "stop_time" => float 1485190596.8742
        "stop_memory" => integer 1958584
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8743
        "start_memory" => integer 1962096
        "stop_time" => float 1485190596.8743
        "stop_memory" => integer 1962672
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8746
        "start_memory" => integer 1992320
        "stop_time" => float 1485190596.8747
        "stop_memory" => integer 1992880
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8748
        "start_memory" => integer 1996384
        "stop_time" => float 1485190596.8749
        "stop_memory" => integer 1996984
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8754
        "start_memory" => integer 2059016
        "stop_time" => float 1485190596.8755
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8756
        "start_memory" => integer 2063000
        "stop_time" => float 1485190596.8757
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.8768
        "start_memory" => integer 2122784
        "stop_time" => float 1485190596.8769
        "stop_memory" => integer 2123400
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9755
        "start_memory" => integer 2164312
        "stop_time" => float 1485190596.9756
        "stop_memory" => integer 2164888
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9757
        "start_memory" => integer 2168312
        "stop_time" => float 1485190596.9757
        "stop_memory" => integer 2169152
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9763
        "start_memory" => integer 2195400
        "stop_time" => float 1485190596.9764
        "stop_memory" => integer 2195976
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9764
        "start_memory" => integer 2199456
        "stop_time" => float 1485190596.9765
        "stop_memory" => integer 2200048
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.977
        "start_memory" => integer 2217344
        "stop_time" => float 1485190596.977
        "stop_memory" => integer 2217912
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9771
        "start_memory" => integer 2221376
        "stop_time" => float 1485190596.9772
        "stop_memory" => integer 2221968
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9778
        "start_memory" => integer 2265424
        "stop_time" => float 1485190596.9778
        "stop_memory" => integer 2266024
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9779
        "start_memory" => integer 2277560
        "stop_time" => float 1485190596.978
        "stop_memory" => integer 2278136
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.978
        "start_memory" => integer 2281648
        "stop_time" => float 1485190596.9781
        "stop_memory" => integer 2282232
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9785
        "start_memory" => integer 2320248
        "stop_time" => float 1485190596.9785
        "stop_memory" => integer 2320848
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9787
        "start_memory" => integer 2332968
        "stop_time" => float 1485190596.9788
        "stop_memory" => integer 2333544
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9791
        "start_memory" => integer 2360560
        "stop_time" => float 1485190596.9792
        "stop_memory" => integer 2361160
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9793
        "start_memory" => integer 2368976
        "stop_time" => float 1485190596.9794
        "stop_memory" => integer 2369552
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9796
        "start_memory" => integer 2382704
        "stop_time" => float 1485190596.9796
        "stop_memory" => integer 2383304
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9798
        "start_memory" => integer 2390320
        "stop_time" => float 1485190596.9798
        "stop_memory" => integer 2390912
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9801
        "start_memory" => integer 2404216
        "stop_time" => float 1485190596.9801
        "stop_memory" => integer 2404808
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9803
        "start_memory" => integer 2418440
        "stop_time" => float 1485190596.9803
        "stop_memory" => integer 2419032
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9805
        "start_memory" => integer 2428512
        "stop_time" => float 1485190596.9806
        "stop_memory" => integer 2429104
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9807
        "start_memory" => integer 2437776
        "stop_time" => float 1485190596.9808
        "stop_memory" => integer 2438368
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.981
        "start_memory" => integer 2483720
        "stop_time" => float 1485190596.9811
        "stop_memory" => integer 2484296
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9813
        "start_memory" => integer 2507224
        "stop_time" => float 1485190596.9814
        "stop_memory" => integer 2507824
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9816
        "start_memory" => integer 2521120
        "stop_time" => float 1485190596.9816
        "stop_memory" => integer 2521696
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9819
        "start_memory" => integer 2540896
        "stop_time" => float 1485190596.9819
        "stop_memory" => integer 2541480
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9821
        "start_memory" => integer 2555136
        "stop_time" => float 1485190596.9821
        "stop_memory" => integer 2555704
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9822
        "start_memory" => integer 2559160
        "stop_time" => float 1485190596.9822
        "stop_memory" => integer 2559744
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9824
        "start_memory" => integer 2581944
        "stop_time" => float 1485190596.9825
        "stop_memory" => integer 2582504
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9826
        "start_memory" => integer 2585936
        "stop_time" => float 1485190596.9826
        "stop_memory" => integer 2586520
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9846
        "start_memory" => integer 2680448
        "stop_time" => float 1485190596.9846
        "stop_memory" => integer 2681024
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.99
        "start_memory" => integer 2711600
        "stop_time" => float 1485190596.9901
        "stop_memory" => integer 2712176
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9902
        "start_memory" => integer 2715680
        "stop_time" => float 1485190596.9902
        "stop_memory" => integer 2716272
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9933
        "start_memory" => integer 2735392
        "stop_time" => float 1485190596.9933
        "stop_memory" => integer 2735976
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9934
        "start_memory" => integer 2739504
        "stop_time" => float 1485190596.9934
        "stop_memory" => integer 2740104
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9965
        "start_memory" => integer 2759312
        "stop_time" => float 1485190596.9965
        "stop_memory" => integer 2759872
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9966
        "start_memory" => integer 2763352
        "stop_time" => float 1485190596.9966
        "stop_memory" => integer 2764456
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190596.9971
        "start_memory" => integer 2819008
        "stop_time" => float 1485190596.9971
        "stop_memory" => integer 2819608
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0005
        "start_memory" => integer 2826904
        "stop_time" => float 1485190597.0005
        "stop_memory" => integer 2827480
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0006
        "start_memory" => integer 2831008
        "stop_time" => float 1485190597.0006
        "stop_memory" => integer 2831608
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0108
        "start_memory" => integer 2871296
        "stop_time" => float 1485190597.0108
        "stop_memory" => integer 2871872
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0109
        "start_memory" => integer 2875400
        "stop_time" => float 1485190597.0109
        "stop_memory" => integer 2876000
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0111
        "start_memory" => integer 2891968
        "stop_time" => float 1485190597.0111
        "stop_memory" => integer 2892544
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0116
        "start_memory" => integer 2899864
        "stop_time" => float 1485190597.0116
        "stop_memory" => integer 2900432
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0117
        "start_memory" => integer 2903904
        "stop_time" => float 1485190597.0117
        "stop_memory" => integer 2904496
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0125
        "start_memory" => integer 2953920
        "stop_time" => float 1485190597.0125
        "stop_memory" => integer 2954504
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0126
        "start_memory" => integer 2958008
        "stop_time" => float 1485190597.0126
        "stop_memory" => integer 2958608
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0164
        "start_memory" => integer 2978008
        "stop_time" => float 1485190597.0164
        "stop_memory" => integer 2978568
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0165
        "start_memory" => integer 2982040
        "stop_time" => float 1485190597.0165
        "stop_memory" => integer 2982632
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0171
        "start_memory" => integer 2997800
        "stop_time" => float 1485190597.0171
        "stop_memory" => integer 2998336
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0172
        "start_memory" => integer 3001744
        "stop_time" => float 1485190597.0173
        "stop_memory" => integer 3002320
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0184
        "start_memory" => integer 3009000
        "stop_time" => float 1485190597.0184
        "stop_memory" => integer 3009600
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0185
        "start_memory" => integer 3013112
        "stop_time" => float 1485190597.0186
        "stop_memory" => integer 3013712
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0212
        "start_memory" => integer 3048760
        "stop_time" => float 1485190597.0212
        "stop_memory" => integer 3049352
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0216
        "start_memory" => integer 3057048
        "stop_time" => float 1485190597.0217
        "stop_memory" => integer 3057608
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0218
        "start_memory" => integer 3061096
        "stop_time" => float 1485190597.0219
        "stop_memory" => integer 3061688
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0243
        "start_memory" => integer 3079328
        "stop_time" => float 1485190597.0243
        "stop_memory" => integer 3079912
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0257
        "start_memory" => integer 3084512
        "stop_time" => float 1485190597.0257
        "stop_memory" => integer 3085080
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0258
        "start_memory" => integer 3088544
        "stop_time" => float 1485190597.0258
        "stop_memory" => integer 3089136
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0275
        "start_memory" => integer 3183192
        "stop_time" => float 1485190597.0276
        "stop_memory" => integer 3183792
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0277
        "start_memory" => integer 3187344
        "stop_time" => float 1485190597.0277
        "stop_memory" => integer 3187936
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0281
        "start_memory" => integer 3201512
        "stop_time" => float 1485190597.0281
        "stop_memory" => integer 3202104
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0282
        "start_memory" => integer 3205656
        "stop_time" => float 1485190597.0282
        "stop_memory" => integer 3206264
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0293
        "start_memory" => integer 3211296
        "stop_time" => float 1485190597.0293
        "stop_memory" => integer 3211864
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0294
        "start_memory" => integer 3215368
        "stop_time" => float 1485190597.0295
        "stop_memory" => integer 3215968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0304
        "start_memory" => integer 3310768
        "stop_time" => float 1485190597.0304
        "stop_memory" => integer 3311360
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0305
        "start_memory" => integer 3314912
        "stop_time" => float 1485190597.0306
        "stop_memory" => integer 3315520
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0307
        "start_memory" => integer 3327560
        "stop_time" => float 1485190597.0308
        "stop_memory" => integer 3328128
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0308
        "start_memory" => integer 3331632
        "stop_time" => float 1485190597.0309
        "stop_memory" => integer 3332256
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0316
        "start_memory" => integer 3375896
        "stop_time" => float 1485190597.0316
        "stop_memory" => integer 3376472
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0317
        "start_memory" => integer 3379992
        "stop_time" => float 1485190597.0317
        "stop_memory" => integer 3380592
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0324
        "start_memory" => integer 3425224
        "stop_time" => float 1485190597.0324
        "stop_memory" => integer 3425800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0325
        "start_memory" => integer 3429304
        "stop_time" => float 1485190597.0325
        "stop_memory" => integer 3429904
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0332
        "start_memory" => integer 3457216
        "stop_time" => float 1485190597.0333
        "stop_memory" => integer 3457808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0334
        "start_memory" => integer 3461368
        "stop_time" => float 1485190597.0334
        "stop_memory" => integer 3461976
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0341
        "start_memory" => integer 3498192
        "stop_time" => float 1485190597.0342
        "stop_memory" => integer 3498792
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0343
        "start_memory" => integer 3502424
        "stop_time" => float 1485190597.0343
        "stop_memory" => integer 3503040
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0345
        "start_memory" => integer 3515184
        "stop_time" => float 1485190597.0345
        "stop_memory" => integer 3515776
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0346
        "start_memory" => integer 3519400
        "stop_time" => float 1485190597.0346
        "stop_memory" => integer 3520016
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0353
        "start_memory" => integer 3572136
        "stop_time" => float 1485190597.0354
        "stop_memory" => integer 3572728
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0354
        "start_memory" => integer 3576336
        "stop_time" => float 1485190597.0355
        "stop_memory" => integer 3576952
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0362
        "start_memory" => integer 3609544
        "stop_time" => float 1485190597.0362
        "stop_memory" => integer 3610136
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0363
        "start_memory" => integer 3613760
        "stop_time" => float 1485190597.0364
        "stop_memory" => integer 3614376
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.037
        "start_memory" => integer 3643000
        "stop_time" => float 1485190597.0371
        "stop_memory" => integer 3643592
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0372
        "start_memory" => integer 3647200
        "stop_time" => float 1485190597.0372
        "stop_memory" => integer 3647816
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0381
        "start_memory" => integer 3723736
        "stop_time" => float 1485190597.0381
        "stop_memory" => integer 3724328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0382
        "start_memory" => integer 3727936
        "stop_time" => float 1485190597.0383
        "stop_memory" => integer 3728552
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0398
        "start_memory" => integer 3765072
        "stop_time" => float 1485190597.0399
        "stop_memory" => integer 3765648
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.04
        "start_memory" => integer 3769208
        "stop_time" => float 1485190597.04
        "stop_memory" => integer 3769816
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0406
        "start_memory" => integer 3788144
        "stop_time" => float 1485190597.0407
        "stop_memory" => integer 3788680
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0408
        "start_memory" => integer 3792128
        "stop_time" => float 1485190597.0408
        "stop_memory" => integer 3792696
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0417
        "start_memory" => integer 3862280
        "stop_time" => float 1485190597.0417
        "stop_memory" => integer 3862864
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0418
        "start_memory" => integer 3866320
        "stop_time" => float 1485190597.0418
        "stop_memory" => integer 3866896
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0449
        "start_memory" => integer 3881096
        "stop_time" => float 1485190597.045
        "stop_memory" => integer 3881656
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0451
        "start_memory" => integer 3885088
        "stop_time" => float 1485190597.0451
        "stop_memory" => integer 3885672
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0471
        "start_memory" => integer 3907512
        "stop_time" => float 1485190597.0471
        "stop_memory" => integer 3908072
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0472
        "start_memory" => integer 3911496
        "stop_time" => float 1485190597.0473
        "stop_memory" => integer 3912064
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0478
        "start_memory" => integer 3935208
        "stop_time" => float 1485190597.0479
        "stop_memory" => integer 3935776
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.048
        "start_memory" => integer 3939208
        "stop_time" => float 1485190597.048
        "stop_memory" => integer 3939776
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0485
        "start_memory" => integer 3965728
        "stop_time" => float 1485190597.0486
        "stop_memory" => integer 3966296
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0487
        "start_memory" => integer 3969720
        "stop_time" => float 1485190597.0487
        "stop_memory" => integer 3971312
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0497
        "start_memory" => integer 4018432
        "stop_time" => float 1485190597.0497
        "stop_memory" => integer 4019000
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0498
        "start_memory" => integer 4022440
        "stop_time" => float 1485190597.0499
        "stop_memory" => integer 4023024
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0514
        "start_memory" => integer 4037568
        "stop_time" => float 1485190597.0514
        "stop_memory" => integer 4038128
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0515
        "start_memory" => integer 4041576
        "stop_time" => float 1485190597.0516
        "stop_memory" => integer 4042144
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0525
        "start_memory" => integer 4058776
        "stop_time" => float 1485190597.0526
        "stop_memory" => integer 4059360
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0527
        "start_memory" => integer 4062840
        "stop_time" => float 1485190597.0527
        "stop_memory" => integer 4063432
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0533
        "start_memory" => integer 4079896
        "stop_time" => float 1485190597.0533
        "stop_memory" => integer 4080464
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0534
        "start_memory" => integer 4083968
        "stop_time" => float 1485190597.0535
        "stop_memory" => integer 4084560
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0539
        "start_memory" => integer 4098144
        "stop_time" => float 1485190597.054
        "stop_memory" => integer 4098712
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0541
        "start_memory" => integer 4102216
        "stop_time" => float 1485190597.0541
        "stop_memory" => integer 4102808
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0546
        "start_memory" => integer 4116408
        "stop_time" => float 1485190597.0547
        "stop_memory" => integer 4116976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0547
        "start_memory" => integer 4120480
        "stop_time" => float 1485190597.0548
        "stop_memory" => integer 4121072
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0553
        "start_memory" => integer 4134672
        "stop_time" => float 1485190597.0553
        "stop_memory" => integer 4135240
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0554
        "start_memory" => integer 4138744
        "stop_time" => float 1485190597.0555
        "stop_memory" => integer 4139336
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0559
        "start_memory" => integer 4152920
        "stop_time" => float 1485190597.056
        "stop_memory" => integer 4153488
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0561
        "start_memory" => integer 4156992
        "stop_time" => float 1485190597.0561
        "stop_memory" => integer 4157584
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0566
        "start_memory" => integer 4171168
        "stop_time" => float 1485190597.0567
        "stop_memory" => integer 4171736
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0567
        "start_memory" => integer 4175240
        "stop_time" => float 1485190597.0568
        "stop_memory" => integer 4175832
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0573
        "start_memory" => integer 4189432
        "stop_time" => float 1485190597.0573
        "stop_memory" => integer 4190000
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0574
        "start_memory" => integer 4193504
        "stop_time" => float 1485190597.0575
        "stop_memory" => integer 4194096
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0579
        "start_memory" => integer 4207680
        "stop_time" => float 1485190597.058
        "stop_memory" => integer 4208248
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.058
        "start_memory" => integer 4211752
        "stop_time" => float 1485190597.0581
        "stop_memory" => integer 4212344
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0586
        "start_memory" => integer 4226024
        "stop_time" => float 1485190597.0586
        "stop_memory" => integer 4226592
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0587
        "start_memory" => integer 4230096
        "stop_time" => float 1485190597.0588
        "stop_memory" => integer 4230688
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0592
        "start_memory" => integer 4244272
        "stop_time" => float 1485190597.0593
        "stop_memory" => integer 4244840
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0593
        "start_memory" => integer 4248344
        "stop_time" => float 1485190597.0594
        "stop_memory" => integer 4248936
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0598
        "start_memory" => integer 4262520
        "stop_time" => float 1485190597.0599
        "stop_memory" => integer 4263088
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.06
        "start_memory" => integer 4266592
        "stop_time" => float 1485190597.06
        "stop_memory" => integer 4267184
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0605
        "start_memory" => integer 4280752
        "stop_time" => float 1485190597.0606
        "stop_memory" => integer 4281320
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0606
        "start_memory" => integer 4284824
        "stop_time" => float 1485190597.0607
        "stop_memory" => integer 4285416
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0612
        "start_memory" => integer 4299000
        "stop_time" => float 1485190597.0612
        "stop_memory" => integer 4299568
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0613
        "start_memory" => integer 4303072
        "stop_time" => float 1485190597.0614
        "stop_memory" => integer 4303664
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0618
        "start_memory" => integer 4317264
        "stop_time" => float 1485190597.0619
        "stop_memory" => integer 4317832
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.062
        "start_memory" => integer 4321336
        "stop_time" => float 1485190597.062
        "stop_memory" => integer 4321928
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0625
        "start_memory" => integer 4335544
        "stop_time" => float 1485190597.0625
        "stop_memory" => integer 4336112
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0626
        "start_memory" => integer 4339616
        "stop_time" => float 1485190597.0627
        "stop_memory" => integer 4340208
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0631
        "start_memory" => integer 4353808
        "stop_time" => float 1485190597.0632
        "stop_memory" => integer 4354376
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0633
        "start_memory" => integer 4357880
        "stop_time" => float 1485190597.0633
        "stop_memory" => integer 4358472
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0638
        "start_memory" => integer 4372200
        "stop_time" => float 1485190597.0638
        "stop_memory" => integer 4372768
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0639
        "start_memory" => integer 4376272
        "stop_time" => float 1485190597.064
        "stop_memory" => integer 4376864
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0645
        "start_memory" => integer 4390480
        "stop_time" => float 1485190597.0645
        "stop_memory" => integer 4391048
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0646
        "start_memory" => integer 4394552
        "stop_time" => float 1485190597.0647
        "stop_memory" => integer 4395144
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0651
        "start_memory" => integer 4408744
        "stop_time" => float 1485190597.0652
        "stop_memory" => integer 4409312
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0653
        "start_memory" => integer 4412816
        "stop_time" => float 1485190597.0653
        "stop_memory" => integer 4413408
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0658
        "start_memory" => integer 4427008
        "stop_time" => float 1485190597.0658
        "stop_memory" => integer 4427576
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0659
        "start_memory" => integer 4431080
        "stop_time" => float 1485190597.066
        "stop_memory" => integer 4431672
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0664
        "start_memory" => integer 4445256
        "stop_time" => float 1485190597.0665
        "stop_memory" => integer 4445824
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0666
        "start_memory" => integer 4449328
        "stop_time" => float 1485190597.0666
        "stop_memory" => integer 4449920
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0671
        "start_memory" => integer 4463504
        "stop_time" => float 1485190597.0671
        "stop_memory" => integer 4464072
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0672
        "start_memory" => integer 4467576
        "stop_time" => float 1485190597.0673
        "stop_memory" => integer 4468168
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0677
        "start_memory" => integer 4481768
        "stop_time" => float 1485190597.0678
        "stop_memory" => integer 4482336
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0679
        "start_memory" => integer 4485840
        "stop_time" => float 1485190597.0679
        "stop_memory" => integer 4486432
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0684
        "start_memory" => integer 4500016
        "stop_time" => float 1485190597.0685
        "stop_memory" => integer 4500584
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0685
        "start_memory" => integer 4504088
        "stop_time" => float 1485190597.0686
        "stop_memory" => integer 4504680
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0697
        "start_memory" => integer 4518504
        "stop_time" => float 1485190597.0698
        "stop_memory" => integer 4519072
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0698
        "start_memory" => integer 4522576
        "stop_time" => float 1485190597.0699
        "stop_memory" => integer 4523168
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0718
        "start_memory" => integer 4546096
        "stop_time" => float 1485190597.0719
        "stop_memory" => integer 4546664
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0719
        "start_memory" => integer 4550128
        "stop_time" => float 1485190597.072
        "stop_memory" => integer 4550704
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.073
        "start_memory" => integer 4631888
        "stop_time" => float 1485190597.073
        "stop_memory" => integer 4632464
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0731
        "start_memory" => integer 4635928
        "stop_time" => float 1485190597.0731
        "stop_memory" => integer 4636520
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0743
        "start_memory" => integer 4737640
        "stop_time" => float 1485190597.0743
        "stop_memory" => integer 4738192
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0744
        "start_memory" => integer 4741672
        "stop_time" => float 1485190597.0745
        "stop_memory" => integer 4742256
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0762
        "start_memory" => integer 4775224
        "stop_time" => float 1485190597.0762
        "stop_memory" => integer 4775816
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0763
        "start_memory" => integer 4779336
        "stop_time" => float 1485190597.0764
        "stop_memory" => integer 4779936
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0769
        "start_memory" => integer 4805504
        "stop_time" => float 1485190597.077
        "stop_memory" => integer 4806096
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0771
        "start_memory" => integer 4809672
        "stop_time" => float 1485190597.0771
        "stop_memory" => integer 4810280
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0781
        "start_memory" => integer 4828984
        "stop_time" => float 1485190597.0781
        "stop_memory" => integer 4829552
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0782
        "start_memory" => integer 4833080
        "stop_time" => float 1485190597.0782
        "stop_memory" => integer 4833680
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0796
        "start_memory" => integer 4852296
        "stop_time" => float 1485190597.0796
        "stop_memory" => integer 4852888
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.082
        "start_memory" => integer 4862632
        "stop_time" => float 1485190597.0821
        "stop_memory" => integer 4863208
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0822
        "start_memory" => integer 4871808
        "stop_time" => float 1485190597.0823
        "stop_memory" => integer 4872392
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0833
        "start_memory" => integer 4881768
        "stop_time" => float 1485190597.0834
        "stop_memory" => integer 4882320
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0835
        "start_memory" => integer 4885776
        "stop_time" => float 1485190597.0835
        "stop_memory" => integer 4886360
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.084
        "start_memory" => integer 4890400
        "stop_time" => float 1485190597.084
        "stop_memory" => integer 4890960
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0841
        "start_memory" => integer 4894544
        "stop_time" => float 1485190597.0842
        "stop_memory" => integer 4895144
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0846
        "start_memory" => integer 4899040
        "stop_time" => float 1485190597.0846
        "stop_memory" => integer 4899600
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0847
        "start_memory" => integer 4903136
        "stop_time" => float 1485190597.0848
        "stop_memory" => integer 4903712
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0856
        "start_memory" => integer 4912704
        "stop_time" => float 1485190597.0856
        "stop_memory" => integer 4913296
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0857
        "start_memory" => integer 4916824
        "stop_time" => float 1485190597.0858
        "stop_memory" => integer 4917400
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0862
        "start_memory" => integer 4919536
        "stop_time" => float 1485190597.0862
        "stop_memory" => integer 4920168
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0863
        "start_memory" => integer 4926968
        "stop_time" => float 1485190597.0864
        "stop_memory" => integer 4927520
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0865
        "start_memory" => integer 4930960
        "stop_time" => float 1485190597.0865
        "stop_memory" => integer 4931544
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0882
        "start_memory" => integer 5163080
        "stop_time" => float 1485190597.0883
        "stop_memory" => integer 5163672
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0888
        "start_memory" => integer 5220440
        "stop_time" => float 1485190597.0889
        "stop_memory" => integer 5221024
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0893
        "start_memory" => integer 5255448
        "stop_time" => float 1485190597.0894
        "stop_memory" => integer 5256032
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0895
        "start_memory" => integer 5259584
        "stop_time" => float 1485190597.0895
        "stop_memory" => integer 5260184
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0899
        "start_memory" => integer 5266192
        "stop_time" => float 1485190597.09
        "stop_memory" => integer 5266752
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0903
        "start_memory" => integer 5292856
        "stop_time" => float 1485190597.0904
        "stop_memory" => integer 5293432
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0908
        "start_memory" => integer 5322392
        "stop_time" => float 1485190597.0908
        "stop_memory" => integer 5322984
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0912
        "start_memory" => integer 5349696
        "stop_time" => float 1485190597.0913
        "stop_memory" => integer 5350232
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0913
        "start_memory" => integer 5353736
        "stop_time" => float 1485190597.0914
        "stop_memory" => integer 5354336
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.093
        "start_memory" => integer 5381464
        "stop_time" => float 1485190597.0931
        "stop_memory" => integer 5382088
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0932
        "start_memory" => integer 5385888
        "stop_time" => float 1485190597.0932
        "stop_memory" => integer 5386512
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0952
        "start_memory" => integer 5418328
        "stop_time" => float 1485190597.0952
        "stop_memory" => integer 5418904
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0953
        "start_memory" => integer 5422488
        "stop_time" => float 1485190597.0954
        "stop_memory" => integer 5423096
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0986
        "start_memory" => integer 5487816
        "stop_time" => float 1485190597.0987
        "stop_memory" => integer 5488368
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0987
        "start_memory" => integer 5491912
        "stop_time" => float 1485190597.0988
        "stop_memory" => integer 5492504
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0992
        "start_memory" => integer 5502624
        "stop_time" => float 1485190597.0993
        "stop_memory" => integer 5503176
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.0994
        "start_memory" => integer 5506696
        "stop_time" => float 1485190597.0994
        "stop_memory" => integer 5507296
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1001
        "start_memory" => integer 5551832
        "stop_time" => float 1485190597.1001
        "stop_memory" => integer 5552464
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1002
        "start_memory" => integer 5555968
        "stop_time" => float 1485190597.1003
        "stop_memory" => integer 5556536
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1007
        "start_memory" => integer 5576912
        "stop_time" => float 1485190597.1007
        "stop_memory" => integer 5577528
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1008
        "start_memory" => integer 5581048
        "stop_time" => float 1485190597.1009
        "stop_memory" => integer 5581648
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1018
        "start_memory" => integer 5630336
        "stop_time" => float 1485190597.1019
        "stop_memory" => integer 5630896
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.102
        "start_memory" => integer 5634464
        "stop_time" => float 1485190597.102
        "stop_memory" => integer 5635056
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1025
        "start_memory" => integer 5657352
        "stop_time" => float 1485190597.1025
        "stop_memory" => integer 5657928
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1026
        "start_memory" => integer 5661424
        "stop_time" => float 1485190597.1027
        "stop_memory" => integer 5661984
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1036
        "start_memory" => integer 5734584
        "stop_time" => float 1485190597.1036
        "stop_memory" => integer 5735160
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1037
        "start_memory" => integer 5738608
        "stop_time" => float 1485190597.1038
        "stop_memory" => integer 5739192
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1075
        "start_memory" => integer 5758368
        "stop_time" => float 1485190597.1076
        "stop_memory" => integer 5758928
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1077
        "start_memory" => integer 5762424
        "stop_time" => float 1485190597.1077
        "stop_memory" => integer 5763064
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1084
        "start_memory" => integer 5822560
        "stop_time" => float 1485190597.1085
        "stop_memory" => integer 5823128
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1086
        "start_memory" => integer 5826640
        "stop_time" => float 1485190597.1086
        "stop_memory" => integer 5827240
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1094
        "start_memory" => integer 5896424
        "stop_time" => float 1485190597.1095
        "stop_memory" => integer 5897064
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1096
        "start_memory" => integer 5900608
        "stop_time" => float 1485190597.1097
        "stop_memory" => integer 5901192
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1104
        "start_memory" => integer 5919240
        "stop_time" => float 1485190597.1104
        "stop_memory" => integer 5919848
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1107
        "start_memory" => integer 5885760
        "stop_time" => float 1485190597.1108
        "stop_memory" => integer 5888080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1112
        "start_memory" => integer 5924272
        "stop_time" => float 1485190597.1113
        "stop_memory" => integer 5925936
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1485190597.1113
        "start_memory" => integer 5925568
        "stop_time" => float 1485190597.1114
        "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'],
	);
}