Modules

Kohana_Profiler

Provides simple benchmarking and profiling. To display the statistics that have been collected, load the profiler/stats View:

echo View::factory('profiler/stats');
package
Kohana
category
Helpers
author
Kohana Team
copyright
© 2009-2012 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/kohana/profiler.php on line 14.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1469701954.0201
        "start_memory" => integer 1117232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0201
        "start_memory" => integer 1119472
        "stop_time" => float 1469701954.0202
        "stop_memory" => integer 1120160
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0203
        "start_memory" => integer 1123704
        "stop_time" => float 1469701954.0203
        "stop_memory" => integer 1124312
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0211
        "start_memory" => integer 1200776
        "stop_time" => float 1469701954.0212
        "stop_memory" => integer 1201328
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0213
        "start_memory" => integer 1204832
        "stop_time" => float 1469701954.0213
        "stop_memory" => integer 1205424
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0214
        "start_memory" => integer 1213392
        "stop_time" => float 1469701954.0215
        "stop_memory" => integer 1213944
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0215
        "start_memory" => integer 1217408
        "stop_time" => float 1469701954.0216
        "stop_memory" => integer 1218016
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0218
        "start_memory" => integer 1226880
        "stop_time" => float 1469701954.0218
        "stop_memory" => integer 1227440
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0219
        "start_memory" => integer 1230880
        "stop_time" => float 1469701954.0219
        "stop_memory" => integer 1231528
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0229
        "start_memory" => integer 1326352
        "stop_time" => float 1469701954.0229
        "stop_memory" => integer 1326936
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.023
        "start_memory" => integer 1330416
        "stop_time" => float 1469701954.023
        "stop_memory" => integer 1331008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0232
        "start_memory" => integer 1342792
        "stop_time" => float 1469701954.0233
        "stop_memory" => integer 1343344
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0233
        "start_memory" => integer 1346768
        "stop_time" => float 1469701954.0234
        "stop_memory" => integer 1347336
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0237
        "start_memory" => integer 1381728
        "stop_time" => float 1469701954.0238
        "stop_memory" => integer 1382328
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0238
        "start_memory" => integer 1383400
        "stop_time" => float 1469701954.0238
        "stop_memory" => integer 1383936
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0239
        "start_memory" => integer 1387344
        "stop_time" => float 1469701954.024
        "stop_memory" => integer 1387920
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0243
        "start_memory" => integer 1407168
        "stop_time" => float 1469701954.0243
        "stop_memory" => integer 1407872
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0244
        "start_memory" => integer 1411296
        "stop_time" => float 1469701954.0244
        "stop_memory" => integer 1411864
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0252
        "start_memory" => integer 1507472
        "stop_time" => float 1469701954.0253
        "stop_memory" => integer 1508072
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0254
        "start_memory" => integer 1511576
        "stop_time" => float 1469701954.0254
        "stop_memory" => integer 1512176
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0259
        "start_memory" => integer 1551448
        "stop_time" => float 1469701954.0259
        "stop_memory" => integer 1551976
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0259
        "start_memory" => integer 1552616
        "stop_time" => float 1469701954.026
        "stop_memory" => integer 1553192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0295
        "start_memory" => integer 1952376
        "stop_time" => float 1469701954.0296
        "stop_memory" => integer 1952960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0297
        "start_memory" => integer 1956464
        "stop_time" => float 1469701954.0298
        "stop_memory" => integer 1957064
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0299
        "start_memory" => integer 1958696
        "stop_time" => float 1469701954.0299
        "stop_memory" => integer 1959296
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.03
        "start_memory" => integer 1962808
        "stop_time" => float 1469701954.03
        "stop_memory" => integer 1963384
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0303
        "start_memory" => integer 1993032
        "stop_time" => float 1469701954.0304
        "stop_memory" => integer 1993592
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0305
        "start_memory" => integer 1997096
        "stop_time" => float 1469701954.0305
        "stop_memory" => integer 1997696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0313
        "start_memory" => integer 2059736
        "stop_time" => float 1469701954.0314
        "stop_memory" => integer 2060288
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0314
        "start_memory" => integer 2063728
        "stop_time" => float 1469701954.0315
        "stop_memory" => integer 2064296
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0331
        "start_memory" => integer 2123488
        "stop_time" => float 1469701954.0331
        "stop_memory" => integer 2124104
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0877
        "start_memory" => integer 2164992
        "stop_time" => float 1469701954.0878
        "stop_memory" => integer 2165568
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0879
        "start_memory" => integer 2168992
        "stop_time" => float 1469701954.0879
        "stop_memory" => integer 2169832
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0886
        "start_memory" => integer 2196080
        "stop_time" => float 1469701954.0886
        "stop_memory" => integer 2196656
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0886
        "start_memory" => integer 2200136
        "stop_time" => float 1469701954.0887
        "stop_memory" => integer 2200728
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0898
        "start_memory" => integer 2218024
        "stop_time" => float 1469701954.0898
        "stop_memory" => integer 2218592
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0899
        "start_memory" => integer 2222064
        "stop_time" => float 1469701954.0899
        "stop_memory" => integer 2222656
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0906
        "start_memory" => integer 2266144
        "stop_time" => float 1469701954.0906
        "stop_memory" => integer 2266744
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0907
        "start_memory" => integer 2278264
        "stop_time" => float 1469701954.0908
        "stop_memory" => integer 2278840
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0908
        "start_memory" => integer 2282384
        "stop_time" => float 1469701954.0909
        "stop_memory" => integer 2282968
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0913
        "start_memory" => integer 2320960
        "stop_time" => float 1469701954.0914
        "stop_memory" => integer 2321560
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0916
        "start_memory" => integer 2333680
        "stop_time" => float 1469701954.0916
        "stop_memory" => integer 2334256
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.092
        "start_memory" => integer 2361272
        "stop_time" => float 1469701954.092
        "stop_memory" => integer 2361872
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0922
        "start_memory" => integer 2369688
        "stop_time" => float 1469701954.0922
        "stop_memory" => integer 2370264
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0924
        "start_memory" => integer 2383416
        "stop_time" => float 1469701954.0924
        "stop_memory" => integer 2384016
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0926
        "start_memory" => integer 2391032
        "stop_time" => float 1469701954.0927
        "stop_memory" => integer 2391624
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0929
        "start_memory" => integer 2404928
        "stop_time" => float 1469701954.0929
        "stop_memory" => integer 2405520
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0931
        "start_memory" => integer 2419152
        "stop_time" => float 1469701954.0932
        "stop_memory" => integer 2419744
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0933
        "start_memory" => integer 2429224
        "stop_time" => float 1469701954.0934
        "stop_memory" => integer 2429816
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0936
        "start_memory" => integer 2438488
        "stop_time" => float 1469701954.0936
        "stop_memory" => integer 2439080
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0939
        "start_memory" => integer 2484440
        "stop_time" => float 1469701954.0939
        "stop_memory" => integer 2485016
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0942
        "start_memory" => integer 2507944
        "stop_time" => float 1469701954.0942
        "stop_memory" => integer 2508544
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0944
        "start_memory" => integer 2521840
        "stop_time" => float 1469701954.0945
        "stop_memory" => integer 2522416
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0947
        "start_memory" => integer 2541616
        "stop_time" => float 1469701954.0948
        "stop_memory" => integer 2542200
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.095
        "start_memory" => integer 2555856
        "stop_time" => float 1469701954.095
        "stop_memory" => integer 2556424
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0951
        "start_memory" => integer 2559880
        "stop_time" => float 1469701954.0951
        "stop_memory" => integer 2560464
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0953
        "start_memory" => integer 2582664
        "stop_time" => float 1469701954.0954
        "stop_memory" => integer 2583224
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0954
        "start_memory" => integer 2586656
        "stop_time" => float 1469701954.0955
        "stop_memory" => integer 2587240
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.0975
        "start_memory" => integer 2681168
        "stop_time" => float 1469701954.0976
        "stop_memory" => integer 2681744
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1033
        "start_memory" => integer 2712320
        "stop_time" => float 1469701954.1033
        "stop_memory" => integer 2712896
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1034
        "start_memory" => integer 2716376
        "stop_time" => float 1469701954.1034
        "stop_memory" => integer 2716968
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1065
        "start_memory" => integer 2736104
        "stop_time" => float 1469701954.1065
        "stop_memory" => integer 2736688
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1066
        "start_memory" => integer 2740240
        "stop_time" => float 1469701954.1066
        "stop_memory" => integer 2740840
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1098
        "start_memory" => integer 2760024
        "stop_time" => float 1469701954.1098
        "stop_memory" => integer 2760584
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1099
        "start_memory" => integer 2764064
        "stop_time" => float 1469701954.1099
        "stop_memory" => integer 2765168
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1104
        "start_memory" => integer 2819696
        "stop_time" => float 1469701954.1105
        "stop_memory" => integer 2820296
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1139
        "start_memory" => integer 2827608
        "stop_time" => float 1469701954.1139
        "stop_memory" => integer 2828184
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.114
        "start_memory" => integer 2831712
        "stop_time" => float 1469701954.114
        "stop_memory" => integer 2832312
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1248
        "start_memory" => integer 2871976
        "stop_time" => float 1469701954.1248
        "stop_memory" => integer 2872552
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1249
        "start_memory" => integer 2876080
        "stop_time" => float 1469701954.125
        "stop_memory" => integer 2876680
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1251
        "start_memory" => integer 2892624
        "stop_time" => float 1469701954.1251
        "stop_memory" => integer 2893200
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1256
        "start_memory" => integer 2900504
        "stop_time" => float 1469701954.1256
        "stop_memory" => integer 2901072
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1257
        "start_memory" => integer 2904544
        "stop_time" => float 1469701954.1257
        "stop_memory" => integer 2905136
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1265
        "start_memory" => integer 2954576
        "stop_time" => float 1469701954.1265
        "stop_memory" => integer 2955160
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1266
        "start_memory" => integer 2958664
        "stop_time" => float 1469701954.1266
        "stop_memory" => integer 2959264
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1306
        "start_memory" => integer 2978664
        "stop_time" => float 1469701954.1307
        "stop_memory" => integer 2979224
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1307
        "start_memory" => integer 2982720
        "stop_time" => float 1469701954.1308
        "stop_memory" => integer 2983312
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1314
        "start_memory" => integer 2998464
        "stop_time" => float 1469701954.1315
        "stop_memory" => integer 2999000
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1315
        "start_memory" => integer 3002408
        "stop_time" => float 1469701954.1316
        "stop_memory" => integer 3002984
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1328
        "start_memory" => integer 3009656
        "stop_time" => float 1469701954.1328
        "stop_memory" => integer 3010256
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1329
        "start_memory" => integer 3013768
        "stop_time" => float 1469701954.1329
        "stop_memory" => integer 3014368
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1356
        "start_memory" => integer 3049416
        "stop_time" => float 1469701954.1356
        "stop_memory" => integer 3050008
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.136
        "start_memory" => integer 3057704
        "stop_time" => float 1469701954.1361
        "stop_memory" => integer 3058264
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1361
        "start_memory" => integer 3061752
        "stop_time" => float 1469701954.1362
        "stop_memory" => integer 3062344
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1389
        "start_memory" => integer 3079984
        "stop_time" => float 1469701954.139
        "stop_memory" => integer 3080568
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1404
        "start_memory" => integer 3085168
        "stop_time" => float 1469701954.1404
        "stop_memory" => integer 3085736
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1405
        "start_memory" => integer 3089200
        "stop_time" => float 1469701954.1405
        "stop_memory" => integer 3089792
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1424
        "start_memory" => integer 3183840
        "stop_time" => float 1469701954.1425
        "stop_memory" => integer 3184440
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1426
        "start_memory" => integer 3187992
        "stop_time" => float 1469701954.1426
        "stop_memory" => integer 3188584
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.143
        "start_memory" => integer 3202160
        "stop_time" => float 1469701954.143
        "stop_memory" => integer 3202752
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1431
        "start_memory" => integer 3206304
        "stop_time" => float 1469701954.1431
        "stop_memory" => integer 3206912
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1442
        "start_memory" => integer 3211944
        "stop_time" => float 1469701954.1443
        "stop_memory" => integer 3212512
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1444
        "start_memory" => integer 3216040
        "stop_time" => float 1469701954.1444
        "stop_memory" => integer 3216640
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1455
        "start_memory" => integer 3311416
        "stop_time" => float 1469701954.1456
        "stop_memory" => integer 3312008
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1456
        "start_memory" => integer 3315560
        "stop_time" => float 1469701954.1457
        "stop_memory" => integer 3316168
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1458
        "start_memory" => integer 3328208
        "stop_time" => float 1469701954.1459
        "stop_memory" => integer 3328776
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1459
        "start_memory" => integer 3332280
        "stop_time" => float 1469701954.146
        "stop_memory" => integer 3332904
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1468
        "start_memory" => integer 3376544
        "stop_time" => float 1469701954.1468
        "stop_memory" => integer 3377120
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1469
        "start_memory" => integer 3380640
        "stop_time" => float 1469701954.147
        "stop_memory" => integer 3381240
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1476
        "start_memory" => integer 3425872
        "stop_time" => float 1469701954.1477
        "stop_memory" => integer 3426448
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1477
        "start_memory" => integer 3429952
        "stop_time" => float 1469701954.1478
        "stop_memory" => integer 3430552
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1486
        "start_memory" => integer 3457864
        "stop_time" => float 1469701954.1486
        "stop_memory" => integer 3458456
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1487
        "start_memory" => integer 3462016
        "stop_time" => float 1469701954.1487
        "stop_memory" => integer 3462624
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1495
        "start_memory" => integer 3498864
        "stop_time" => float 1469701954.1496
        "stop_memory" => integer 3499464
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1496
        "start_memory" => integer 3503096
        "stop_time" => float 1469701954.1497
        "stop_memory" => integer 3503712
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1498
        "start_memory" => integer 3515856
        "stop_time" => float 1469701954.1499
        "stop_memory" => integer 3516448
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.15
        "start_memory" => integer 3520072
        "stop_time" => float 1469701954.15
        "stop_memory" => integer 3520688
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1508
        "start_memory" => integer 3572808
        "stop_time" => float 1469701954.1508
        "stop_memory" => integer 3573400
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1509
        "start_memory" => integer 3577008
        "stop_time" => float 1469701954.1509
        "stop_memory" => integer 3577624
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1517
        "start_memory" => integer 3610216
        "stop_time" => float 1469701954.1517
        "stop_memory" => integer 3610808
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1518
        "start_memory" => integer 3614432
        "stop_time" => float 1469701954.1518
        "stop_memory" => integer 3615048
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1526
        "start_memory" => integer 3643672
        "stop_time" => float 1469701954.1526
        "stop_memory" => integer 3644264
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1527
        "start_memory" => integer 3647872
        "stop_time" => float 1469701954.1527
        "stop_memory" => integer 3648488
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1538
        "start_memory" => integer 3724408
        "stop_time" => float 1469701954.1538
        "stop_memory" => integer 3725000
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1539
        "start_memory" => integer 3728608
        "stop_time" => float 1469701954.154
        "stop_memory" => integer 3729224
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1557
        "start_memory" => integer 3765776
        "stop_time" => float 1469701954.1557
        "stop_memory" => integer 3766352
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1558
        "start_memory" => integer 3769912
        "stop_time" => float 1469701954.1558
        "stop_memory" => integer 3770520
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1565
        "start_memory" => integer 3788848
        "stop_time" => float 1469701954.1565
        "stop_memory" => integer 3789384
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1566
        "start_memory" => integer 3792832
        "stop_time" => float 1469701954.1566
        "stop_memory" => integer 3793400
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1577
        "start_memory" => integer 3862960
        "stop_time" => float 1469701954.1577
        "stop_memory" => integer 3863544
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1578
        "start_memory" => integer 3867000
        "stop_time" => float 1469701954.1578
        "stop_memory" => integer 3867576
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1611
        "start_memory" => integer 3881776
        "stop_time" => float 1469701954.1612
        "stop_memory" => integer 3882336
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1613
        "start_memory" => integer 3885768
        "stop_time" => float 1469701954.1613
        "stop_memory" => integer 3886352
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1634
        "start_memory" => integer 3908192
        "stop_time" => float 1469701954.1634
        "stop_memory" => integer 3908752
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1635
        "start_memory" => integer 3912176
        "stop_time" => float 1469701954.1636
        "stop_memory" => integer 3912744
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1642
        "start_memory" => integer 3935888
        "stop_time" => float 1469701954.1642
        "stop_memory" => integer 3936456
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1643
        "start_memory" => integer 3939904
        "stop_time" => float 1469701954.1643
        "stop_memory" => integer 3940472
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1649
        "start_memory" => integer 3966392
        "stop_time" => float 1469701954.1649
        "stop_memory" => integer 3966960
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.165
        "start_memory" => integer 3970384
        "stop_time" => float 1469701954.1651
        "stop_memory" => integer 3971976
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1661
        "start_memory" => integer 4019088
        "stop_time" => float 1469701954.1661
        "stop_memory" => integer 4019656
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1662
        "start_memory" => integer 4023120
        "stop_time" => float 1469701954.1663
        "stop_memory" => integer 4023704
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1678
        "start_memory" => integer 4038248
        "stop_time" => float 1469701954.1679
        "stop_memory" => integer 4038808
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.168
        "start_memory" => integer 4042256
        "stop_time" => float 1469701954.168
        "stop_memory" => integer 4042824
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.169
        "start_memory" => integer 4059448
        "stop_time" => float 1469701954.1691
        "stop_memory" => integer 4060032
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1691
        "start_memory" => integer 4063512
        "stop_time" => float 1469701954.1692
        "stop_memory" => integer 4064104
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1697
        "start_memory" => integer 4080568
        "stop_time" => float 1469701954.1698
        "stop_memory" => integer 4081136
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1698
        "start_memory" => integer 4084640
        "stop_time" => float 1469701954.1699
        "stop_memory" => integer 4085232
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1706
        "start_memory" => integer 4098816
        "stop_time" => float 1469701954.1706
        "stop_memory" => integer 4099384
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1707
        "start_memory" => integer 4102888
        "stop_time" => float 1469701954.1708
        "stop_memory" => integer 4103480
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1713
        "start_memory" => integer 4117080
        "stop_time" => float 1469701954.1713
        "stop_memory" => integer 4117648
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1714
        "start_memory" => integer 4121152
        "stop_time" => float 1469701954.1714
        "stop_memory" => integer 4121744
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.172
        "start_memory" => integer 4135344
        "stop_time" => float 1469701954.172
        "stop_memory" => integer 4135912
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1721
        "start_memory" => integer 4139416
        "stop_time" => float 1469701954.1722
        "stop_memory" => integer 4140008
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1727
        "start_memory" => integer 4153592
        "stop_time" => float 1469701954.1727
        "stop_memory" => integer 4154160
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1728
        "start_memory" => integer 4157664
        "stop_time" => float 1469701954.1729
        "stop_memory" => integer 4158256
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1733
        "start_memory" => integer 4171840
        "stop_time" => float 1469701954.1734
        "stop_memory" => integer 4172408
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1735
        "start_memory" => integer 4175912
        "stop_time" => float 1469701954.1735
        "stop_memory" => integer 4176504
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.174
        "start_memory" => integer 4190104
        "stop_time" => float 1469701954.174
        "stop_memory" => integer 4190672
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1741
        "start_memory" => integer 4194176
        "stop_time" => float 1469701954.1742
        "stop_memory" => integer 4194768
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1747
        "start_memory" => integer 4208352
        "stop_time" => float 1469701954.1747
        "stop_memory" => integer 4208920
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1748
        "start_memory" => integer 4212424
        "stop_time" => float 1469701954.1748
        "stop_memory" => integer 4213016
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1753
        "start_memory" => integer 4226696
        "stop_time" => float 1469701954.1753
        "stop_memory" => integer 4227264
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1754
        "start_memory" => integer 4230768
        "stop_time" => float 1469701954.1755
        "stop_memory" => integer 4231360
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.176
        "start_memory" => integer 4244944
        "stop_time" => float 1469701954.176
        "stop_memory" => integer 4245512
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1761
        "start_memory" => integer 4249016
        "stop_time" => float 1469701954.1761
        "stop_memory" => integer 4249608
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1766
        "start_memory" => integer 4263192
        "stop_time" => float 1469701954.1767
        "stop_memory" => integer 4263760
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1767
        "start_memory" => integer 4267264
        "stop_time" => float 1469701954.1768
        "stop_memory" => integer 4267856
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1773
        "start_memory" => integer 4281424
        "stop_time" => float 1469701954.1773
        "stop_memory" => integer 4281992
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1774
        "start_memory" => integer 4285496
        "stop_time" => float 1469701954.1774
        "stop_memory" => integer 4286088
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1779
        "start_memory" => integer 4299672
        "stop_time" => float 1469701954.178
        "stop_memory" => integer 4300240
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.178
        "start_memory" => integer 4303744
        "stop_time" => float 1469701954.1781
        "stop_memory" => integer 4304336
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1786
        "start_memory" => integer 4317936
        "stop_time" => float 1469701954.1786
        "stop_memory" => integer 4318504
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1787
        "start_memory" => integer 4322008
        "stop_time" => float 1469701954.1787
        "stop_memory" => integer 4322600
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1792
        "start_memory" => integer 4336216
        "stop_time" => float 1469701954.1793
        "stop_memory" => integer 4336784
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1793
        "start_memory" => integer 4340288
        "stop_time" => float 1469701954.1794
        "stop_memory" => integer 4340880
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1799
        "start_memory" => integer 4354480
        "stop_time" => float 1469701954.1799
        "stop_memory" => integer 4355048
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.18
        "start_memory" => integer 4358552
        "stop_time" => float 1469701954.18
        "stop_memory" => integer 4359144
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1805
        "start_memory" => integer 4372872
        "stop_time" => float 1469701954.1806
        "stop_memory" => integer 4373440
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1806
        "start_memory" => integer 4376944
        "stop_time" => float 1469701954.1807
        "stop_memory" => integer 4377536
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1812
        "start_memory" => integer 4391152
        "stop_time" => float 1469701954.1812
        "stop_memory" => integer 4391720
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1813
        "start_memory" => integer 4395224
        "stop_time" => float 1469701954.1813
        "stop_memory" => integer 4395816
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1818
        "start_memory" => integer 4409416
        "stop_time" => float 1469701954.1819
        "stop_memory" => integer 4409984
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1819
        "start_memory" => integer 4413488
        "stop_time" => float 1469701954.182
        "stop_memory" => integer 4414080
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1825
        "start_memory" => integer 4427680
        "stop_time" => float 1469701954.1825
        "stop_memory" => integer 4428248
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1826
        "start_memory" => integer 4431752
        "stop_time" => float 1469701954.1827
        "stop_memory" => integer 4432344
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1831
        "start_memory" => integer 4445928
        "stop_time" => float 1469701954.1832
        "stop_memory" => integer 4446496
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1832
        "start_memory" => integer 4450000
        "stop_time" => float 1469701954.1833
        "stop_memory" => integer 4450592
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1838
        "start_memory" => integer 4464176
        "stop_time" => float 1469701954.1838
        "stop_memory" => integer 4464744
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1839
        "start_memory" => integer 4468248
        "stop_time" => float 1469701954.1839
        "stop_memory" => integer 4468840
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1844
        "start_memory" => integer 4482440
        "stop_time" => float 1469701954.1845
        "stop_memory" => integer 4483008
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1845
        "start_memory" => integer 4486512
        "stop_time" => float 1469701954.1846
        "stop_memory" => integer 4487104
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1851
        "start_memory" => integer 4500688
        "stop_time" => float 1469701954.1851
        "stop_memory" => integer 4501256
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1852
        "start_memory" => integer 4504760
        "stop_time" => float 1469701954.1852
        "stop_memory" => integer 4505352
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1864
        "start_memory" => integer 4519176
        "stop_time" => float 1469701954.1864
        "stop_memory" => integer 4519744
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1865
        "start_memory" => integer 4523248
        "stop_time" => float 1469701954.1866
        "stop_memory" => integer 4523840
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1885
        "start_memory" => integer 4546768
        "stop_time" => float 1469701954.1886
        "stop_memory" => integer 4547336
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1887
        "start_memory" => integer 4550800
        "stop_time" => float 1469701954.1887
        "stop_memory" => integer 4551376
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1898
        "start_memory" => integer 4632496
        "stop_time" => float 1469701954.1898
        "stop_memory" => integer 4633072
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1899
        "start_memory" => integer 4636536
        "stop_time" => float 1469701954.1899
        "stop_memory" => integer 4637128
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1913
        "start_memory" => integer 4738272
        "stop_time" => float 1469701954.1913
        "stop_memory" => integer 4738824
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1914
        "start_memory" => integer 4742304
        "stop_time" => float 1469701954.1915
        "stop_memory" => integer 4742888
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1932
        "start_memory" => integer 4775856
        "stop_time" => float 1469701954.1933
        "stop_memory" => integer 4776448
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1933
        "start_memory" => integer 4779968
        "stop_time" => float 1469701954.1934
        "stop_memory" => integer 4780568
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1939
        "start_memory" => integer 4806176
        "stop_time" => float 1469701954.194
        "stop_memory" => integer 4806768
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1941
        "start_memory" => integer 4810344
        "stop_time" => float 1469701954.1941
        "stop_memory" => integer 4810952
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1951
        "start_memory" => integer 4829680
        "stop_time" => float 1469701954.1952
        "stop_memory" => integer 4830248
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1952
        "start_memory" => integer 4833808
        "stop_time" => float 1469701954.1953
        "stop_memory" => integer 4834408
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1967
        "start_memory" => integer 4852960
        "stop_time" => float 1469701954.1967
        "stop_memory" => integer 4853552
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1992
        "start_memory" => integer 4863280
        "stop_time" => float 1469701954.1992
        "stop_memory" => integer 4863856
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.1994
        "start_memory" => integer 4872688
        "stop_time" => float 1469701954.1995
        "stop_memory" => integer 4873272
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2006
        "start_memory" => integer 4882688
        "stop_time" => float 1469701954.2007
        "stop_memory" => integer 4883240
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2008
        "start_memory" => integer 4886704
        "stop_time" => float 1469701954.2008
        "stop_memory" => integer 4887312
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2012
        "start_memory" => integer 4891280
        "stop_time" => float 1469701954.2013
        "stop_memory" => integer 4891840
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2013
        "start_memory" => integer 4895408
        "stop_time" => float 1469701954.2014
        "stop_memory" => integer 4895992
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2018
        "start_memory" => integer 4899880
        "stop_time" => float 1469701954.2018
        "stop_memory" => integer 4900456
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2019
        "start_memory" => integer 4903952
        "stop_time" => float 1469701954.202
        "stop_memory" => integer 4904600
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2027
        "start_memory" => integer 4913560
        "stop_time" => float 1469701954.2028
        "stop_memory" => integer 4914144
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2028
        "start_memory" => integer 4917704
        "stop_time" => float 1469701954.2029
        "stop_memory" => integer 4918304
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2033
        "start_memory" => integer 4920408
        "stop_time" => float 1469701954.2034
        "stop_memory" => integer 4921080
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2035
        "start_memory" => integer 4927896
        "stop_time" => float 1469701954.2035
        "stop_memory" => integer 4928448
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2036
        "start_memory" => integer 4931896
        "stop_time" => float 1469701954.2036
        "stop_memory" => integer 4932480
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2057
        "start_memory" => integer 5163984
        "stop_time" => float 1469701954.2057
        "stop_memory" => integer 5164576
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2064
        "start_memory" => integer 5221368
        "stop_time" => float 1469701954.2064
        "stop_memory" => integer 5221952
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2069
        "start_memory" => integer 5256352
        "stop_time" => float 1469701954.207
        "stop_memory" => integer 5256936
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.207
        "start_memory" => integer 5260456
        "stop_time" => float 1469701954.2071
        "stop_memory" => integer 5261056
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2075
        "start_memory" => integer 5267112
        "stop_time" => float 1469701954.2075
        "stop_memory" => integer 5267672
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2079
        "start_memory" => integer 5293800
        "stop_time" => float 1469701954.208
        "stop_memory" => integer 5294376
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2084
        "start_memory" => integer 5323416
        "stop_time" => float 1469701954.2084
        "stop_memory" => integer 5324008
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2088
        "start_memory" => integer 5350640
        "stop_time" => float 1469701954.2089
        "stop_memory" => integer 5351176
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2089
        "start_memory" => integer 5354680
        "stop_time" => float 1469701954.209
        "stop_memory" => integer 5355264
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2107
        "start_memory" => integer 5382440
        "stop_time" => float 1469701954.2108
        "stop_memory" => integer 5383056
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2108
        "start_memory" => integer 5386848
        "stop_time" => float 1469701954.2109
        "stop_memory" => integer 5387464
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2129
        "start_memory" => integer 5419160
        "stop_time" => float 1469701954.2129
        "stop_memory" => integer 5419728
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.213
        "start_memory" => integer 5423328
        "stop_time" => float 1469701954.2131
        "stop_memory" => integer 5423936
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2164
        "start_memory" => integer 5488656
        "stop_time" => float 1469701954.2165
        "stop_memory" => integer 5489232
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2166
        "start_memory" => integer 5492744
        "stop_time" => float 1469701954.2166
        "stop_memory" => integer 5493344
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.217
        "start_memory" => integer 5503416
        "stop_time" => float 1469701954.2171
        "stop_memory" => integer 5504016
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2171
        "start_memory" => integer 5507488
        "stop_time" => float 1469701954.2172
        "stop_memory" => integer 5508072
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2179
        "start_memory" => integer 5552688
        "stop_time" => float 1469701954.2179
        "stop_memory" => integer 5553264
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.218
        "start_memory" => integer 5556784
        "stop_time" => float 1469701954.2181
        "stop_memory" => integer 5557384
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2185
        "start_memory" => integer 5577744
        "stop_time" => float 1469701954.2185
        "stop_memory" => integer 5578352
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2186
        "start_memory" => integer 5581904
        "stop_time" => float 1469701954.2187
        "stop_memory" => integer 5582472
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2197
        "start_memory" => integer 5631128
        "stop_time" => float 1469701954.2197
        "stop_memory" => integer 5631696
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2198
        "start_memory" => integer 5635200
        "stop_time" => float 1469701954.2198
        "stop_memory" => integer 5635792
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2203
        "start_memory" => integer 5658088
        "stop_time" => float 1469701954.2204
        "stop_memory" => integer 5658680
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2205
        "start_memory" => integer 5662184
        "stop_time" => float 1469701954.2205
        "stop_memory" => integer 5662752
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2215
        "start_memory" => integer 5735304
        "stop_time" => float 1469701954.2216
        "stop_memory" => integer 5735896
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2216
        "start_memory" => integer 5739400
        "stop_time" => float 1469701954.2217
        "stop_memory" => integer 5739984
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2255
        "start_memory" => integer 5759112
        "stop_time" => float 1469701954.2255
        "stop_memory" => integer 5759672
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2256
        "start_memory" => integer 5763136
        "stop_time" => float 1469701954.2257
        "stop_memory" => integer 5763728
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2265
        "start_memory" => integer 5823384
        "stop_time" => float 1469701954.2265
        "stop_memory" => integer 5823976
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2266
        "start_memory" => integer 5827432
        "stop_time" => float 1469701954.2266
        "stop_memory" => integer 5828016
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2275
        "start_memory" => integer 5897208
        "stop_time" => float 1469701954.2276
        "stop_memory" => integer 5897848
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2277
        "start_memory" => integer 5901456
        "stop_time" => float 1469701954.2277
        "stop_memory" => integer 5902056
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2285
        "start_memory" => integer 5920048
        "stop_time" => float 1469701954.2285
        "stop_memory" => integer 5920680
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2288
        "start_memory" => integer 5886584
        "stop_time" => float 1469701954.2288
        "stop_memory" => integer 5888904
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2293
        "start_memory" => integer 5924992
        "stop_time" => float 1469701954.2294
        "stop_memory" => integer 5926656
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469701954.2294
        "start_memory" => integer 5926288
        "stop_time" => float 1469701954.2295
        "stop_memory" => integer 5927952
    )
)

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