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 1481283489.1255
        "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 1481283489.1255
        "start_memory" => integer 1118424
        "stop_time" => float 1481283489.1256
        "stop_memory" => integer 1119112
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1257
        "start_memory" => integer 1122664
        "stop_time" => float 1481283489.1257
        "stop_memory" => integer 1123288
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1263
        "start_memory" => integer 1199720
        "stop_time" => float 1481283489.1263
        "stop_memory" => integer 1200296
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1264
        "start_memory" => integer 1203808
        "stop_time" => float 1481283489.1265
        "stop_memory" => integer 1204400
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1266
        "start_memory" => integer 1212360
        "stop_time" => float 1481283489.1266
        "stop_memory" => integer 1212912
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1267
        "start_memory" => integer 1216384
        "stop_time" => float 1481283489.1268
        "stop_memory" => integer 1216968
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1269
        "start_memory" => integer 1225856
        "stop_time" => float 1481283489.1269
        "stop_memory" => integer 1226416
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.127
        "start_memory" => integer 1229856
        "stop_time" => float 1481283489.1271
        "stop_memory" => integer 1230504
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1278
        "start_memory" => integer 1325328
        "stop_time" => float 1481283489.1278
        "stop_memory" => integer 1325904
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1279
        "start_memory" => integer 1329384
        "stop_time" => float 1481283489.128
        "stop_memory" => integer 1329976
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1281
        "start_memory" => integer 1341760
        "stop_time" => float 1481283489.1282
        "stop_memory" => integer 1342312
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1282
        "start_memory" => integer 1345736
        "stop_time" => float 1481283489.1283
        "stop_memory" => integer 1346304
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1286
        "start_memory" => integer 1380696
        "stop_time" => float 1481283489.1286
        "stop_memory" => integer 1381296
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1286
        "start_memory" => integer 1382368
        "stop_time" => float 1481283489.1287
        "stop_memory" => integer 1382904
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1288
        "start_memory" => integer 1386312
        "stop_time" => float 1481283489.1288
        "stop_memory" => integer 1386888
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1291
        "start_memory" => integer 1406136
        "stop_time" => float 1481283489.1291
        "stop_memory" => integer 1406840
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1292
        "start_memory" => integer 1410264
        "stop_time" => float 1481283489.1292
        "stop_memory" => integer 1410832
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1298
        "start_memory" => integer 1506448
        "stop_time" => float 1481283489.1299
        "stop_memory" => integer 1507048
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.13
        "start_memory" => integer 1510552
        "stop_time" => float 1481283489.13
        "stop_memory" => integer 1511152
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1304
        "start_memory" => integer 1550456
        "stop_time" => float 1481283489.1304
        "stop_memory" => integer 1550960
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1304
        "start_memory" => integer 1551576
        "stop_time" => float 1481283489.1305
        "stop_memory" => integer 1552152
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1331
        "start_memory" => integer 1951320
        "stop_time" => float 1481283489.1331
        "stop_memory" => integer 1951904
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1332
        "start_memory" => integer 1955408
        "stop_time" => float 1481283489.1333
        "stop_memory" => integer 1956008
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1334
        "start_memory" => integer 1957640
        "stop_time" => float 1481283489.1334
        "stop_memory" => integer 1958240
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1335
        "start_memory" => integer 1961752
        "stop_time" => float 1481283489.1336
        "stop_memory" => integer 1962328
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1338
        "start_memory" => integer 1991976
        "stop_time" => float 1481283489.1339
        "stop_memory" => integer 1992536
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.134
        "start_memory" => integer 1996040
        "stop_time" => float 1481283489.134
        "stop_memory" => integer 1996640
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1345
        "start_memory" => integer 2058952
        "stop_time" => float 1481283489.1346
        "stop_memory" => integer 2059504
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1346
        "start_memory" => integer 2062936
        "stop_time" => float 1481283489.1347
        "stop_memory" => integer 2063528
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.1357
        "start_memory" => integer 2122440
        "stop_time" => float 1481283489.1357
        "stop_memory" => integer 2123056
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2155
        "start_memory" => integer 2163920
        "stop_time" => float 1481283489.2155
        "stop_memory" => integer 2164496
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2156
        "start_memory" => integer 2167920
        "stop_time" => float 1481283489.2156
        "stop_memory" => integer 2168760
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2163
        "start_memory" => integer 2195016
        "stop_time" => float 1481283489.2163
        "stop_memory" => integer 2195592
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2164
        "start_memory" => integer 2199072
        "stop_time" => float 1481283489.2164
        "stop_memory" => integer 2199664
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2169
        "start_memory" => integer 2216960
        "stop_time" => float 1481283489.2169
        "stop_memory" => integer 2217528
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.217
        "start_memory" => integer 2220992
        "stop_time" => float 1481283489.2171
        "stop_memory" => integer 2221584
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2177
        "start_memory" => integer 2265040
        "stop_time" => float 1481283489.2177
        "stop_memory" => integer 2265640
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2178
        "start_memory" => integer 2277176
        "stop_time" => float 1481283489.2179
        "stop_memory" => integer 2277752
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2179
        "start_memory" => integer 2281264
        "stop_time" => float 1481283489.218
        "stop_memory" => integer 2281848
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2184
        "start_memory" => integer 2319864
        "stop_time" => float 1481283489.2184
        "stop_memory" => integer 2320464
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2186
        "start_memory" => integer 2332584
        "stop_time" => float 1481283489.2187
        "stop_memory" => integer 2333160
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.219
        "start_memory" => integer 2360176
        "stop_time" => float 1481283489.219
        "stop_memory" => integer 2360776
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2192
        "start_memory" => integer 2368592
        "stop_time" => float 1481283489.2193
        "stop_memory" => integer 2369168
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2195
        "start_memory" => integer 2382320
        "stop_time" => float 1481283489.2195
        "stop_memory" => integer 2382920
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2197
        "start_memory" => integer 2389936
        "stop_time" => float 1481283489.2197
        "stop_memory" => integer 2390528
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2199
        "start_memory" => integer 2403832
        "stop_time" => float 1481283489.2199
        "stop_memory" => integer 2404424
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2202
        "start_memory" => integer 2418056
        "stop_time" => float 1481283489.2202
        "stop_memory" => integer 2418648
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2204
        "start_memory" => integer 2428128
        "stop_time" => float 1481283489.2204
        "stop_memory" => integer 2428720
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2206
        "start_memory" => integer 2437392
        "stop_time" => float 1481283489.2206
        "stop_memory" => integer 2437984
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2209
        "start_memory" => integer 2483320
        "stop_time" => float 1481283489.2209
        "stop_memory" => integer 2483896
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2212
        "start_memory" => integer 2506824
        "stop_time" => float 1481283489.2212
        "stop_memory" => integer 2507424
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2214
        "start_memory" => integer 2520720
        "stop_time" => float 1481283489.2215
        "stop_memory" => integer 2521296
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2217
        "start_memory" => integer 2540496
        "stop_time" => float 1481283489.2217
        "stop_memory" => integer 2541080
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.222
        "start_memory" => integer 2554736
        "stop_time" => float 1481283489.222
        "stop_memory" => integer 2555304
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2221
        "start_memory" => integer 2558760
        "stop_time" => float 1481283489.2221
        "stop_memory" => integer 2559344
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2223
        "start_memory" => integer 2581544
        "stop_time" => float 1481283489.2223
        "stop_memory" => integer 2582104
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2224
        "start_memory" => integer 2585536
        "stop_time" => float 1481283489.2224
        "stop_memory" => integer 2586120
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2243
        "start_memory" => integer 2680048
        "stop_time" => float 1481283489.2244
        "stop_memory" => integer 2680624
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2297
        "start_memory" => integer 2711200
        "stop_time" => float 1481283489.2298
        "stop_memory" => integer 2711776
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2299
        "start_memory" => integer 2715256
        "stop_time" => float 1481283489.2299
        "stop_memory" => integer 2715848
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.233
        "start_memory" => integer 2734960
        "stop_time" => float 1481283489.233
        "stop_memory" => integer 2735544
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2331
        "start_memory" => integer 2739072
        "stop_time" => float 1481283489.2331
        "stop_memory" => integer 2739672
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2362
        "start_memory" => integer 2758856
        "stop_time" => float 1481283489.2363
        "stop_memory" => integer 2759416
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2363
        "start_memory" => integer 2762896
        "stop_time" => float 1481283489.2364
        "stop_memory" => integer 2764000
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2368
        "start_memory" => integer 2818512
        "stop_time" => float 1481283489.2369
        "stop_memory" => integer 2819112
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2403
        "start_memory" => integer 2826424
        "stop_time" => float 1481283489.2403
        "stop_memory" => integer 2827000
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2404
        "start_memory" => integer 2830528
        "stop_time" => float 1481283489.2404
        "stop_memory" => integer 2831128
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2506
        "start_memory" => integer 2870792
        "stop_time" => float 1481283489.2506
        "stop_memory" => integer 2871368
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2507
        "start_memory" => integer 2874896
        "stop_time" => float 1481283489.2507
        "stop_memory" => integer 2875496
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2509
        "start_memory" => integer 2891472
        "stop_time" => float 1481283489.2509
        "stop_memory" => integer 2892048
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2513
        "start_memory" => integer 2899352
        "stop_time" => float 1481283489.2514
        "stop_memory" => integer 2899920
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2515
        "start_memory" => integer 2903392
        "stop_time" => float 1481283489.2515
        "stop_memory" => integer 2903984
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2522
        "start_memory" => integer 2953456
        "stop_time" => float 1481283489.2523
        "stop_memory" => integer 2954040
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2524
        "start_memory" => integer 2957544
        "stop_time" => float 1481283489.2524
        "stop_memory" => integer 2958144
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2562
        "start_memory" => integer 2977544
        "stop_time" => float 1481283489.2562
        "stop_memory" => integer 2978104
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2563
        "start_memory" => integer 2981600
        "stop_time" => float 1481283489.2563
        "stop_memory" => integer 2982192
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2568
        "start_memory" => integer 2997344
        "stop_time" => float 1481283489.2569
        "stop_memory" => integer 2997880
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.257
        "start_memory" => integer 3001288
        "stop_time" => float 1481283489.257
        "stop_memory" => integer 3001864
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2582
        "start_memory" => integer 3008536
        "stop_time" => float 1481283489.2583
        "stop_memory" => integer 3009136
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2583
        "start_memory" => integer 3012648
        "stop_time" => float 1481283489.2584
        "stop_memory" => integer 3013248
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2609
        "start_memory" => integer 3048296
        "stop_time" => float 1481283489.261
        "stop_memory" => integer 3048888
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2614
        "start_memory" => integer 3056584
        "stop_time" => float 1481283489.2614
        "stop_memory" => integer 3057144
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2615
        "start_memory" => integer 3060632
        "stop_time" => float 1481283489.2616
        "stop_memory" => integer 3061224
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.264
        "start_memory" => integer 3078864
        "stop_time" => float 1481283489.264
        "stop_memory" => integer 3079448
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2654
        "start_memory" => integer 3084048
        "stop_time" => float 1481283489.2654
        "stop_memory" => integer 3084616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2655
        "start_memory" => integer 3088080
        "stop_time" => float 1481283489.2655
        "stop_memory" => integer 3088672
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2673
        "start_memory" => integer 3182704
        "stop_time" => float 1481283489.2673
        "stop_memory" => integer 3183304
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2674
        "start_memory" => integer 3186856
        "stop_time" => float 1481283489.2675
        "stop_memory" => integer 3187448
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2679
        "start_memory" => integer 3201024
        "stop_time" => float 1481283489.2679
        "stop_memory" => integer 3201616
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.268
        "start_memory" => integer 3205168
        "stop_time" => float 1481283489.268
        "stop_memory" => integer 3205776
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2691
        "start_memory" => integer 3210808
        "stop_time" => float 1481283489.2691
        "stop_memory" => integer 3211376
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2692
        "start_memory" => integer 3214880
        "stop_time" => float 1481283489.2692
        "stop_memory" => integer 3215480
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2701
        "start_memory" => integer 3310288
        "stop_time" => float 1481283489.2702
        "stop_memory" => integer 3310880
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2703
        "start_memory" => integer 3314432
        "stop_time" => float 1481283489.2703
        "stop_memory" => integer 3315040
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2705
        "start_memory" => integer 3327080
        "stop_time" => float 1481283489.2705
        "stop_memory" => integer 3327648
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2706
        "start_memory" => integer 3331152
        "stop_time" => float 1481283489.2706
        "stop_memory" => integer 3331776
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2713
        "start_memory" => integer 3375416
        "stop_time" => float 1481283489.2714
        "stop_memory" => integer 3375992
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2714
        "start_memory" => integer 3379512
        "stop_time" => float 1481283489.2715
        "stop_memory" => integer 3380112
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2721
        "start_memory" => integer 3424744
        "stop_time" => float 1481283489.2721
        "stop_memory" => integer 3425320
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2722
        "start_memory" => integer 3428824
        "stop_time" => float 1481283489.2722
        "stop_memory" => integer 3429424
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.273
        "start_memory" => integer 3456736
        "stop_time" => float 1481283489.273
        "stop_memory" => integer 3457328
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2731
        "start_memory" => integer 3460888
        "stop_time" => float 1481283489.2731
        "stop_memory" => integer 3461496
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2739
        "start_memory" => integer 3497736
        "stop_time" => float 1481283489.2739
        "stop_memory" => integer 3498336
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.274
        "start_memory" => integer 3501968
        "stop_time" => float 1481283489.2741
        "stop_memory" => integer 3502584
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2742
        "start_memory" => integer 3514728
        "stop_time" => float 1481283489.2743
        "stop_memory" => integer 3515320
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2743
        "start_memory" => integer 3518944
        "stop_time" => float 1481283489.2744
        "stop_memory" => integer 3519560
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2751
        "start_memory" => integer 3571680
        "stop_time" => float 1481283489.2751
        "stop_memory" => integer 3572272
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2752
        "start_memory" => integer 3575880
        "stop_time" => float 1481283489.2752
        "stop_memory" => integer 3576496
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.276
        "start_memory" => integer 3609088
        "stop_time" => float 1481283489.276
        "stop_memory" => integer 3609680
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2761
        "start_memory" => integer 3613304
        "stop_time" => float 1481283489.2761
        "stop_memory" => integer 3613920
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2769
        "start_memory" => integer 3642544
        "stop_time" => float 1481283489.277
        "stop_memory" => integer 3643136
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2771
        "start_memory" => integer 3646744
        "stop_time" => float 1481283489.2771
        "stop_memory" => integer 3647360
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2781
        "start_memory" => integer 3723280
        "stop_time" => float 1481283489.2781
        "stop_memory" => integer 3723872
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2782
        "start_memory" => integer 3727480
        "stop_time" => float 1481283489.2782
        "stop_memory" => integer 3728096
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2798
        "start_memory" => integer 3764576
        "stop_time" => float 1481283489.2798
        "stop_memory" => integer 3765152
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2799
        "start_memory" => integer 3768712
        "stop_time" => float 1481283489.2799
        "stop_memory" => integer 3769320
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2806
        "start_memory" => integer 3787648
        "stop_time" => float 1481283489.2806
        "stop_memory" => integer 3788184
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2807
        "start_memory" => integer 3791632
        "stop_time" => float 1481283489.2808
        "stop_memory" => integer 3792200
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2816
        "start_memory" => integer 3861760
        "stop_time" => float 1481283489.2817
        "stop_memory" => integer 3862344
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2817
        "start_memory" => integer 3865800
        "stop_time" => float 1481283489.2818
        "stop_memory" => integer 3866376
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2849
        "start_memory" => integer 3880576
        "stop_time" => float 1481283489.285
        "stop_memory" => integer 3881136
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.285
        "start_memory" => integer 3884568
        "stop_time" => float 1481283489.2851
        "stop_memory" => integer 3885152
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2871
        "start_memory" => integer 3906992
        "stop_time" => float 1481283489.2871
        "stop_memory" => integer 3907552
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2872
        "start_memory" => integer 3910976
        "stop_time" => float 1481283489.2873
        "stop_memory" => integer 3911544
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2878
        "start_memory" => integer 3934688
        "stop_time" => float 1481283489.2879
        "stop_memory" => integer 3935256
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.288
        "start_memory" => integer 3938704
        "stop_time" => float 1481283489.288
        "stop_memory" => integer 3939272
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2886
        "start_memory" => integer 3965216
        "stop_time" => float 1481283489.2886
        "stop_memory" => integer 3965784
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2887
        "start_memory" => integer 3969208
        "stop_time" => float 1481283489.2888
        "stop_memory" => integer 3970800
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2897
        "start_memory" => integer 4017920
        "stop_time" => float 1481283489.2898
        "stop_memory" => integer 4018488
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2898
        "start_memory" => integer 4021928
        "stop_time" => float 1481283489.2899
        "stop_memory" => integer 4022512
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2914
        "start_memory" => integer 4037080
        "stop_time" => float 1481283489.2915
        "stop_memory" => integer 4037640
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2915
        "start_memory" => integer 4041088
        "stop_time" => float 1481283489.2916
        "stop_memory" => integer 4041656
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2926
        "start_memory" => integer 4058280
        "stop_time" => float 1481283489.2926
        "stop_memory" => integer 4058864
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2927
        "start_memory" => integer 4062344
        "stop_time" => float 1481283489.2928
        "stop_memory" => integer 4062936
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2933
        "start_memory" => integer 4079400
        "stop_time" => float 1481283489.2933
        "stop_memory" => integer 4079968
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2934
        "start_memory" => integer 4083472
        "stop_time" => float 1481283489.2934
        "stop_memory" => integer 4084064
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2939
        "start_memory" => integer 4097648
        "stop_time" => float 1481283489.294
        "stop_memory" => integer 4098216
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2941
        "start_memory" => integer 4101720
        "stop_time" => float 1481283489.2941
        "stop_memory" => integer 4102312
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2946
        "start_memory" => integer 4115912
        "stop_time" => float 1481283489.2946
        "stop_memory" => integer 4116480
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2947
        "start_memory" => integer 4119984
        "stop_time" => float 1481283489.2948
        "stop_memory" => integer 4120576
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2952
        "start_memory" => integer 4134176
        "stop_time" => float 1481283489.2953
        "stop_memory" => integer 4134744
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2954
        "start_memory" => integer 4138248
        "stop_time" => float 1481283489.2954
        "stop_memory" => integer 4138840
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2959
        "start_memory" => integer 4152424
        "stop_time" => float 1481283489.2959
        "stop_memory" => integer 4152992
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.296
        "start_memory" => integer 4156496
        "stop_time" => float 1481283489.2961
        "stop_memory" => integer 4157088
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2965
        "start_memory" => integer 4170672
        "stop_time" => float 1481283489.2966
        "stop_memory" => integer 4171240
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2967
        "start_memory" => integer 4174744
        "stop_time" => float 1481283489.2967
        "stop_memory" => integer 4175336
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2972
        "start_memory" => integer 4188936
        "stop_time" => float 1481283489.2972
        "stop_memory" => integer 4189504
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2973
        "start_memory" => integer 4193008
        "stop_time" => float 1481283489.2974
        "stop_memory" => integer 4193600
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2978
        "start_memory" => integer 4207184
        "stop_time" => float 1481283489.2979
        "stop_memory" => integer 4207752
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.298
        "start_memory" => integer 4211256
        "stop_time" => float 1481283489.298
        "stop_memory" => integer 4211848
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2985
        "start_memory" => integer 4225528
        "stop_time" => float 1481283489.2986
        "stop_memory" => integer 4226096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2986
        "start_memory" => integer 4229600
        "stop_time" => float 1481283489.2987
        "stop_memory" => integer 4230192
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2992
        "start_memory" => integer 4243800
        "stop_time" => float 1481283489.2992
        "stop_memory" => integer 4244368
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2993
        "start_memory" => integer 4247872
        "stop_time" => float 1481283489.2994
        "stop_memory" => integer 4248464
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2998
        "start_memory" => integer 4262048
        "stop_time" => float 1481283489.2999
        "stop_memory" => integer 4262616
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.2999
        "start_memory" => integer 4266120
        "stop_time" => float 1481283489.3
        "stop_memory" => integer 4266712
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3005
        "start_memory" => integer 4280280
        "stop_time" => float 1481283489.3005
        "stop_memory" => integer 4280848
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3006
        "start_memory" => integer 4284352
        "stop_time" => float 1481283489.3007
        "stop_memory" => integer 4284944
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3011
        "start_memory" => integer 4298528
        "stop_time" => float 1481283489.3012
        "stop_memory" => integer 4299096
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3013
        "start_memory" => integer 4302600
        "stop_time" => float 1481283489.3013
        "stop_memory" => integer 4303192
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3018
        "start_memory" => integer 4316792
        "stop_time" => float 1481283489.3018
        "stop_memory" => integer 4317360
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3019
        "start_memory" => integer 4320864
        "stop_time" => float 1481283489.302
        "stop_memory" => integer 4321456
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3024
        "start_memory" => integer 4335072
        "stop_time" => float 1481283489.3025
        "stop_memory" => integer 4335640
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3025
        "start_memory" => integer 4339144
        "stop_time" => float 1481283489.3026
        "stop_memory" => integer 4339736
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3031
        "start_memory" => integer 4353336
        "stop_time" => float 1481283489.3031
        "stop_memory" => integer 4353904
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3032
        "start_memory" => integer 4357408
        "stop_time" => float 1481283489.3033
        "stop_memory" => integer 4358000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3037
        "start_memory" => integer 4371728
        "stop_time" => float 1481283489.3038
        "stop_memory" => integer 4372296
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3039
        "start_memory" => integer 4375800
        "stop_time" => float 1481283489.3039
        "stop_memory" => integer 4376392
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3044
        "start_memory" => integer 4390008
        "stop_time" => float 1481283489.3044
        "stop_memory" => integer 4390576
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3045
        "start_memory" => integer 4394080
        "stop_time" => float 1481283489.3046
        "stop_memory" => integer 4394672
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.305
        "start_memory" => integer 4408272
        "stop_time" => float 1481283489.3051
        "stop_memory" => integer 4408840
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3052
        "start_memory" => integer 4412344
        "stop_time" => float 1481283489.3052
        "stop_memory" => integer 4412936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3057
        "start_memory" => integer 4426536
        "stop_time" => float 1481283489.3058
        "stop_memory" => integer 4427104
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3058
        "start_memory" => integer 4430608
        "stop_time" => float 1481283489.3059
        "stop_memory" => integer 4431200
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3063
        "start_memory" => integer 4444784
        "stop_time" => float 1481283489.3064
        "stop_memory" => integer 4445352
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3065
        "start_memory" => integer 4448856
        "stop_time" => float 1481283489.3065
        "stop_memory" => integer 4449448
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.307
        "start_memory" => integer 4463032
        "stop_time" => float 1481283489.3071
        "stop_memory" => integer 4463600
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3071
        "start_memory" => integer 4467104
        "stop_time" => float 1481283489.3072
        "stop_memory" => integer 4467696
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3077
        "start_memory" => integer 4481312
        "stop_time" => float 1481283489.3077
        "stop_memory" => integer 4481880
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3078
        "start_memory" => integer 4485384
        "stop_time" => float 1481283489.3079
        "stop_memory" => integer 4485976
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3083
        "start_memory" => integer 4499560
        "stop_time" => float 1481283489.3084
        "stop_memory" => integer 4500128
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3085
        "start_memory" => integer 4503632
        "stop_time" => float 1481283489.3085
        "stop_memory" => integer 4504224
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3097
        "start_memory" => integer 4518048
        "stop_time" => float 1481283489.3098
        "stop_memory" => integer 4518616
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3099
        "start_memory" => integer 4522120
        "stop_time" => float 1481283489.31
        "stop_memory" => integer 4522712
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3121
        "start_memory" => integer 4545632
        "stop_time" => float 1481283489.3122
        "stop_memory" => integer 4546200
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3123
        "start_memory" => integer 4549664
        "stop_time" => float 1481283489.3123
        "stop_memory" => integer 4550240
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3133
        "start_memory" => integer 4631376
        "stop_time" => float 1481283489.3134
        "stop_memory" => integer 4631952
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3135
        "start_memory" => integer 4635416
        "stop_time" => float 1481283489.3135
        "stop_memory" => integer 4636008
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3147
        "start_memory" => integer 4737152
        "stop_time" => float 1481283489.3147
        "stop_memory" => integer 4737704
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3148
        "start_memory" => integer 4741160
        "stop_time" => float 1481283489.3149
        "stop_memory" => integer 4741744
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3166
        "start_memory" => integer 4774712
        "stop_time" => float 1481283489.3166
        "stop_memory" => integer 4775304
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3167
        "start_memory" => integer 4778800
        "stop_time" => float 1481283489.3168
        "stop_memory" => integer 4779400
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3173
        "start_memory" => integer 4804992
        "stop_time" => float 1481283489.3174
        "stop_memory" => integer 4805584
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3175
        "start_memory" => integer 4809136
        "stop_time" => float 1481283489.3175
        "stop_memory" => integer 4809744
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3184
        "start_memory" => integer 4828448
        "stop_time" => float 1481283489.3185
        "stop_memory" => integer 4829016
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3186
        "start_memory" => integer 4832520
        "stop_time" => float 1481283489.3186
        "stop_memory" => integer 4833120
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.32
        "start_memory" => integer 4851688
        "stop_time" => float 1481283489.32
        "stop_memory" => integer 4852280
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3223
        "start_memory" => integer 4861968
        "stop_time" => float 1481283489.3224
        "stop_memory" => integer 4862544
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3226
        "start_memory" => integer 4871200
        "stop_time" => float 1481283489.3227
        "stop_memory" => integer 4871784
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3237
        "start_memory" => integer 4881192
        "stop_time" => float 1481283489.3237
        "stop_memory" => integer 4881744
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3238
        "start_memory" => integer 4885200
        "stop_time" => float 1481283489.3239
        "stop_memory" => integer 4885784
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3243
        "start_memory" => integer 4889792
        "stop_time" => float 1481283489.3243
        "stop_memory" => integer 4890352
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3244
        "start_memory" => integer 4893856
        "stop_time" => float 1481283489.3245
        "stop_memory" => integer 4894440
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3249
        "start_memory" => integer 4898336
        "stop_time" => float 1481283489.3249
        "stop_memory" => integer 4898896
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.325
        "start_memory" => integer 4902448
        "stop_time" => float 1481283489.3251
        "stop_memory" => integer 4903040
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3258
        "start_memory" => integer 4912056
        "stop_time" => float 1481283489.3259
        "stop_memory" => integer 4912640
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.326
        "start_memory" => integer 4916096
        "stop_time" => float 1481283489.326
        "stop_memory" => integer 4916680
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3264
        "start_memory" => integer 4918792
        "stop_time" => float 1481283489.3265
        "stop_memory" => integer 4919432
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3266
        "start_memory" => integer 4926144
        "stop_time" => float 1481283489.3266
        "stop_memory" => integer 4926688
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3267
        "start_memory" => integer 4930136
        "stop_time" => float 1481283489.3268
        "stop_memory" => integer 4930720
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3285
        "start_memory" => integer 5162336
        "stop_time" => float 1481283489.3285
        "stop_memory" => integer 5162928
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3291
        "start_memory" => integer 5219592
        "stop_time" => float 1481283489.3292
        "stop_memory" => integer 5220176
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3296
        "start_memory" => integer 5254560
        "stop_time" => float 1481283489.3296
        "stop_memory" => integer 5255144
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3297
        "start_memory" => integer 5258648
        "stop_time" => float 1481283489.3298
        "stop_memory" => integer 5259248
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3302
        "start_memory" => integer 5265272
        "stop_time" => float 1481283489.3302
        "stop_memory" => integer 5265832
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3306
        "start_memory" => integer 5291944
        "stop_time" => float 1481283489.3306
        "stop_memory" => integer 5292520
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.331
        "start_memory" => integer 5321432
        "stop_time" => float 1481283489.3311
        "stop_memory" => integer 5322024
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3314
        "start_memory" => integer 5348736
        "stop_time" => float 1481283489.3315
        "stop_memory" => integer 5349272
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3316
        "start_memory" => integer 5352784
        "stop_time" => float 1481283489.3316
        "stop_memory" => integer 5353368
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3332
        "start_memory" => integer 5380520
        "stop_time" => float 1481283489.3333
        "stop_memory" => integer 5381136
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3334
        "start_memory" => integer 5384952
        "stop_time" => float 1481283489.3334
        "stop_memory" => integer 5385560
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3353
        "start_memory" => integer 5417392
        "stop_time" => float 1481283489.3354
        "stop_memory" => integer 5417960
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3354
        "start_memory" => integer 5421600
        "stop_time" => float 1481283489.3355
        "stop_memory" => integer 5422200
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3387
        "start_memory" => integer 5486944
        "stop_time" => float 1481283489.3387
        "stop_memory" => integer 5487488
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3388
        "start_memory" => integer 5491032
        "stop_time" => float 1481283489.3389
        "stop_memory" => integer 5491680
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3393
        "start_memory" => integer 5501784
        "stop_time" => float 1481283489.3393
        "stop_memory" => integer 5502360
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3394
        "start_memory" => integer 5505808
        "stop_time" => float 1481283489.3395
        "stop_memory" => integer 5506392
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3401
        "start_memory" => integer 5551032
        "stop_time" => float 1481283489.3402
        "stop_memory" => integer 5551608
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3402
        "start_memory" => integer 5555184
        "stop_time" => float 1481283489.3403
        "stop_memory" => integer 5555800
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3407
        "start_memory" => integer 5576144
        "stop_time" => float 1481283489.3408
        "stop_memory" => integer 5576752
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3408
        "start_memory" => integer 5580344
        "stop_time" => float 1481283489.3409
        "stop_memory" => integer 5580936
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3418
        "start_memory" => integer 5629600
        "stop_time" => float 1481283489.3419
        "stop_memory" => integer 5630192
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.342
        "start_memory" => integer 5633704
        "stop_time" => float 1481283489.342
        "stop_memory" => integer 5634304
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3425
        "start_memory" => integer 5656560
        "stop_time" => float 1481283489.3425
        "stop_memory" => integer 5657136
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3426
        "start_memory" => integer 5660648
        "stop_time" => float 1481283489.3427
        "stop_memory" => integer 5661216
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3435
        "start_memory" => integer 5733752
        "stop_time" => float 1481283489.3436
        "stop_memory" => integer 5734336
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3437
        "start_memory" => integer 5737824
        "stop_time" => float 1481283489.3437
        "stop_memory" => integer 5738408
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3475
        "start_memory" => integer 5757592
        "stop_time" => float 1481283489.3475
        "stop_memory" => integer 5758152
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3476
        "start_memory" => integer 5761656
        "stop_time" => float 1481283489.3477
        "stop_memory" => integer 5762296
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3484
        "start_memory" => integer 5821704
        "stop_time" => float 1481283489.3485
        "stop_memory" => integer 5822280
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3485
        "start_memory" => integer 5825824
        "stop_time" => float 1481283489.3486
        "stop_memory" => integer 5826448
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3494
        "start_memory" => integer 5895584
        "stop_time" => float 1481283489.3495
        "stop_memory" => integer 5896232
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3495
        "start_memory" => integer 5899816
        "stop_time" => float 1481283489.3496
        "stop_memory" => integer 5900400
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3503
        "start_memory" => integer 5918448
        "stop_time" => float 1481283489.3504
        "stop_memory" => integer 5919080
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3506
        "start_memory" => integer 5885024
        "stop_time" => float 1481283489.3507
        "stop_memory" => integer 5887344
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3512
        "start_memory" => integer 5923536
        "stop_time" => float 1481283489.3512
        "stop_memory" => integer 5925200
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481283489.3512
        "start_memory" => integer 5924832
        "stop_time" => float 1481283489.3513
        "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'],
	);
}