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 1488267566.9077
        "start_memory" => integer 1116192
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9077
        "start_memory" => integer 1118424
        "stop_time" => float 1488267566.9078
        "stop_memory" => integer 1119112
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9078
        "start_memory" => integer 1122664
        "stop_time" => float 1488267566.9079
        "stop_memory" => integer 1123288
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9084
        "start_memory" => integer 1199720
        "stop_time" => float 1488267566.9085
        "stop_memory" => integer 1200296
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9085
        "start_memory" => integer 1203808
        "stop_time" => float 1488267566.9086
        "stop_memory" => integer 1204400
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9086
        "start_memory" => integer 1212360
        "stop_time" => float 1488267566.9087
        "stop_memory" => integer 1212912
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9088
        "start_memory" => integer 1216384
        "stop_time" => float 1488267566.9088
        "stop_memory" => integer 1216968
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9089
        "start_memory" => integer 1225856
        "stop_time" => float 1488267566.909
        "stop_memory" => integer 1226416
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.909
        "start_memory" => integer 1229856
        "stop_time" => float 1488267566.9091
        "stop_memory" => integer 1230504
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9098
        "start_memory" => integer 1325328
        "stop_time" => float 1488267566.9098
        "stop_memory" => integer 1325904
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9099
        "start_memory" => integer 1329384
        "stop_time" => float 1488267566.9099
        "stop_memory" => integer 1329976
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.91
        "start_memory" => integer 1341760
        "stop_time" => float 1488267566.9101
        "stop_memory" => integer 1342312
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9101
        "start_memory" => integer 1345736
        "stop_time" => float 1488267566.9102
        "stop_memory" => integer 1346304
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9104
        "start_memory" => integer 1380696
        "stop_time" => float 1488267566.9105
        "stop_memory" => integer 1381296
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9105
        "start_memory" => integer 1382368
        "stop_time" => float 1488267566.9106
        "stop_memory" => integer 1382904
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9106
        "start_memory" => integer 1386312
        "stop_time" => float 1488267566.9107
        "stop_memory" => integer 1386888
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9109
        "start_memory" => integer 1406136
        "stop_time" => float 1488267566.9109
        "stop_memory" => integer 1406840
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.911
        "start_memory" => integer 1410264
        "stop_time" => float 1488267566.911
        "stop_memory" => integer 1410832
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9116
        "start_memory" => integer 1506448
        "stop_time" => float 1488267566.9116
        "stop_memory" => integer 1507048
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9117
        "start_memory" => integer 1510552
        "stop_time" => float 1488267566.9117
        "stop_memory" => integer 1511152
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.912
        "start_memory" => integer 1550456
        "stop_time" => float 1488267566.9121
        "stop_memory" => integer 1550960
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9121
        "start_memory" => integer 1551576
        "stop_time" => float 1488267566.9121
        "stop_memory" => integer 1552152
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9147
        "start_memory" => integer 1951320
        "stop_time" => float 1488267566.9148
        "stop_memory" => integer 1951904
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9148
        "start_memory" => integer 1955408
        "stop_time" => float 1488267566.9149
        "stop_memory" => integer 1956008
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.915
        "start_memory" => integer 1957640
        "stop_time" => float 1488267566.915
        "stop_memory" => integer 1958240
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9151
        "start_memory" => integer 1961752
        "stop_time" => float 1488267566.9151
        "stop_memory" => integer 1962328
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9153
        "start_memory" => integer 1991976
        "stop_time" => float 1488267566.9154
        "stop_memory" => integer 1992536
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9154
        "start_memory" => integer 1996040
        "stop_time" => float 1488267566.9155
        "stop_memory" => integer 1996640
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.916
        "start_memory" => integer 2058952
        "stop_time" => float 1488267566.916
        "stop_memory" => integer 2059504
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9161
        "start_memory" => integer 2062936
        "stop_time" => float 1488267566.9161
        "stop_memory" => integer 2063528
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9171
        "start_memory" => integer 2122440
        "stop_time" => float 1488267566.9171
        "stop_memory" => integer 2123056
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9726
        "start_memory" => integer 2163920
        "stop_time" => float 1488267566.9727
        "stop_memory" => integer 2164496
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9728
        "start_memory" => integer 2167920
        "stop_time" => float 1488267566.9728
        "stop_memory" => integer 2168760
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9735
        "start_memory" => integer 2195016
        "stop_time" => float 1488267566.9735
        "stop_memory" => integer 2195592
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9735
        "start_memory" => integer 2199072
        "stop_time" => float 1488267566.9736
        "stop_memory" => integer 2199664
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9741
        "start_memory" => integer 2216960
        "stop_time" => float 1488267566.9741
        "stop_memory" => integer 2217528
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9742
        "start_memory" => integer 2220992
        "stop_time" => float 1488267566.9743
        "stop_memory" => integer 2221584
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9749
        "start_memory" => integer 2265040
        "stop_time" => float 1488267566.9749
        "stop_memory" => integer 2265640
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9751
        "start_memory" => integer 2277176
        "stop_time" => float 1488267566.9751
        "stop_memory" => integer 2277752
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9752
        "start_memory" => integer 2281264
        "stop_time" => float 1488267566.9752
        "stop_memory" => integer 2281848
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9756
        "start_memory" => integer 2319864
        "stop_time" => float 1488267566.9757
        "stop_memory" => integer 2320464
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9759
        "start_memory" => integer 2332584
        "stop_time" => float 1488267566.9759
        "stop_memory" => integer 2333160
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9763
        "start_memory" => integer 2360176
        "stop_time" => float 1488267566.9763
        "stop_memory" => integer 2360776
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9765
        "start_memory" => integer 2368592
        "stop_time" => float 1488267566.9765
        "stop_memory" => integer 2369168
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9767
        "start_memory" => integer 2382320
        "stop_time" => float 1488267566.9767
        "stop_memory" => integer 2382920
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9769
        "start_memory" => integer 2389936
        "stop_time" => float 1488267566.977
        "stop_memory" => integer 2390528
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9772
        "start_memory" => integer 2403832
        "stop_time" => float 1488267566.9772
        "stop_memory" => integer 2404424
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9774
        "start_memory" => integer 2418056
        "stop_time" => float 1488267566.9774
        "stop_memory" => integer 2418648
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9776
        "start_memory" => integer 2428128
        "stop_time" => float 1488267566.9776
        "stop_memory" => integer 2428720
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9778
        "start_memory" => integer 2437392
        "stop_time" => float 1488267566.9778
        "stop_memory" => integer 2437984
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9781
        "start_memory" => integer 2483320
        "stop_time" => float 1488267566.9781
        "stop_memory" => integer 2483896
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9784
        "start_memory" => integer 2506824
        "stop_time" => float 1488267566.9784
        "stop_memory" => integer 2507424
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9786
        "start_memory" => integer 2520720
        "stop_time" => float 1488267566.9786
        "stop_memory" => integer 2521296
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9789
        "start_memory" => integer 2540496
        "stop_time" => float 1488267566.9789
        "stop_memory" => integer 2541080
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9791
        "start_memory" => integer 2554736
        "stop_time" => float 1488267566.9791
        "stop_memory" => integer 2555304
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9792
        "start_memory" => integer 2558760
        "stop_time" => float 1488267566.9792
        "stop_memory" => integer 2559344
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9794
        "start_memory" => integer 2581544
        "stop_time" => float 1488267566.9794
        "stop_memory" => integer 2582104
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9795
        "start_memory" => integer 2585536
        "stop_time" => float 1488267566.9796
        "stop_memory" => integer 2586120
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9815
        "start_memory" => integer 2680048
        "stop_time" => float 1488267566.9815
        "stop_memory" => integer 2680624
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.987
        "start_memory" => integer 2711200
        "stop_time" => float 1488267566.987
        "stop_memory" => integer 2711776
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9871
        "start_memory" => integer 2715256
        "stop_time" => float 1488267566.9871
        "stop_memory" => integer 2715848
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9902
        "start_memory" => integer 2734960
        "stop_time" => float 1488267566.9902
        "stop_memory" => integer 2735544
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9903
        "start_memory" => integer 2739072
        "stop_time" => float 1488267566.9903
        "stop_memory" => integer 2739672
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9937
        "start_memory" => integer 2758856
        "stop_time" => float 1488267566.9938
        "stop_memory" => integer 2759416
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9939
        "start_memory" => integer 2762896
        "stop_time" => float 1488267566.9939
        "stop_memory" => integer 2764000
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9944
        "start_memory" => integer 2818512
        "stop_time" => float 1488267566.9944
        "stop_memory" => integer 2819112
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.9978
        "start_memory" => integer 2826424
        "stop_time" => float 1488267566.9979
        "stop_memory" => integer 2827000
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267566.998
        "start_memory" => integer 2830528
        "stop_time" => float 1488267566.998
        "stop_memory" => integer 2831128
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0084
        "start_memory" => integer 2870792
        "stop_time" => float 1488267567.0084
        "stop_memory" => integer 2871368
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0086
        "start_memory" => integer 2874896
        "stop_time" => float 1488267567.0086
        "stop_memory" => integer 2875496
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0088
        "start_memory" => integer 2891472
        "stop_time" => float 1488267567.0088
        "stop_memory" => integer 2892048
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0093
        "start_memory" => integer 2899352
        "stop_time" => float 1488267567.0093
        "stop_memory" => integer 2899920
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0094
        "start_memory" => integer 2903392
        "stop_time" => float 1488267567.0094
        "stop_memory" => integer 2903984
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0102
        "start_memory" => integer 2953456
        "stop_time" => float 1488267567.0102
        "stop_memory" => integer 2954040
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0103
        "start_memory" => integer 2957544
        "stop_time" => float 1488267567.0103
        "stop_memory" => integer 2958144
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0141
        "start_memory" => integer 2977544
        "stop_time" => float 1488267567.0142
        "stop_memory" => integer 2978104
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0143
        "start_memory" => integer 2981600
        "stop_time" => float 1488267567.0143
        "stop_memory" => integer 2982192
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0149
        "start_memory" => integer 2997344
        "stop_time" => float 1488267567.015
        "stop_memory" => integer 2997880
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.015
        "start_memory" => integer 3001288
        "stop_time" => float 1488267567.0151
        "stop_memory" => integer 3001864
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0162
        "start_memory" => integer 3008536
        "stop_time" => float 1488267567.0162
        "stop_memory" => integer 3009136
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0163
        "start_memory" => integer 3012648
        "stop_time" => float 1488267567.0163
        "stop_memory" => integer 3013248
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0189
        "start_memory" => integer 3048296
        "stop_time" => float 1488267567.019
        "stop_memory" => integer 3048888
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0194
        "start_memory" => integer 3056584
        "stop_time" => float 1488267567.0195
        "stop_memory" => integer 3057144
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0195
        "start_memory" => integer 3060632
        "stop_time" => float 1488267567.0196
        "stop_memory" => integer 3061224
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0221
        "start_memory" => integer 3078864
        "stop_time" => float 1488267567.0221
        "stop_memory" => integer 3079448
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0234
        "start_memory" => integer 3084048
        "stop_time" => float 1488267567.0235
        "stop_memory" => integer 3084616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0236
        "start_memory" => integer 3088080
        "stop_time" => float 1488267567.0236
        "stop_memory" => integer 3088672
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0253
        "start_memory" => integer 3182704
        "stop_time" => float 1488267567.0254
        "stop_memory" => integer 3183304
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0254
        "start_memory" => integer 3186856
        "stop_time" => float 1488267567.0255
        "stop_memory" => integer 3187448
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0258
        "start_memory" => integer 3201024
        "stop_time" => float 1488267567.0259
        "stop_memory" => integer 3201616
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0259
        "start_memory" => integer 3205168
        "stop_time" => float 1488267567.026
        "stop_memory" => integer 3205776
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.027
        "start_memory" => integer 3210808
        "stop_time" => float 1488267567.0271
        "stop_memory" => integer 3211376
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0272
        "start_memory" => integer 3214880
        "stop_time" => float 1488267567.0272
        "stop_memory" => integer 3215480
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0281
        "start_memory" => integer 3310288
        "stop_time" => float 1488267567.0282
        "stop_memory" => integer 3310880
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0282
        "start_memory" => integer 3314432
        "stop_time" => float 1488267567.0283
        "stop_memory" => integer 3315040
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0284
        "start_memory" => integer 3327080
        "stop_time" => float 1488267567.0285
        "stop_memory" => integer 3327648
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0285
        "start_memory" => integer 3331152
        "stop_time" => float 1488267567.0286
        "stop_memory" => integer 3331776
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0293
        "start_memory" => integer 3375416
        "stop_time" => float 1488267567.0293
        "stop_memory" => integer 3375992
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0294
        "start_memory" => integer 3379512
        "stop_time" => float 1488267567.0294
        "stop_memory" => integer 3380112
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.03
        "start_memory" => integer 3424744
        "stop_time" => float 1488267567.03
        "stop_memory" => integer 3425320
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0301
        "start_memory" => integer 3428824
        "stop_time" => float 1488267567.0301
        "stop_memory" => integer 3429424
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0309
        "start_memory" => integer 3456736
        "stop_time" => float 1488267567.0309
        "stop_memory" => integer 3457328
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.031
        "start_memory" => integer 3460888
        "stop_time" => float 1488267567.031
        "stop_memory" => integer 3461496
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0317
        "start_memory" => integer 3497736
        "stop_time" => float 1488267567.0318
        "stop_memory" => integer 3498336
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0319
        "start_memory" => integer 3501968
        "stop_time" => float 1488267567.0319
        "stop_memory" => integer 3502584
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.032
        "start_memory" => integer 3514728
        "stop_time" => float 1488267567.0321
        "stop_memory" => integer 3515320
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0321
        "start_memory" => integer 3518944
        "stop_time" => float 1488267567.0322
        "stop_memory" => integer 3519560
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0328
        "start_memory" => integer 3571680
        "stop_time" => float 1488267567.0329
        "stop_memory" => integer 3572272
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.033
        "start_memory" => integer 3575880
        "stop_time" => float 1488267567.033
        "stop_memory" => integer 3576496
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0337
        "start_memory" => integer 3609088
        "stop_time" => float 1488267567.0337
        "stop_memory" => integer 3609680
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0338
        "start_memory" => integer 3613304
        "stop_time" => float 1488267567.0338
        "stop_memory" => integer 3613920
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0345
        "start_memory" => integer 3642544
        "stop_time" => float 1488267567.0345
        "stop_memory" => integer 3643136
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0346
        "start_memory" => integer 3646744
        "stop_time" => float 1488267567.0346
        "stop_memory" => integer 3647360
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0355
        "start_memory" => integer 3723280
        "stop_time" => float 1488267567.0356
        "stop_memory" => integer 3723872
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0356
        "start_memory" => integer 3727480
        "stop_time" => float 1488267567.0357
        "stop_memory" => integer 3728096
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0372
        "start_memory" => integer 3764576
        "stop_time" => float 1488267567.0372
        "stop_memory" => integer 3765152
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0373
        "start_memory" => integer 3768712
        "stop_time" => float 1488267567.0373
        "stop_memory" => integer 3769320
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.038
        "start_memory" => integer 3787648
        "stop_time" => float 1488267567.038
        "stop_memory" => integer 3788184
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0381
        "start_memory" => integer 3791632
        "stop_time" => float 1488267567.0381
        "stop_memory" => integer 3792200
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.039
        "start_memory" => integer 3861760
        "stop_time" => float 1488267567.039
        "stop_memory" => integer 3862344
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0391
        "start_memory" => integer 3865800
        "stop_time" => float 1488267567.0391
        "stop_memory" => integer 3866376
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0423
        "start_memory" => integer 3880576
        "stop_time" => float 1488267567.0423
        "stop_memory" => integer 3881136
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0424
        "start_memory" => integer 3884568
        "stop_time" => float 1488267567.0424
        "stop_memory" => integer 3885152
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0444
        "start_memory" => integer 3906992
        "stop_time" => float 1488267567.0444
        "stop_memory" => integer 3907552
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0445
        "start_memory" => integer 3910976
        "stop_time" => float 1488267567.0445
        "stop_memory" => integer 3911544
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0451
        "start_memory" => integer 3934688
        "stop_time" => float 1488267567.0451
        "stop_memory" => integer 3935256
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0452
        "start_memory" => integer 3938704
        "stop_time" => float 1488267567.0452
        "stop_memory" => integer 3939272
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0458
        "start_memory" => integer 3965216
        "stop_time" => float 1488267567.0458
        "stop_memory" => integer 3965784
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0459
        "start_memory" => integer 3969208
        "stop_time" => float 1488267567.0459
        "stop_memory" => integer 3970800
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0469
        "start_memory" => integer 4017920
        "stop_time" => float 1488267567.0469
        "stop_memory" => integer 4018488
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.047
        "start_memory" => integer 4021928
        "stop_time" => float 1488267567.047
        "stop_memory" => integer 4022512
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0485
        "start_memory" => integer 4037080
        "stop_time" => float 1488267567.0486
        "stop_memory" => integer 4037640
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0486
        "start_memory" => integer 4041088
        "stop_time" => float 1488267567.0487
        "stop_memory" => integer 4041656
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0497
        "start_memory" => integer 4058280
        "stop_time" => float 1488267567.0497
        "stop_memory" => integer 4058864
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0498
        "start_memory" => integer 4062344
        "stop_time" => float 1488267567.0498
        "stop_memory" => integer 4062936
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0503
        "start_memory" => integer 4079400
        "stop_time" => float 1488267567.0504
        "stop_memory" => integer 4079968
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0504
        "start_memory" => integer 4083472
        "stop_time" => float 1488267567.0505
        "stop_memory" => integer 4084064
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0509
        "start_memory" => integer 4097648
        "stop_time" => float 1488267567.051
        "stop_memory" => integer 4098216
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.051
        "start_memory" => integer 4101720
        "stop_time" => float 1488267567.0511
        "stop_memory" => integer 4102312
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0515
        "start_memory" => integer 4115912
        "stop_time" => float 1488267567.0516
        "stop_memory" => integer 4116480
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0517
        "start_memory" => integer 4119984
        "stop_time" => float 1488267567.0517
        "stop_memory" => integer 4120576
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0522
        "start_memory" => integer 4134176
        "stop_time" => float 1488267567.0522
        "stop_memory" => integer 4134744
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0523
        "start_memory" => integer 4138248
        "stop_time" => float 1488267567.0523
        "stop_memory" => integer 4138840
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0528
        "start_memory" => integer 4152424
        "stop_time" => float 1488267567.0528
        "stop_memory" => integer 4152992
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0529
        "start_memory" => integer 4156496
        "stop_time" => float 1488267567.0529
        "stop_memory" => integer 4157088
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0534
        "start_memory" => integer 4170672
        "stop_time" => float 1488267567.0534
        "stop_memory" => integer 4171240
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0535
        "start_memory" => integer 4174744
        "stop_time" => float 1488267567.0536
        "stop_memory" => integer 4175336
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.054
        "start_memory" => integer 4188936
        "stop_time" => float 1488267567.0541
        "stop_memory" => integer 4189504
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0541
        "start_memory" => integer 4193008
        "stop_time" => float 1488267567.0542
        "stop_memory" => integer 4193600
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0546
        "start_memory" => integer 4207184
        "stop_time" => float 1488267567.0547
        "stop_memory" => integer 4207752
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0547
        "start_memory" => integer 4211256
        "stop_time" => float 1488267567.0548
        "stop_memory" => integer 4211848
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0553
        "start_memory" => integer 4225528
        "stop_time" => float 1488267567.0553
        "stop_memory" => integer 4226096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0554
        "start_memory" => integer 4229600
        "stop_time" => float 1488267567.0554
        "stop_memory" => integer 4230192
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0559
        "start_memory" => integer 4243800
        "stop_time" => float 1488267567.0559
        "stop_memory" => integer 4244368
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.056
        "start_memory" => integer 4247872
        "stop_time" => float 1488267567.0561
        "stop_memory" => integer 4248464
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0565
        "start_memory" => integer 4262048
        "stop_time" => float 1488267567.0565
        "stop_memory" => integer 4262616
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0566
        "start_memory" => integer 4266120
        "stop_time" => float 1488267567.0567
        "stop_memory" => integer 4266712
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0571
        "start_memory" => integer 4280280
        "stop_time" => float 1488267567.0571
        "stop_memory" => integer 4280848
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0572
        "start_memory" => integer 4284352
        "stop_time" => float 1488267567.0573
        "stop_memory" => integer 4284944
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0577
        "start_memory" => integer 4298528
        "stop_time" => float 1488267567.0577
        "stop_memory" => integer 4299096
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0578
        "start_memory" => integer 4302600
        "stop_time" => float 1488267567.0578
        "stop_memory" => integer 4303192
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0583
        "start_memory" => integer 4316792
        "stop_time" => float 1488267567.0583
        "stop_memory" => integer 4317360
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0584
        "start_memory" => integer 4320864
        "stop_time" => float 1488267567.0585
        "stop_memory" => integer 4321456
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0589
        "start_memory" => integer 4335072
        "stop_time" => float 1488267567.059
        "stop_memory" => integer 4335640
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.059
        "start_memory" => integer 4339144
        "stop_time" => float 1488267567.0591
        "stop_memory" => integer 4339736
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0595
        "start_memory" => integer 4353336
        "stop_time" => float 1488267567.0596
        "stop_memory" => integer 4353904
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0596
        "start_memory" => integer 4357408
        "stop_time" => float 1488267567.0597
        "stop_memory" => integer 4358000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0601
        "start_memory" => integer 4371728
        "stop_time" => float 1488267567.0602
        "stop_memory" => integer 4372296
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0603
        "start_memory" => integer 4375800
        "stop_time" => float 1488267567.0603
        "stop_memory" => integer 4376392
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0608
        "start_memory" => integer 4390008
        "stop_time" => float 1488267567.0608
        "stop_memory" => integer 4390576
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0609
        "start_memory" => integer 4394080
        "stop_time" => float 1488267567.0609
        "stop_memory" => integer 4394672
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0614
        "start_memory" => integer 4408272
        "stop_time" => float 1488267567.0614
        "stop_memory" => integer 4408840
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0615
        "start_memory" => integer 4412344
        "stop_time" => float 1488267567.0615
        "stop_memory" => integer 4412936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.062
        "start_memory" => integer 4426536
        "stop_time" => float 1488267567.062
        "stop_memory" => integer 4427104
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0621
        "start_memory" => integer 4430608
        "stop_time" => float 1488267567.0621
        "stop_memory" => integer 4431200
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0626
        "start_memory" => integer 4444784
        "stop_time" => float 1488267567.0626
        "stop_memory" => integer 4445352
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0627
        "start_memory" => integer 4448856
        "stop_time" => float 1488267567.0627
        "stop_memory" => integer 4449448
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0632
        "start_memory" => integer 4463032
        "stop_time" => float 1488267567.0632
        "stop_memory" => integer 4463600
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0633
        "start_memory" => integer 4467104
        "stop_time" => float 1488267567.0633
        "stop_memory" => integer 4467696
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0638
        "start_memory" => integer 4481312
        "stop_time" => float 1488267567.0638
        "stop_memory" => integer 4481880
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0639
        "start_memory" => integer 4485384
        "stop_time" => float 1488267567.0639
        "stop_memory" => integer 4485976
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0644
        "start_memory" => integer 4499560
        "stop_time" => float 1488267567.0644
        "stop_memory" => integer 4500128
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0645
        "start_memory" => integer 4503632
        "stop_time" => float 1488267567.0645
        "stop_memory" => integer 4504224
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0656
        "start_memory" => integer 4518048
        "stop_time" => float 1488267567.0656
        "stop_memory" => integer 4518616
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0657
        "start_memory" => integer 4522120
        "stop_time" => float 1488267567.0657
        "stop_memory" => integer 4522712
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0677
        "start_memory" => integer 4545632
        "stop_time" => float 1488267567.0677
        "stop_memory" => integer 4546200
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0678
        "start_memory" => integer 4549664
        "stop_time" => float 1488267567.0678
        "stop_memory" => integer 4550240
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0688
        "start_memory" => integer 4631376
        "stop_time" => float 1488267567.0688
        "stop_memory" => integer 4631952
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0689
        "start_memory" => integer 4635416
        "stop_time" => float 1488267567.0689
        "stop_memory" => integer 4636008
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0701
        "start_memory" => integer 4737152
        "stop_time" => float 1488267567.0701
        "stop_memory" => integer 4737704
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0702
        "start_memory" => integer 4741160
        "stop_time" => float 1488267567.0702
        "stop_memory" => integer 4741744
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.072
        "start_memory" => integer 4774712
        "stop_time" => float 1488267567.072
        "stop_memory" => integer 4775304
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0721
        "start_memory" => integer 4778800
        "stop_time" => float 1488267567.0721
        "stop_memory" => integer 4779400
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0727
        "start_memory" => integer 4804992
        "stop_time" => float 1488267567.0727
        "stop_memory" => integer 4805584
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0728
        "start_memory" => integer 4809136
        "stop_time" => float 1488267567.0729
        "stop_memory" => integer 4809744
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0738
        "start_memory" => integer 4828448
        "stop_time" => float 1488267567.0739
        "stop_memory" => integer 4829016
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0739
        "start_memory" => integer 4832520
        "stop_time" => float 1488267567.074
        "stop_memory" => integer 4833120
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0753
        "start_memory" => integer 4851688
        "stop_time" => float 1488267567.0753
        "stop_memory" => integer 4852280
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0777
        "start_memory" => integer 4861968
        "stop_time" => float 1488267567.0777
        "stop_memory" => integer 4862544
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0779
        "start_memory" => integer 4871200
        "stop_time" => float 1488267567.0779
        "stop_memory" => integer 4871784
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0789
        "start_memory" => integer 4881192
        "stop_time" => float 1488267567.079
        "stop_memory" => integer 4881744
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.079
        "start_memory" => integer 4885200
        "stop_time" => float 1488267567.0791
        "stop_memory" => integer 4885784
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0795
        "start_memory" => integer 4889792
        "stop_time" => float 1488267567.0796
        "stop_memory" => integer 4890352
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0796
        "start_memory" => integer 4893856
        "stop_time" => float 1488267567.0797
        "stop_memory" => integer 4894440
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0801
        "start_memory" => integer 4898336
        "stop_time" => float 1488267567.0801
        "stop_memory" => integer 4898896
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0802
        "start_memory" => integer 4902448
        "stop_time" => float 1488267567.0802
        "stop_memory" => integer 4903040
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.081
        "start_memory" => integer 4912056
        "stop_time" => float 1488267567.081
        "stop_memory" => integer 4912640
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0811
        "start_memory" => integer 4916096
        "stop_time" => float 1488267567.0811
        "stop_memory" => integer 4916680
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0815
        "start_memory" => integer 4918792
        "stop_time" => float 1488267567.0816
        "stop_memory" => integer 4919432
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0817
        "start_memory" => integer 4926144
        "stop_time" => float 1488267567.0817
        "stop_memory" => integer 4926688
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0818
        "start_memory" => integer 4930136
        "stop_time" => float 1488267567.0818
        "stop_memory" => integer 4930720
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0835
        "start_memory" => integer 5162336
        "stop_time" => float 1488267567.0835
        "stop_memory" => integer 5162928
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0841
        "start_memory" => integer 5219592
        "stop_time" => float 1488267567.0841
        "stop_memory" => integer 5220176
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0846
        "start_memory" => integer 5254560
        "stop_time" => float 1488267567.0846
        "stop_memory" => integer 5255144
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0847
        "start_memory" => integer 5258648
        "stop_time" => float 1488267567.0847
        "stop_memory" => integer 5259248
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0851
        "start_memory" => integer 5265272
        "stop_time" => float 1488267567.0851
        "stop_memory" => integer 5265832
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0855
        "start_memory" => integer 5291944
        "stop_time" => float 1488267567.0855
        "stop_memory" => integer 5292520
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0859
        "start_memory" => integer 5321432
        "stop_time" => float 1488267567.086
        "stop_memory" => integer 5322024
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0863
        "start_memory" => integer 5348736
        "stop_time" => float 1488267567.0864
        "stop_memory" => integer 5349272
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0865
        "start_memory" => integer 5352784
        "stop_time" => float 1488267567.0865
        "stop_memory" => integer 5353368
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0881
        "start_memory" => integer 5380520
        "stop_time" => float 1488267567.0881
        "stop_memory" => integer 5381136
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0882
        "start_memory" => integer 5384952
        "stop_time" => float 1488267567.0883
        "stop_memory" => integer 5385560
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0901
        "start_memory" => integer 5417392
        "stop_time" => float 1488267567.0902
        "stop_memory" => integer 5417960
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0903
        "start_memory" => integer 5421600
        "stop_time" => float 1488267567.0903
        "stop_memory" => integer 5422200
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0935
        "start_memory" => integer 5486944
        "stop_time" => float 1488267567.0935
        "stop_memory" => integer 5487488
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0936
        "start_memory" => integer 5491032
        "stop_time" => float 1488267567.0936
        "stop_memory" => integer 5491680
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.094
        "start_memory" => integer 5501784
        "stop_time" => float 1488267567.0941
        "stop_memory" => integer 5502360
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0942
        "start_memory" => integer 5505808
        "stop_time" => float 1488267567.0942
        "stop_memory" => integer 5506392
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0948
        "start_memory" => integer 5551032
        "stop_time" => float 1488267567.0949
        "stop_memory" => integer 5551608
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0949
        "start_memory" => integer 5555184
        "stop_time" => float 1488267567.095
        "stop_memory" => integer 5555800
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0954
        "start_memory" => integer 5576144
        "stop_time" => float 1488267567.0954
        "stop_memory" => integer 5576752
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0955
        "start_memory" => integer 5580344
        "stop_time" => float 1488267567.0955
        "stop_memory" => integer 5580936
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0965
        "start_memory" => integer 5629600
        "stop_time" => float 1488267567.0965
        "stop_memory" => integer 5630192
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0966
        "start_memory" => integer 5633704
        "stop_time" => float 1488267567.0966
        "stop_memory" => integer 5634304
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0971
        "start_memory" => integer 5656560
        "stop_time" => float 1488267567.0971
        "stop_memory" => integer 5657136
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0972
        "start_memory" => integer 5660648
        "stop_time" => float 1488267567.0973
        "stop_memory" => integer 5661216
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0981
        "start_memory" => integer 5733752
        "stop_time" => float 1488267567.0982
        "stop_memory" => integer 5734336
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.0982
        "start_memory" => integer 5737824
        "stop_time" => float 1488267567.0983
        "stop_memory" => integer 5738408
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.102
        "start_memory" => integer 5757592
        "stop_time" => float 1488267567.1021
        "stop_memory" => integer 5758152
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.1021
        "start_memory" => integer 5761656
        "stop_time" => float 1488267567.1022
        "stop_memory" => integer 5762296
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.1029
        "start_memory" => integer 5821704
        "stop_time" => float 1488267567.1029
        "stop_memory" => integer 5822280
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.103
        "start_memory" => integer 5825824
        "stop_time" => float 1488267567.1031
        "stop_memory" => integer 5826448
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.1038
        "start_memory" => integer 5895584
        "stop_time" => float 1488267567.1039
        "stop_memory" => integer 5896232
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.104
        "start_memory" => integer 5899816
        "stop_time" => float 1488267567.104
        "stop_memory" => integer 5900400
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.1047
        "start_memory" => integer 5918448
        "stop_time" => float 1488267567.1048
        "stop_memory" => integer 5919080
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.105
        "start_memory" => integer 5885024
        "stop_time" => float 1488267567.1051
        "stop_memory" => integer 5887344
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.1055
        "start_memory" => integer 5923536
        "stop_time" => float 1488267567.1055
        "stop_memory" => integer 5925200
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1488267567.1056
        "start_memory" => integer 5924832
        "stop_time" => float 1488267567.1056
        "stop_memory" => integer 5926504
    )
)

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