Modules

Profiler
extends 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/profiler.php on line 3.

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(20) ""guide/api/Profiler""
        "start_time" => float 1438718075.6038
        "start_memory" => integer 1116232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6039
        "start_memory" => integer 1118488
        "stop_time" => float 1438718075.6039
        "stop_memory" => integer 1119176
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.604
        "start_memory" => integer 1122720
        "stop_time" => float 1438718075.604
        "stop_memory" => integer 1123328
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6046
        "start_memory" => integer 1199792
        "stop_time" => float 1438718075.6047
        "stop_memory" => integer 1200344
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6047
        "start_memory" => integer 1203848
        "stop_time" => float 1438718075.6048
        "stop_memory" => integer 1204440
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6049
        "start_memory" => integer 1212408
        "stop_time" => float 1438718075.6049
        "stop_memory" => integer 1212960
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.605
        "start_memory" => integer 1216424
        "stop_time" => float 1438718075.605
        "stop_memory" => integer 1217008
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6051
        "start_memory" => integer 1225864
        "stop_time" => float 1438718075.6052
        "stop_memory" => integer 1226424
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6053
        "start_memory" => integer 1229864
        "stop_time" => float 1438718075.6053
        "stop_memory" => integer 1230520
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.606
        "start_memory" => integer 1325368
        "stop_time" => float 1438718075.6061
        "stop_memory" => integer 1325968
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6061
        "start_memory" => integer 1329448
        "stop_time" => float 1438718075.6062
        "stop_memory" => integer 1330040
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6063
        "start_memory" => integer 1341824
        "stop_time" => float 1438718075.6064
        "stop_memory" => integer 1342376
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6064
        "start_memory" => integer 1345800
        "stop_time" => float 1438718075.6065
        "stop_memory" => integer 1346368
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6067
        "start_memory" => integer 1380760
        "stop_time" => float 1438718075.6068
        "stop_memory" => integer 1381360
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6068
        "start_memory" => integer 1382432
        "stop_time" => float 1438718075.6068
        "stop_memory" => integer 1382968
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6069
        "start_memory" => integer 1386376
        "stop_time" => float 1438718075.607
        "stop_memory" => integer 1386952
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6072
        "start_memory" => integer 1406200
        "stop_time" => float 1438718075.6072
        "stop_memory" => integer 1406904
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6073
        "start_memory" => integer 1410328
        "stop_time" => float 1438718075.6074
        "stop_memory" => integer 1410896
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6079
        "start_memory" => integer 1506504
        "stop_time" => float 1438718075.608
        "stop_memory" => integer 1507104
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.608
        "start_memory" => integer 1510608
        "stop_time" => float 1438718075.6081
        "stop_memory" => integer 1511208
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6084
        "start_memory" => integer 1550488
        "stop_time" => float 1438718075.6084
        "stop_memory" => integer 1550992
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6085
        "start_memory" => integer 1551632
        "stop_time" => float 1438718075.6085
        "stop_memory" => integer 1552208
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6117
        "start_memory" => integer 1951384
        "stop_time" => float 1438718075.6117
        "stop_memory" => integer 1951968
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6118
        "start_memory" => integer 1955472
        "stop_time" => float 1438718075.6118
        "stop_memory" => integer 1956072
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6119
        "start_memory" => integer 1957704
        "stop_time" => float 1438718075.612
        "stop_memory" => integer 1958304
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6121
        "start_memory" => integer 1961816
        "stop_time" => float 1438718075.6121
        "stop_memory" => integer 1962392
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6124
        "start_memory" => integer 1992040
        "stop_time" => float 1438718075.6124
        "stop_memory" => integer 1992600
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6125
        "start_memory" => integer 1996104
        "stop_time" => float 1438718075.6125
        "stop_memory" => integer 1996704
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.613
        "start_memory" => integer 2059016
        "stop_time" => float 1438718075.6131
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6132
        "start_memory" => integer 2063000
        "stop_time" => float 1438718075.6132
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6141
        "start_memory" => integer 2122480
        "stop_time" => float 1438718075.6142
        "stop_memory" => integer 2123096
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.672
        "start_memory" => integer 2163992
        "stop_time" => float 1438718075.672
        "stop_memory" => integer 2164544
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6721
        "start_memory" => integer 2167968
        "stop_time" => float 1438718075.6722
        "stop_memory" => integer 2168808
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6727
        "start_memory" => integer 2195056
        "stop_time" => float 1438718075.6728
        "stop_memory" => integer 2195632
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6728
        "start_memory" => integer 2199112
        "stop_time" => float 1438718075.6729
        "stop_memory" => integer 2199704
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6733
        "start_memory" => integer 2217000
        "stop_time" => float 1438718075.6734
        "stop_memory" => integer 2217568
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6734
        "start_memory" => integer 2221032
        "stop_time" => float 1438718075.6735
        "stop_memory" => integer 2221624
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6741
        "start_memory" => integer 2265080
        "stop_time" => float 1438718075.6741
        "stop_memory" => integer 2265680
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6742
        "start_memory" => integer 2277216
        "stop_time" => float 1438718075.6742
        "stop_memory" => integer 2277792
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6743
        "start_memory" => integer 2281312
        "stop_time" => float 1438718075.6743
        "stop_memory" => integer 2281896
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6747
        "start_memory" => integer 2319896
        "stop_time" => float 1438718075.6748
        "stop_memory" => integer 2320496
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.675
        "start_memory" => integer 2332616
        "stop_time" => float 1438718075.675
        "stop_memory" => integer 2333192
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6753
        "start_memory" => integer 2360208
        "stop_time" => float 1438718075.6754
        "stop_memory" => integer 2360808
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6755
        "start_memory" => integer 2368624
        "stop_time" => float 1438718075.6756
        "stop_memory" => integer 2369200
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6758
        "start_memory" => integer 2382352
        "stop_time" => float 1438718075.6758
        "stop_memory" => integer 2382952
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.676
        "start_memory" => integer 2389968
        "stop_time" => float 1438718075.676
        "stop_memory" => integer 2390560
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6762
        "start_memory" => integer 2403864
        "stop_time" => float 1438718075.6762
        "stop_memory" => integer 2404456
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6764
        "start_memory" => integer 2418088
        "stop_time" => float 1438718075.6765
        "stop_memory" => integer 2418680
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6766
        "start_memory" => integer 2428160
        "stop_time" => float 1438718075.6767
        "stop_memory" => integer 2428752
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6768
        "start_memory" => integer 2437424
        "stop_time" => float 1438718075.6769
        "stop_memory" => integer 2438016
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6771
        "start_memory" => integer 2483352
        "stop_time" => float 1438718075.6771
        "stop_memory" => integer 2483928
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6774
        "start_memory" => integer 2506856
        "stop_time" => float 1438718075.6774
        "stop_memory" => integer 2507456
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6776
        "start_memory" => integer 2520752
        "stop_time" => float 1438718075.6777
        "stop_memory" => integer 2521328
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6779
        "start_memory" => integer 2540528
        "stop_time" => float 1438718075.6779
        "stop_memory" => integer 2541112
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6781
        "start_memory" => integer 2554768
        "stop_time" => float 1438718075.6781
        "stop_memory" => integer 2555336
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6782
        "start_memory" => integer 2558792
        "stop_time" => float 1438718075.6782
        "stop_memory" => integer 2559376
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6784
        "start_memory" => integer 2581576
        "stop_time" => float 1438718075.6784
        "stop_memory" => integer 2582136
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6785
        "start_memory" => integer 2585568
        "stop_time" => float 1438718075.6786
        "stop_memory" => integer 2586152
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6803
        "start_memory" => integer 2680064
        "stop_time" => float 1438718075.6803
        "stop_memory" => integer 2680640
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6853
        "start_memory" => integer 2711216
        "stop_time" => float 1438718075.6853
        "stop_memory" => integer 2711792
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6854
        "start_memory" => integer 2715296
        "stop_time" => float 1438718075.6854
        "stop_memory" => integer 2715888
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6882
        "start_memory" => integer 2735000
        "stop_time" => float 1438718075.6882
        "stop_memory" => integer 2735584
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6883
        "start_memory" => integer 2739112
        "stop_time" => float 1438718075.6883
        "stop_memory" => integer 2739712
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6912
        "start_memory" => integer 2758904
        "stop_time" => float 1438718075.6913
        "stop_memory" => integer 2759464
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6913
        "start_memory" => integer 2762944
        "stop_time" => float 1438718075.6914
        "stop_memory" => integer 2764048
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6918
        "start_memory" => integer 2818600
        "stop_time" => float 1438718075.6918
        "stop_memory" => integer 2819200
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.695
        "start_memory" => integer 2826512
        "stop_time" => float 1438718075.695
        "stop_memory" => integer 2827088
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.6951
        "start_memory" => integer 2830592
        "stop_time" => float 1438718075.6951
        "stop_memory" => integer 2831192
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7046
        "start_memory" => integer 2870856
        "stop_time" => float 1438718075.7046
        "stop_memory" => integer 2871432
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7047
        "start_memory" => integer 2874960
        "stop_time" => float 1438718075.7047
        "stop_memory" => integer 2875560
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7049
        "start_memory" => integer 2891528
        "stop_time" => float 1438718075.7049
        "stop_memory" => integer 2892104
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7053
        "start_memory" => integer 2899424
        "stop_time" => float 1438718075.7053
        "stop_memory" => integer 2899992
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7054
        "start_memory" => integer 2903464
        "stop_time" => float 1438718075.7054
        "stop_memory" => integer 2904056
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7061
        "start_memory" => integer 2953496
        "stop_time" => float 1438718075.7062
        "stop_memory" => integer 2954080
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7062
        "start_memory" => integer 2957584
        "stop_time" => float 1438718075.7063
        "stop_memory" => integer 2958184
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7097
        "start_memory" => integer 2977584
        "stop_time" => float 1438718075.7097
        "stop_memory" => integer 2978144
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7098
        "start_memory" => integer 2981640
        "stop_time" => float 1438718075.7098
        "stop_memory" => integer 2982232
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7103
        "start_memory" => integer 2997384
        "stop_time" => float 1438718075.7104
        "stop_memory" => integer 2997920
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7104
        "start_memory" => integer 3001328
        "stop_time" => float 1438718075.7105
        "stop_memory" => integer 3001904
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7115
        "start_memory" => integer 3008576
        "stop_time" => float 1438718075.7116
        "stop_memory" => integer 3009176
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7117
        "start_memory" => integer 3012688
        "stop_time" => float 1438718075.7117
        "stop_memory" => integer 3013288
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7141
        "start_memory" => integer 3048336
        "stop_time" => float 1438718075.7141
        "stop_memory" => integer 3048928
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7145
        "start_memory" => integer 3056624
        "stop_time" => float 1438718075.7145
        "stop_memory" => integer 3057184
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7146
        "start_memory" => integer 3060672
        "stop_time" => float 1438718075.7147
        "stop_memory" => integer 3061264
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7169
        "start_memory" => integer 3078904
        "stop_time" => float 1438718075.717
        "stop_memory" => integer 3079488
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7182
        "start_memory" => integer 3084088
        "stop_time" => float 1438718075.7183
        "stop_memory" => integer 3084656
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7183
        "start_memory" => integer 3088120
        "stop_time" => float 1438718075.7184
        "stop_memory" => integer 3088712
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7199
        "start_memory" => integer 3182744
        "stop_time" => float 1438718075.72
        "stop_memory" => integer 3183344
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.72
        "start_memory" => integer 3186896
        "stop_time" => float 1438718075.7201
        "stop_memory" => integer 3187488
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7204
        "start_memory" => integer 3200376
        "stop_time" => float 1438718075.7205
        "stop_memory" => integer 3200968
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7205
        "start_memory" => integer 3204520
        "stop_time" => float 1438718075.7206
        "stop_memory" => integer 3205128
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7215
        "start_memory" => integer 3210160
        "stop_time" => float 1438718075.7216
        "stop_memory" => integer 3210728
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7217
        "start_memory" => integer 3214232
        "stop_time" => float 1438718075.7217
        "stop_memory" => integer 3214832
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7226
        "start_memory" => integer 3309624
        "stop_time" => float 1438718075.7226
        "stop_memory" => integer 3310216
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7227
        "start_memory" => integer 3313768
        "stop_time" => float 1438718075.7227
        "stop_memory" => integer 3314376
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7229
        "start_memory" => integer 3326416
        "stop_time" => float 1438718075.7229
        "stop_memory" => integer 3326984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.723
        "start_memory" => integer 3330488
        "stop_time" => float 1438718075.723
        "stop_memory" => integer 3331112
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7237
        "start_memory" => integer 3374752
        "stop_time" => float 1438718075.7238
        "stop_memory" => integer 3375328
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7238
        "start_memory" => integer 3378848
        "stop_time" => float 1438718075.7239
        "stop_memory" => integer 3379448
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7244
        "start_memory" => integer 3424080
        "stop_time" => float 1438718075.7245
        "stop_memory" => integer 3424656
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7246
        "start_memory" => integer 3428160
        "stop_time" => float 1438718075.7246
        "stop_memory" => integer 3428760
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7253
        "start_memory" => integer 3456072
        "stop_time" => float 1438718075.7253
        "stop_memory" => integer 3456664
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7254
        "start_memory" => integer 3460224
        "stop_time" => float 1438718075.7254
        "stop_memory" => integer 3460832
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7261
        "start_memory" => integer 3497088
        "stop_time" => float 1438718075.7261
        "stop_memory" => integer 3497688
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7262
        "start_memory" => integer 3501320
        "stop_time" => float 1438718075.7263
        "stop_memory" => integer 3501936
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7264
        "start_memory" => integer 3514080
        "stop_time" => float 1438718075.7264
        "stop_memory" => integer 3514672
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7265
        "start_memory" => integer 3518296
        "stop_time" => float 1438718075.7265
        "stop_memory" => integer 3518912
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7272
        "start_memory" => integer 3571032
        "stop_time" => float 1438718075.7272
        "stop_memory" => integer 3571624
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7273
        "start_memory" => integer 3575232
        "stop_time" => float 1438718075.7273
        "stop_memory" => integer 3575848
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.728
        "start_memory" => integer 3608440
        "stop_time" => float 1438718075.7281
        "stop_memory" => integer 3609032
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7281
        "start_memory" => integer 3612656
        "stop_time" => float 1438718075.7282
        "stop_memory" => integer 3613272
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7288
        "start_memory" => integer 3641896
        "stop_time" => float 1438718075.7289
        "stop_memory" => integer 3642488
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.729
        "start_memory" => integer 3646096
        "stop_time" => float 1438718075.729
        "stop_memory" => integer 3646712
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7299
        "start_memory" => integer 3722632
        "stop_time" => float 1438718075.7299
        "stop_memory" => integer 3723224
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.73
        "start_memory" => integer 3726832
        "stop_time" => float 1438718075.73
        "stop_memory" => integer 3727448
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7315
        "start_memory" => integer 3763920
        "stop_time" => float 1438718075.7315
        "stop_memory" => integer 3764496
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7316
        "start_memory" => integer 3768056
        "stop_time" => float 1438718075.7317
        "stop_memory" => integer 3768664
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7323
        "start_memory" => integer 3786992
        "stop_time" => float 1438718075.7323
        "stop_memory" => integer 3787528
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7324
        "start_memory" => integer 3790976
        "stop_time" => float 1438718075.7325
        "stop_memory" => integer 3791544
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7333
        "start_memory" => integer 3861104
        "stop_time" => float 1438718075.7333
        "stop_memory" => integer 3861688
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7334
        "start_memory" => integer 3865144
        "stop_time" => float 1438718075.7334
        "stop_memory" => integer 3865720
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7364
        "start_memory" => integer 3879920
        "stop_time" => float 1438718075.7364
        "stop_memory" => integer 3880480
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7365
        "start_memory" => integer 3883912
        "stop_time" => float 1438718075.7365
        "stop_memory" => integer 3884496
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7384
        "start_memory" => integer 3906336
        "stop_time" => float 1438718075.7384
        "stop_memory" => integer 3906896
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7385
        "start_memory" => integer 3910320
        "stop_time" => float 1438718075.7385
        "stop_memory" => integer 3910888
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7391
        "start_memory" => integer 3934032
        "stop_time" => float 1438718075.7391
        "stop_memory" => integer 3934600
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7392
        "start_memory" => integer 3938032
        "stop_time" => float 1438718075.7392
        "stop_memory" => integer 3938600
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7397
        "start_memory" => integer 3964536
        "stop_time" => float 1438718075.7398
        "stop_memory" => integer 3965104
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7399
        "start_memory" => integer 3968528
        "stop_time" => float 1438718075.7399
        "stop_memory" => integer 3970120
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7408
        "start_memory" => integer 4017232
        "stop_time" => float 1438718075.7409
        "stop_memory" => integer 4017800
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.741
        "start_memory" => integer 4021240
        "stop_time" => float 1438718075.741
        "stop_memory" => integer 4021824
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7425
        "start_memory" => integer 4036368
        "stop_time" => float 1438718075.7425
        "stop_memory" => integer 4036928
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7426
        "start_memory" => integer 4040376
        "stop_time" => float 1438718075.7426
        "stop_memory" => integer 4040944
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7436
        "start_memory" => integer 4057568
        "stop_time" => float 1438718075.7436
        "stop_memory" => integer 4058152
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7437
        "start_memory" => integer 4061632
        "stop_time" => float 1438718075.7437
        "stop_memory" => integer 4062224
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7442
        "start_memory" => integer 4078000
        "stop_time" => float 1438718075.7443
        "stop_memory" => integer 4078568
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7443
        "start_memory" => integer 4082072
        "stop_time" => float 1438718075.7444
        "stop_memory" => integer 4082664
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7448
        "start_memory" => integer 4095560
        "stop_time" => float 1438718075.7449
        "stop_memory" => integer 4096128
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7449
        "start_memory" => integer 4099632
        "stop_time" => float 1438718075.745
        "stop_memory" => integer 4100224
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7454
        "start_memory" => integer 4113136
        "stop_time" => float 1438718075.7455
        "stop_memory" => integer 4113704
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7455
        "start_memory" => integer 4117208
        "stop_time" => float 1438718075.7456
        "stop_memory" => integer 4117800
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.746
        "start_memory" => integer 4130712
        "stop_time" => float 1438718075.746
        "stop_memory" => integer 4131280
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7461
        "start_memory" => integer 4134784
        "stop_time" => float 1438718075.7462
        "stop_memory" => integer 4135376
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7466
        "start_memory" => integer 4148272
        "stop_time" => float 1438718075.7466
        "stop_memory" => integer 4148840
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7467
        "start_memory" => integer 4152344
        "stop_time" => float 1438718075.7468
        "stop_memory" => integer 4152936
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7472
        "start_memory" => integer 4165832
        "stop_time" => float 1438718075.7472
        "stop_memory" => integer 4166400
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7473
        "start_memory" => integer 4169904
        "stop_time" => float 1438718075.7473
        "stop_memory" => integer 4170496
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7478
        "start_memory" => integer 4183408
        "stop_time" => float 1438718075.7478
        "stop_memory" => integer 4183976
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7479
        "start_memory" => integer 4187480
        "stop_time" => float 1438718075.7479
        "stop_memory" => integer 4188072
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7484
        "start_memory" => integer 4200968
        "stop_time" => float 1438718075.7484
        "stop_memory" => integer 4201536
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7485
        "start_memory" => integer 4205040
        "stop_time" => float 1438718075.7485
        "stop_memory" => integer 4205632
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.749
        "start_memory" => integer 4218624
        "stop_time" => float 1438718075.749
        "stop_memory" => integer 4219192
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7491
        "start_memory" => integer 4222696
        "stop_time" => float 1438718075.7491
        "stop_memory" => integer 4223288
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7495
        "start_memory" => integer 4236184
        "stop_time" => float 1438718075.7496
        "stop_memory" => integer 4236752
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7497
        "start_memory" => integer 4240256
        "stop_time" => float 1438718075.7497
        "stop_memory" => integer 4240848
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7502
        "start_memory" => integer 4253744
        "stop_time" => float 1438718075.7503
        "stop_memory" => integer 4254312
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7503
        "start_memory" => integer 4257816
        "stop_time" => float 1438718075.7504
        "stop_memory" => integer 4258408
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7508
        "start_memory" => integer 4271288
        "stop_time" => float 1438718075.7509
        "stop_memory" => integer 4271856
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.751
        "start_memory" => integer 4275360
        "stop_time" => float 1438718075.751
        "stop_memory" => integer 4275952
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7514
        "start_memory" => integer 4288848
        "stop_time" => float 1438718075.7515
        "stop_memory" => integer 4289416
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7516
        "start_memory" => integer 4292920
        "stop_time" => float 1438718075.7516
        "stop_memory" => integer 4293512
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7521
        "start_memory" => integer 4306424
        "stop_time" => float 1438718075.7521
        "stop_memory" => integer 4306992
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7522
        "start_memory" => integer 4310496
        "stop_time" => float 1438718075.7522
        "stop_memory" => integer 4311088
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7527
        "start_memory" => integer 4324016
        "stop_time" => float 1438718075.7527
        "stop_memory" => integer 4324584
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7528
        "start_memory" => integer 4328088
        "stop_time" => float 1438718075.7528
        "stop_memory" => integer 4328680
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7532
        "start_memory" => integer 4341592
        "stop_time" => float 1438718075.7533
        "stop_memory" => integer 4342160
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7533
        "start_memory" => integer 4345664
        "stop_time" => float 1438718075.7534
        "stop_memory" => integer 4346256
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7538
        "start_memory" => integer 4359296
        "stop_time" => float 1438718075.7539
        "stop_memory" => integer 4359864
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7539
        "start_memory" => integer 4363368
        "stop_time" => float 1438718075.754
        "stop_memory" => integer 4363960
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7544
        "start_memory" => integer 4376888
        "stop_time" => float 1438718075.7545
        "stop_memory" => integer 4377456
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7545
        "start_memory" => integer 4380960
        "stop_time" => float 1438718075.7546
        "stop_memory" => integer 4381552
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.755
        "start_memory" => integer 4394464
        "stop_time" => float 1438718075.7551
        "stop_memory" => integer 4395032
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7551
        "start_memory" => integer 4398536
        "stop_time" => float 1438718075.7552
        "stop_memory" => integer 4399128
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7556
        "start_memory" => integer 4412040
        "stop_time" => float 1438718075.7557
        "stop_memory" => integer 4412608
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7557
        "start_memory" => integer 4416112
        "stop_time" => float 1438718075.7558
        "stop_memory" => integer 4416704
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7562
        "start_memory" => integer 4429600
        "stop_time" => float 1438718075.7562
        "stop_memory" => integer 4430168
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7563
        "start_memory" => integer 4433672
        "stop_time" => float 1438718075.7564
        "stop_memory" => integer 4434264
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7568
        "start_memory" => integer 4447160
        "stop_time" => float 1438718075.7568
        "stop_memory" => integer 4447728
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7569
        "start_memory" => integer 4451232
        "stop_time" => float 1438718075.7569
        "stop_memory" => integer 4451824
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7574
        "start_memory" => integer 4464736
        "stop_time" => float 1438718075.7574
        "stop_memory" => integer 4465304
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7575
        "start_memory" => integer 4468808
        "stop_time" => float 1438718075.7576
        "stop_memory" => integer 4469400
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.758
        "start_memory" => integer 4482296
        "stop_time" => float 1438718075.758
        "stop_memory" => integer 4482864
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7581
        "start_memory" => integer 4486368
        "stop_time" => float 1438718075.7581
        "stop_memory" => integer 4486960
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7591
        "start_memory" => integer 4500096
        "stop_time" => float 1438718075.7592
        "stop_memory" => integer 4500664
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7593
        "start_memory" => integer 4504168
        "stop_time" => float 1438718075.7593
        "stop_memory" => integer 4504760
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7611
        "start_memory" => integer 4527680
        "stop_time" => float 1438718075.7611
        "stop_memory" => integer 4528248
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7612
        "start_memory" => integer 4531712
        "stop_time" => float 1438718075.7612
        "stop_memory" => integer 4532288
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7622
        "start_memory" => integer 4613488
        "stop_time" => float 1438718075.7622
        "stop_memory" => integer 4614064
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7623
        "start_memory" => integer 4617528
        "stop_time" => float 1438718075.7623
        "stop_memory" => integer 4618120
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7634
        "start_memory" => integer 4719296
        "stop_time" => float 1438718075.7635
        "stop_memory" => integer 4719848
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7635
        "start_memory" => integer 4723328
        "stop_time" => float 1438718075.7636
        "stop_memory" => integer 4723912
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7652
        "start_memory" => integer 4756904
        "stop_time" => float 1438718075.7653
        "stop_memory" => integer 4757496
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7654
        "start_memory" => integer 4760992
        "stop_time" => float 1438718075.7654
        "stop_memory" => integer 4761592
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7659
        "start_memory" => integer 4787160
        "stop_time" => float 1438718075.766
        "stop_memory" => integer 4787752
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.766
        "start_memory" => integer 4791328
        "stop_time" => float 1438718075.7661
        "stop_memory" => integer 4791936
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.767
        "start_memory" => integer 4810648
        "stop_time" => float 1438718075.767
        "stop_memory" => integer 4811216
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7671
        "start_memory" => integer 4814744
        "stop_time" => float 1438718075.7671
        "stop_memory" => integer 4815344
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7684
        "start_memory" => integer 4833936
        "stop_time" => float 1438718075.7684
        "stop_memory" => integer 4834528
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7707
        "start_memory" => integer 4843936
        "stop_time" => float 1438718075.7707
        "stop_memory" => integer 4844512
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7709
        "start_memory" => integer 4852856
        "stop_time" => float 1438718075.771
        "stop_memory" => integer 4853440
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7719
        "start_memory" => integer 4862520
        "stop_time" => float 1438718075.772
        "stop_memory" => integer 4863072
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7721
        "start_memory" => integer 4866536
        "stop_time" => float 1438718075.7721
        "stop_memory" => integer 4867160
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7725
        "start_memory" => integer 4871136
        "stop_time" => float 1438718075.7726
        "stop_memory" => integer 4871696
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7726
        "start_memory" => integer 4875224
        "stop_time" => float 1438718075.7727
        "stop_memory" => integer 4875880
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7731
        "start_memory" => integer 4879768
        "stop_time" => float 1438718075.7731
        "stop_memory" => integer 4880344
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7732
        "start_memory" => integer 4883856
        "stop_time" => float 1438718075.7732
        "stop_memory" => integer 4884448
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.774
        "start_memory" => integer 4893408
        "stop_time" => float 1438718075.774
        "stop_memory" => integer 4893968
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7741
        "start_memory" => integer 4897504
        "stop_time" => float 1438718075.7741
        "stop_memory" => integer 4898088
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7745
        "start_memory" => integer 4900280
        "stop_time" => float 1438718075.7746
        "stop_memory" => integer 4900912
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7747
        "start_memory" => integer 4907688
        "stop_time" => float 1438718075.7747
        "stop_memory" => integer 4908240
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7748
        "start_memory" => integer 4911728
        "stop_time" => float 1438718075.7748
        "stop_memory" => integer 4912312
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7765
        "start_memory" => integer 5143888
        "stop_time" => float 1438718075.7765
        "stop_memory" => integer 5144480
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7771
        "start_memory" => integer 5201264
        "stop_time" => float 1438718075.7771
        "stop_memory" => integer 5201848
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7776
        "start_memory" => integer 5236216
        "stop_time" => float 1438718075.7776
        "stop_memory" => integer 5236800
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7777
        "start_memory" => integer 5240320
        "stop_time" => float 1438718075.7777
        "stop_memory" => integer 5240920
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7781
        "start_memory" => integer 5246936
        "stop_time" => float 1438718075.7781
        "stop_memory" => integer 5247496
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7785
        "start_memory" => integer 5273544
        "stop_time" => float 1438718075.7785
        "stop_memory" => integer 5274120
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7789
        "start_memory" => integer 5303024
        "stop_time" => float 1438718075.7789
        "stop_memory" => integer 5303616
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7793
        "start_memory" => integer 5330256
        "stop_time" => float 1438718075.7793
        "stop_memory" => integer 5330792
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7794
        "start_memory" => integer 5334248
        "stop_time" => float 1438718075.7795
        "stop_memory" => integer 5334824
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.781
        "start_memory" => integer 5362072
        "stop_time" => float 1438718075.781
        "stop_memory" => integer 5362688
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7811
        "start_memory" => integer 5366504
        "stop_time" => float 1438718075.7811
        "stop_memory" => integer 5367152
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.783
        "start_memory" => integer 5398104
        "stop_time" => float 1438718075.783
        "stop_memory" => integer 5398688
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7831
        "start_memory" => integer 5402248
        "stop_time" => float 1438718075.7832
        "stop_memory" => integer 5402840
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7861
        "start_memory" => integer 5467552
        "stop_time" => float 1438718075.7862
        "stop_memory" => integer 5468104
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7862
        "start_memory" => integer 5471640
        "stop_time" => float 1438718075.7863
        "stop_memory" => integer 5472248
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7867
        "start_memory" => integer 5482384
        "stop_time" => float 1438718075.7868
        "stop_memory" => integer 5482984
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7868
        "start_memory" => integer 5486512
        "stop_time" => float 1438718075.7869
        "stop_memory" => integer 5487112
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7875
        "start_memory" => integer 5531688
        "stop_time" => float 1438718075.7875
        "stop_memory" => integer 5532264
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7876
        "start_memory" => integer 5535832
        "stop_time" => float 1438718075.7876
        "stop_memory" => integer 5536424
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.788
        "start_memory" => integer 5556776
        "stop_time" => float 1438718075.7881
        "stop_memory" => integer 5557392
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7881
        "start_memory" => integer 5560912
        "stop_time" => float 1438718075.7882
        "stop_memory" => integer 5561512
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7891
        "start_memory" => integer 5610168
        "stop_time" => float 1438718075.7891
        "stop_memory" => integer 5610744
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7892
        "start_memory" => integer 5614256
        "stop_time" => float 1438718075.7893
        "stop_memory" => integer 5614856
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7897
        "start_memory" => integer 5637128
        "stop_time" => float 1438718075.7897
        "stop_memory" => integer 5637688
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7898
        "start_memory" => integer 5641312
        "stop_time" => float 1438718075.7899
        "stop_memory" => integer 5641856
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7908
        "start_memory" => integer 5714360
        "stop_time" => float 1438718075.7908
        "stop_memory" => integer 5714936
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7909
        "start_memory" => integer 5718456
        "stop_time" => float 1438718075.7909
        "stop_memory" => integer 5719040
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7944
        "start_memory" => integer 5738176
        "stop_time" => float 1438718075.7945
        "stop_memory" => integer 5738736
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7946
        "start_memory" => integer 5742184
        "stop_time" => float 1438718075.7946
        "stop_memory" => integer 5742768
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7953
        "start_memory" => integer 5802352
        "stop_time" => float 1438718075.7954
        "stop_memory" => integer 5802912
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7955
        "start_memory" => integer 5806448
        "stop_time" => float 1438718075.7955
        "stop_memory" => integer 5807096
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7963
        "start_memory" => integer 5876216
        "stop_time" => float 1438718075.7963
        "stop_memory" => integer 5876832
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7964
        "start_memory" => integer 5880416
        "stop_time" => float 1438718075.7964
        "stop_memory" => integer 5880968
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7971
        "start_memory" => integer 5898352
        "stop_time" => float 1438718075.7972
        "stop_memory" => integer 5898960
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7974
        "start_memory" => integer 5864904
        "stop_time" => float 1438718075.7975
        "stop_memory" => integer 5867224
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.7979
        "start_memory" => integer 5903360
        "stop_time" => float 1438718075.798
        "stop_memory" => integer 5905024
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438718075.798
        "start_memory" => integer 5904656
        "stop_time" => float 1438718075.798
        "stop_memory" => integer 5906336
    )
)

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