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 1467204674.1447
        "start_memory" => integer 1116888
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1447
        "start_memory" => integer 1119128
        "stop_time" => float 1467204674.1447
        "stop_memory" => integer 1119816
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1448
        "start_memory" => integer 1123360
        "stop_time" => float 1467204674.1449
        "stop_memory" => integer 1123968
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1457
        "start_memory" => integer 1200424
        "stop_time" => float 1467204674.1457
        "stop_memory" => integer 1200976
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1458
        "start_memory" => integer 1204472
        "stop_time" => float 1467204674.1458
        "stop_memory" => integer 1205064
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1459
        "start_memory" => integer 1213032
        "stop_time" => float 1467204674.146
        "stop_memory" => integer 1213584
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1461
        "start_memory" => integer 1217056
        "stop_time" => float 1467204674.1461
        "stop_memory" => integer 1217640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1463
        "start_memory" => integer 1226504
        "stop_time" => float 1467204674.1464
        "stop_memory" => integer 1227064
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1465
        "start_memory" => integer 1230504
        "stop_time" => float 1467204674.1465
        "stop_memory" => integer 1231152
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1475
        "start_memory" => integer 1325992
        "stop_time" => float 1467204674.1476
        "stop_memory" => integer 1326568
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1477
        "start_memory" => integer 1330048
        "stop_time" => float 1467204674.1477
        "stop_memory" => integer 1330640
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1479
        "start_memory" => integer 1342424
        "stop_time" => float 1467204674.148
        "stop_memory" => integer 1342976
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.148
        "start_memory" => integer 1346400
        "stop_time" => float 1467204674.1481
        "stop_memory" => integer 1346968
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1485
        "start_memory" => integer 1381360
        "stop_time" => float 1467204674.1486
        "stop_memory" => integer 1381976
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1486
        "start_memory" => integer 1383048
        "stop_time" => float 1467204674.1486
        "stop_memory" => integer 1383584
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1487
        "start_memory" => integer 1386992
        "stop_time" => float 1467204674.1487
        "stop_memory" => integer 1387568
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.149
        "start_memory" => integer 1406816
        "stop_time" => float 1467204674.1491
        "stop_memory" => integer 1407520
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1492
        "start_memory" => integer 1410944
        "stop_time" => float 1467204674.1492
        "stop_memory" => integer 1411512
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1501
        "start_memory" => integer 1507168
        "stop_time" => float 1467204674.1501
        "stop_memory" => integer 1507768
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1502
        "start_memory" => integer 1511272
        "stop_time" => float 1467204674.1503
        "stop_memory" => integer 1511872
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1508
        "start_memory" => integer 1551144
        "stop_time" => float 1467204674.1508
        "stop_memory" => integer 1551648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1508
        "start_memory" => integer 1552288
        "stop_time" => float 1467204674.1509
        "stop_memory" => integer 1552872
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1547
        "start_memory" => integer 1952056
        "stop_time" => float 1467204674.1547
        "stop_memory" => integer 1952640
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1548
        "start_memory" => integer 1956144
        "stop_time" => float 1467204674.1549
        "stop_memory" => integer 1956744
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.155
        "start_memory" => integer 1958376
        "stop_time" => float 1467204674.155
        "stop_memory" => integer 1958976
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1551
        "start_memory" => integer 1962488
        "stop_time" => float 1467204674.1551
        "stop_memory" => integer 1963064
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1555
        "start_memory" => integer 1992712
        "stop_time" => float 1467204674.1556
        "stop_memory" => integer 1993272
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1556
        "start_memory" => integer 1996776
        "stop_time" => float 1467204674.1557
        "stop_memory" => integer 1997376
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1565
        "start_memory" => integer 2059664
        "stop_time" => float 1467204674.1566
        "stop_memory" => integer 2060216
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1566
        "start_memory" => integer 2063640
        "stop_time" => float 1467204674.1567
        "stop_memory" => integer 2064208
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.1584
        "start_memory" => integer 2123168
        "stop_time" => float 1467204674.1585
        "stop_memory" => integer 2123784
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.227
        "start_memory" => integer 2164656
        "stop_time" => float 1467204674.2271
        "stop_memory" => integer 2165232
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2272
        "start_memory" => integer 2168656
        "stop_time" => float 1467204674.2272
        "stop_memory" => integer 2169496
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.228
        "start_memory" => integer 2195744
        "stop_time" => float 1467204674.228
        "stop_memory" => integer 2196320
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.228
        "start_memory" => integer 2199800
        "stop_time" => float 1467204674.2281
        "stop_memory" => integer 2200392
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2294
        "start_memory" => integer 2217688
        "stop_time" => float 1467204674.2294
        "stop_memory" => integer 2218256
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2295
        "start_memory" => integer 2221728
        "stop_time" => float 1467204674.2296
        "stop_memory" => integer 2222320
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2302
        "start_memory" => integer 2265808
        "stop_time" => float 1467204674.2303
        "stop_memory" => integer 2266408
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2305
        "start_memory" => integer 2277928
        "stop_time" => float 1467204674.2305
        "stop_memory" => integer 2278504
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2306
        "start_memory" => integer 2282048
        "stop_time" => float 1467204674.2306
        "stop_memory" => integer 2282632
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2311
        "start_memory" => integer 2320624
        "stop_time" => float 1467204674.2311
        "stop_memory" => integer 2321224
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2314
        "start_memory" => integer 2333344
        "stop_time" => float 1467204674.2314
        "stop_memory" => integer 2333920
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2318
        "start_memory" => integer 2360936
        "stop_time" => float 1467204674.2318
        "stop_memory" => integer 2361536
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.232
        "start_memory" => integer 2369352
        "stop_time" => float 1467204674.232
        "stop_memory" => integer 2369928
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2322
        "start_memory" => integer 2383080
        "stop_time" => float 1467204674.2323
        "stop_memory" => integer 2383680
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2325
        "start_memory" => integer 2390696
        "stop_time" => float 1467204674.2325
        "stop_memory" => integer 2391288
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2328
        "start_memory" => integer 2404592
        "stop_time" => float 1467204674.2328
        "stop_memory" => integer 2405184
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.233
        "start_memory" => integer 2418816
        "stop_time" => float 1467204674.2331
        "stop_memory" => integer 2419408
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2333
        "start_memory" => integer 2428888
        "stop_time" => float 1467204674.2333
        "stop_memory" => integer 2429480
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2335
        "start_memory" => integer 2438152
        "stop_time" => float 1467204674.2336
        "stop_memory" => integer 2438744
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2338
        "start_memory" => integer 2484096
        "stop_time" => float 1467204674.2339
        "stop_memory" => integer 2484672
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2342
        "start_memory" => integer 2507600
        "stop_time" => float 1467204674.2342
        "stop_memory" => integer 2508200
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2345
        "start_memory" => integer 2521496
        "stop_time" => float 1467204674.2346
        "stop_memory" => integer 2522072
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2348
        "start_memory" => integer 2541272
        "stop_time" => float 1467204674.2348
        "stop_memory" => integer 2541856
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2351
        "start_memory" => integer 2555512
        "stop_time" => float 1467204674.2351
        "stop_memory" => integer 2556080
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2352
        "start_memory" => integer 2559536
        "stop_time" => float 1467204674.2352
        "stop_memory" => integer 2560120
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2355
        "start_memory" => integer 2582320
        "stop_time" => float 1467204674.2355
        "stop_memory" => integer 2582880
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2356
        "start_memory" => integer 2586312
        "stop_time" => float 1467204674.2357
        "stop_memory" => integer 2586896
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2383
        "start_memory" => integer 2680824
        "stop_time" => float 1467204674.2384
        "stop_memory" => integer 2681400
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2448
        "start_memory" => integer 2711976
        "stop_time" => float 1467204674.2448
        "stop_memory" => integer 2712552
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2449
        "start_memory" => integer 2716032
        "stop_time" => float 1467204674.245
        "stop_memory" => integer 2716624
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2482
        "start_memory" => integer 2735760
        "stop_time" => float 1467204674.2482
        "stop_memory" => integer 2736344
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2483
        "start_memory" => integer 2739896
        "stop_time" => float 1467204674.2483
        "stop_memory" => integer 2740496
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2515
        "start_memory" => integer 2759688
        "stop_time" => float 1467204674.2515
        "stop_memory" => integer 2760248
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2516
        "start_memory" => integer 2763728
        "stop_time" => float 1467204674.2516
        "stop_memory" => integer 2764832
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2523
        "start_memory" => integer 2819368
        "stop_time" => float 1467204674.2523
        "stop_memory" => integer 2819968
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2557
        "start_memory" => integer 2827320
        "stop_time" => float 1467204674.2558
        "stop_memory" => integer 2827896
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2559
        "start_memory" => integer 2831400
        "stop_time" => float 1467204674.2559
        "stop_memory" => integer 2832000
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2668
        "start_memory" => integer 2871664
        "stop_time" => float 1467204674.2669
        "stop_memory" => integer 2872240
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.267
        "start_memory" => integer 2875768
        "stop_time" => float 1467204674.267
        "stop_memory" => integer 2876368
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2672
        "start_memory" => integer 2892320
        "stop_time" => float 1467204674.2672
        "stop_memory" => integer 2892896
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2677
        "start_memory" => integer 2900208
        "stop_time" => float 1467204674.2677
        "stop_memory" => integer 2900776
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2678
        "start_memory" => integer 2904248
        "stop_time" => float 1467204674.2678
        "stop_memory" => integer 2904840
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2686
        "start_memory" => integer 2954312
        "stop_time" => float 1467204674.2686
        "stop_memory" => integer 2954896
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2687
        "start_memory" => integer 2958400
        "stop_time" => float 1467204674.2687
        "stop_memory" => integer 2959000
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2726
        "start_memory" => integer 2978400
        "stop_time" => float 1467204674.2726
        "stop_memory" => integer 2978960
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2727
        "start_memory" => integer 2982456
        "stop_time" => float 1467204674.2727
        "stop_memory" => integer 2983048
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2733
        "start_memory" => integer 2998200
        "stop_time" => float 1467204674.2733
        "stop_memory" => integer 2998736
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2734
        "start_memory" => integer 3002144
        "stop_time" => float 1467204674.2734
        "stop_memory" => integer 3002720
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2746
        "start_memory" => integer 3009392
        "stop_time" => float 1467204674.2746
        "stop_memory" => integer 3009992
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2747
        "start_memory" => integer 3013504
        "stop_time" => float 1467204674.2747
        "stop_memory" => integer 3014104
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2773
        "start_memory" => integer 3049152
        "stop_time" => float 1467204674.2774
        "stop_memory" => integer 3049744
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2778
        "start_memory" => integer 3057440
        "stop_time" => float 1467204674.2778
        "stop_memory" => integer 3058000
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2779
        "start_memory" => integer 3061488
        "stop_time" => float 1467204674.2779
        "stop_memory" => integer 3062080
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2805
        "start_memory" => integer 3079720
        "stop_time" => float 1467204674.2805
        "stop_memory" => integer 3080304
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2818
        "start_memory" => integer 3084904
        "stop_time" => float 1467204674.2818
        "stop_memory" => integer 3085472
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2819
        "start_memory" => integer 3088936
        "stop_time" => float 1467204674.2819
        "stop_memory" => integer 3089528
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2837
        "start_memory" => integer 3183560
        "stop_time" => float 1467204674.2838
        "stop_memory" => integer 3184160
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2839
        "start_memory" => integer 3187712
        "stop_time" => float 1467204674.2839
        "stop_memory" => integer 3188304
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2843
        "start_memory" => integer 3201880
        "stop_time" => float 1467204674.2843
        "stop_memory" => integer 3202472
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2844
        "start_memory" => integer 3206024
        "stop_time" => float 1467204674.2844
        "stop_memory" => integer 3206632
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2855
        "start_memory" => integer 3211664
        "stop_time" => float 1467204674.2855
        "stop_memory" => integer 3212232
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2856
        "start_memory" => integer 3215760
        "stop_time" => float 1467204674.2857
        "stop_memory" => integer 3216360
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2867
        "start_memory" => integer 3311168
        "stop_time" => float 1467204674.2868
        "stop_memory" => integer 3311760
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2868
        "start_memory" => integer 3315312
        "stop_time" => float 1467204674.2869
        "stop_memory" => integer 3315920
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.287
        "start_memory" => integer 3327960
        "stop_time" => float 1467204674.2871
        "stop_memory" => integer 3328528
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2871
        "start_memory" => integer 3332032
        "stop_time" => float 1467204674.2872
        "stop_memory" => integer 3332656
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.288
        "start_memory" => integer 3376296
        "stop_time" => float 1467204674.288
        "stop_memory" => integer 3376872
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2881
        "start_memory" => integer 3380392
        "stop_time" => float 1467204674.2881
        "stop_memory" => integer 3380992
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2888
        "start_memory" => integer 3425624
        "stop_time" => float 1467204674.2889
        "stop_memory" => integer 3426200
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2889
        "start_memory" => integer 3429704
        "stop_time" => float 1467204674.289
        "stop_memory" => integer 3430304
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2897
        "start_memory" => integer 3457616
        "stop_time" => float 1467204674.2897
        "stop_memory" => integer 3458208
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2898
        "start_memory" => integer 3461768
        "stop_time" => float 1467204674.2899
        "stop_memory" => integer 3462376
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2907
        "start_memory" => integer 3498616
        "stop_time" => float 1467204674.2907
        "stop_memory" => integer 3499216
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2908
        "start_memory" => integer 3502848
        "stop_time" => float 1467204674.2908
        "stop_memory" => integer 3503464
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.291
        "start_memory" => integer 3515608
        "stop_time" => float 1467204674.291
        "stop_memory" => integer 3516200
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2911
        "start_memory" => integer 3519824
        "stop_time" => float 1467204674.2911
        "stop_memory" => integer 3520440
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2919
        "start_memory" => integer 3572560
        "stop_time" => float 1467204674.2919
        "stop_memory" => integer 3573152
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.292
        "start_memory" => integer 3576760
        "stop_time" => float 1467204674.2921
        "stop_memory" => integer 3577376
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2928
        "start_memory" => integer 3609968
        "stop_time" => float 1467204674.2928
        "stop_memory" => integer 3610560
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2929
        "start_memory" => integer 3614184
        "stop_time" => float 1467204674.293
        "stop_memory" => integer 3614800
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2937
        "start_memory" => integer 3643424
        "stop_time" => float 1467204674.2937
        "stop_memory" => integer 3644016
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2938
        "start_memory" => integer 3647624
        "stop_time" => float 1467204674.2939
        "stop_memory" => integer 3648240
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2949
        "start_memory" => integer 3724160
        "stop_time" => float 1467204674.2949
        "stop_memory" => integer 3724752
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.295
        "start_memory" => integer 3728360
        "stop_time" => float 1467204674.295
        "stop_memory" => integer 3728976
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2966
        "start_memory" => integer 3765528
        "stop_time" => float 1467204674.2966
        "stop_memory" => integer 3766104
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2967
        "start_memory" => integer 3769664
        "stop_time" => float 1467204674.2968
        "stop_memory" => integer 3770272
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2974
        "start_memory" => integer 3788600
        "stop_time" => float 1467204674.2975
        "stop_memory" => integer 3789136
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2975
        "start_memory" => integer 3792584
        "stop_time" => float 1467204674.2976
        "stop_memory" => integer 3793152
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2986
        "start_memory" => integer 3862712
        "stop_time" => float 1467204674.2986
        "stop_memory" => integer 3863296
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.2987
        "start_memory" => integer 3866752
        "stop_time" => float 1467204674.2987
        "stop_memory" => integer 3867328
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3023
        "start_memory" => integer 3881528
        "stop_time" => float 1467204674.3023
        "stop_memory" => integer 3882088
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3024
        "start_memory" => integer 3885520
        "stop_time" => float 1467204674.3024
        "stop_memory" => integer 3886104
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3045
        "start_memory" => integer 3907944
        "stop_time" => float 1467204674.3045
        "stop_memory" => integer 3908504
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3046
        "start_memory" => integer 3911928
        "stop_time" => float 1467204674.3047
        "stop_memory" => integer 3912496
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3053
        "start_memory" => integer 3935640
        "stop_time" => float 1467204674.3053
        "stop_memory" => integer 3936208
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3054
        "start_memory" => integer 3939640
        "stop_time" => float 1467204674.3054
        "stop_memory" => integer 3940208
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.306
        "start_memory" => integer 3966144
        "stop_time" => float 1467204674.3061
        "stop_memory" => integer 3966712
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3061
        "start_memory" => integer 3970136
        "stop_time" => float 1467204674.3062
        "stop_memory" => integer 3971728
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3072
        "start_memory" => integer 4018888
        "stop_time" => float 1467204674.3073
        "stop_memory" => integer 4019456
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3074
        "start_memory" => integer 4022896
        "stop_time" => float 1467204674.3074
        "stop_memory" => integer 4023480
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.309
        "start_memory" => integer 4038024
        "stop_time" => float 1467204674.309
        "stop_memory" => integer 4038584
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3091
        "start_memory" => integer 4042032
        "stop_time" => float 1467204674.3092
        "stop_memory" => integer 4042600
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3102
        "start_memory" => integer 4059232
        "stop_time" => float 1467204674.3102
        "stop_memory" => integer 4059816
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3103
        "start_memory" => integer 4063296
        "stop_time" => float 1467204674.3103
        "stop_memory" => integer 4063888
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3109
        "start_memory" => integer 4080352
        "stop_time" => float 1467204674.3109
        "stop_memory" => integer 4080920
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.311
        "start_memory" => integer 4084424
        "stop_time" => float 1467204674.311
        "stop_memory" => integer 4085016
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3115
        "start_memory" => integer 4098600
        "stop_time" => float 1467204674.3116
        "stop_memory" => integer 4099168
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3116
        "start_memory" => integer 4102672
        "stop_time" => float 1467204674.3117
        "stop_memory" => integer 4103264
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3122
        "start_memory" => integer 4116864
        "stop_time" => float 1467204674.3122
        "stop_memory" => integer 4117432
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3123
        "start_memory" => integer 4120936
        "stop_time" => float 1467204674.3123
        "stop_memory" => integer 4121528
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3128
        "start_memory" => integer 4135128
        "stop_time" => float 1467204674.3129
        "stop_memory" => integer 4135696
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3129
        "start_memory" => integer 4139200
        "stop_time" => float 1467204674.313
        "stop_memory" => integer 4139792
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3135
        "start_memory" => integer 4153376
        "stop_time" => float 1467204674.3135
        "stop_memory" => integer 4153944
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3136
        "start_memory" => integer 4157448
        "stop_time" => float 1467204674.3137
        "stop_memory" => integer 4158040
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3142
        "start_memory" => integer 4171624
        "stop_time" => float 1467204674.3142
        "stop_memory" => integer 4172192
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3143
        "start_memory" => integer 4175696
        "stop_time" => float 1467204674.3143
        "stop_memory" => integer 4176288
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3148
        "start_memory" => integer 4189888
        "stop_time" => float 1467204674.3149
        "stop_memory" => integer 4190456
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3149
        "start_memory" => integer 4193960
        "stop_time" => float 1467204674.315
        "stop_memory" => integer 4194552
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3155
        "start_memory" => integer 4208136
        "stop_time" => float 1467204674.3155
        "stop_memory" => integer 4208704
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3156
        "start_memory" => integer 4212208
        "stop_time" => float 1467204674.3157
        "stop_memory" => integer 4212800
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3161
        "start_memory" => integer 4226480
        "stop_time" => float 1467204674.3162
        "stop_memory" => integer 4227048
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3163
        "start_memory" => integer 4230552
        "stop_time" => float 1467204674.3163
        "stop_memory" => integer 4231144
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3168
        "start_memory" => integer 4244728
        "stop_time" => float 1467204674.3168
        "stop_memory" => integer 4245296
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3169
        "start_memory" => integer 4248800
        "stop_time" => float 1467204674.317
        "stop_memory" => integer 4249392
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3175
        "start_memory" => integer 4262976
        "stop_time" => float 1467204674.3175
        "stop_memory" => integer 4263544
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3176
        "start_memory" => integer 4267048
        "stop_time" => float 1467204674.3177
        "stop_memory" => integer 4267640
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3181
        "start_memory" => integer 4281208
        "stop_time" => float 1467204674.3182
        "stop_memory" => integer 4281776
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3183
        "start_memory" => integer 4285280
        "stop_time" => float 1467204674.3183
        "stop_memory" => integer 4285872
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3188
        "start_memory" => integer 4299456
        "stop_time" => float 1467204674.3188
        "stop_memory" => integer 4300024
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3189
        "start_memory" => integer 4303528
        "stop_time" => float 1467204674.3189
        "stop_memory" => integer 4304120
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3194
        "start_memory" => integer 4317720
        "stop_time" => float 1467204674.3195
        "stop_memory" => integer 4318288
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3195
        "start_memory" => integer 4321792
        "stop_time" => float 1467204674.3196
        "stop_memory" => integer 4322384
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3201
        "start_memory" => integer 4336000
        "stop_time" => float 1467204674.3201
        "stop_memory" => integer 4336568
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3202
        "start_memory" => integer 4340072
        "stop_time" => float 1467204674.3203
        "stop_memory" => integer 4340664
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3207
        "start_memory" => integer 4354264
        "stop_time" => float 1467204674.3208
        "stop_memory" => integer 4354832
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3208
        "start_memory" => integer 4358336
        "stop_time" => float 1467204674.3209
        "stop_memory" => integer 4358928
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3214
        "start_memory" => integer 4372656
        "stop_time" => float 1467204674.3214
        "stop_memory" => integer 4373224
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3215
        "start_memory" => integer 4376728
        "stop_time" => float 1467204674.3216
        "stop_memory" => integer 4377320
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.322
        "start_memory" => integer 4390936
        "stop_time" => float 1467204674.3221
        "stop_memory" => integer 4391504
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3221
        "start_memory" => integer 4395008
        "stop_time" => float 1467204674.3222
        "stop_memory" => integer 4395600
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3227
        "start_memory" => integer 4409200
        "stop_time" => float 1467204674.3227
        "stop_memory" => integer 4409768
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3228
        "start_memory" => integer 4413272
        "stop_time" => float 1467204674.3228
        "stop_memory" => integer 4413864
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3233
        "start_memory" => integer 4427464
        "stop_time" => float 1467204674.3234
        "stop_memory" => integer 4428032
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3234
        "start_memory" => integer 4431536
        "stop_time" => float 1467204674.3235
        "stop_memory" => integer 4432128
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.324
        "start_memory" => integer 4445712
        "stop_time" => float 1467204674.324
        "stop_memory" => integer 4446280
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3241
        "start_memory" => integer 4449784
        "stop_time" => float 1467204674.3241
        "stop_memory" => integer 4450376
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3246
        "start_memory" => integer 4463960
        "stop_time" => float 1467204674.3247
        "stop_memory" => integer 4464528
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3247
        "start_memory" => integer 4468032
        "stop_time" => float 1467204674.3248
        "stop_memory" => integer 4468624
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3253
        "start_memory" => integer 4482224
        "stop_time" => float 1467204674.3253
        "stop_memory" => integer 4482792
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3254
        "start_memory" => integer 4486296
        "stop_time" => float 1467204674.3254
        "stop_memory" => integer 4486888
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3259
        "start_memory" => integer 4500472
        "stop_time" => float 1467204674.3259
        "stop_memory" => integer 4501040
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.326
        "start_memory" => integer 4504544
        "stop_time" => float 1467204674.3261
        "stop_memory" => integer 4505136
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3272
        "start_memory" => integer 4518960
        "stop_time" => float 1467204674.3272
        "stop_memory" => integer 4519528
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3273
        "start_memory" => integer 4523032
        "stop_time" => float 1467204674.3274
        "stop_memory" => integer 4523624
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3293
        "start_memory" => integer 4546552
        "stop_time" => float 1467204674.3294
        "stop_memory" => integer 4547120
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3294
        "start_memory" => integer 4550584
        "stop_time" => float 1467204674.3295
        "stop_memory" => integer 4551160
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3306
        "start_memory" => integer 4632376
        "stop_time" => float 1467204674.3306
        "stop_memory" => integer 4632952
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3307
        "start_memory" => integer 4636416
        "stop_time" => float 1467204674.3307
        "stop_memory" => integer 4637008
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.332
        "start_memory" => integer 4738184
        "stop_time" => float 1467204674.3321
        "stop_memory" => integer 4738736
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3322
        "start_memory" => integer 4742216
        "stop_time" => float 1467204674.3322
        "stop_memory" => integer 4742800
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.334
        "start_memory" => integer 4775784
        "stop_time" => float 1467204674.334
        "stop_memory" => integer 4776376
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3341
        "start_memory" => integer 4779872
        "stop_time" => float 1467204674.3341
        "stop_memory" => integer 4780472
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3347
        "start_memory" => integer 4806040
        "stop_time" => float 1467204674.3347
        "stop_memory" => integer 4806632
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3348
        "start_memory" => integer 4810208
        "stop_time" => float 1467204674.3349
        "stop_memory" => integer 4810816
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3358
        "start_memory" => integer 4829520
        "stop_time" => float 1467204674.3359
        "stop_memory" => integer 4830088
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3359
        "start_memory" => integer 4833688
        "stop_time" => float 1467204674.336
        "stop_memory" => integer 4834288
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3374
        "start_memory" => integer 4852888
        "stop_time" => float 1467204674.3374
        "stop_memory" => integer 4853480
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3398
        "start_memory" => integer 4863232
        "stop_time" => float 1467204674.3398
        "stop_memory" => integer 4863808
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.34
        "start_memory" => integer 4872640
        "stop_time" => float 1467204674.3401
        "stop_memory" => integer 4873224
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3411
        "start_memory" => integer 4882640
        "stop_time" => float 1467204674.3412
        "stop_memory" => integer 4883192
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3412
        "start_memory" => integer 4886656
        "stop_time" => float 1467204674.3413
        "stop_memory" => integer 4887256
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3417
        "start_memory" => integer 4891232
        "stop_time" => float 1467204674.3418
        "stop_memory" => integer 4891792
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3418
        "start_memory" => integer 4895328
        "stop_time" => float 1467204674.3419
        "stop_memory" => integer 4895928
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3423
        "start_memory" => integer 4899856
        "stop_time" => float 1467204674.3423
        "stop_memory" => integer 4900456
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3424
        "start_memory" => integer 4903968
        "stop_time" => float 1467204674.3424
        "stop_memory" => integer 4904568
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3432
        "start_memory" => integer 4913504
        "stop_time" => float 1467204674.3433
        "stop_memory" => integer 4914088
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3434
        "start_memory" => integer 4917624
        "stop_time" => float 1467204674.3434
        "stop_memory" => integer 4918240
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3438
        "start_memory" => integer 4920344
        "stop_time" => float 1467204674.3439
        "stop_memory" => integer 4921008
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.344
        "start_memory" => integer 4927728
        "stop_time" => float 1467204674.344
        "stop_memory" => integer 4928256
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3441
        "start_memory" => integer 4931728
        "stop_time" => float 1467204674.3442
        "stop_memory" => integer 4932312
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3462
        "start_memory" => integer 5163928
        "stop_time" => float 1467204674.3462
        "stop_memory" => integer 5164520
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3469
        "start_memory" => integer 5221336
        "stop_time" => float 1467204674.3469
        "stop_memory" => integer 5221920
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3474
        "start_memory" => integer 5256376
        "stop_time" => float 1467204674.3475
        "stop_memory" => integer 5256960
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3475
        "start_memory" => integer 5260480
        "stop_time" => float 1467204674.3476
        "stop_memory" => integer 5261080
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.348
        "start_memory" => integer 5267112
        "stop_time" => float 1467204674.348
        "stop_memory" => integer 5267672
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3484
        "start_memory" => integer 5293832
        "stop_time" => float 1467204674.3485
        "stop_memory" => integer 5294408
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3489
        "start_memory" => integer 5323376
        "stop_time" => float 1467204674.3489
        "stop_memory" => integer 5323968
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3493
        "start_memory" => integer 5350648
        "stop_time" => float 1467204674.3494
        "stop_memory" => integer 5351184
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3494
        "start_memory" => integer 5354696
        "stop_time" => float 1467204674.3495
        "stop_memory" => integer 5355272
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3512
        "start_memory" => integer 5382464
        "stop_time" => float 1467204674.3512
        "stop_memory" => integer 5383096
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3513
        "start_memory" => integer 5386880
        "stop_time" => float 1467204674.3514
        "stop_memory" => integer 5387496
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3533
        "start_memory" => integer 5419248
        "stop_time" => float 1467204674.3534
        "stop_memory" => integer 5419816
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3534
        "start_memory" => integer 5423448
        "stop_time" => float 1467204674.3535
        "stop_memory" => integer 5424048
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3569
        "start_memory" => integer 5488848
        "stop_time" => float 1467204674.3569
        "stop_memory" => integer 5489392
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.357
        "start_memory" => integer 5492968
        "stop_time" => float 1467204674.357
        "stop_memory" => integer 5493576
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3575
        "start_memory" => integer 5503600
        "stop_time" => float 1467204674.3576
        "stop_memory" => integer 5504160
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3576
        "start_memory" => integer 5507696
        "stop_time" => float 1467204674.3577
        "stop_memory" => integer 5508280
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3584
        "start_memory" => integer 5552784
        "stop_time" => float 1467204674.3585
        "stop_memory" => integer 5553392
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3586
        "start_memory" => integer 5556872
        "stop_time" => float 1467204674.3586
        "stop_memory" => integer 5557488
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3591
        "start_memory" => integer 5577832
        "stop_time" => float 1467204674.3591
        "stop_memory" => integer 5578496
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3592
        "start_memory" => integer 5581984
        "stop_time" => float 1467204674.3592
        "stop_memory" => integer 5582584
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3602
        "start_memory" => integer 5631216
        "stop_time" => float 1467204674.3603
        "stop_memory" => integer 5631792
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3604
        "start_memory" => integer 5635296
        "stop_time" => float 1467204674.3604
        "stop_memory" => integer 5635888
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3609
        "start_memory" => integer 5658120
        "stop_time" => float 1467204674.361
        "stop_memory" => integer 5658712
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.361
        "start_memory" => integer 5662328
        "stop_time" => float 1467204674.3611
        "stop_memory" => integer 5662872
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3621
        "start_memory" => integer 5735440
        "stop_time" => float 1467204674.3621
        "stop_memory" => integer 5736040
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3622
        "start_memory" => integer 5739528
        "stop_time" => float 1467204674.3623
        "stop_memory" => integer 5740112
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.366
        "start_memory" => integer 5759280
        "stop_time" => float 1467204674.3661
        "stop_memory" => integer 5759840
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3662
        "start_memory" => integer 5763344
        "stop_time" => float 1467204674.3663
        "stop_memory" => integer 5763968
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3671
        "start_memory" => integer 5823520
        "stop_time" => float 1467204674.3672
        "stop_memory" => integer 5824112
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3672
        "start_memory" => integer 5827592
        "stop_time" => float 1467204674.3673
        "stop_memory" => integer 5828184
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3682
        "start_memory" => integer 5897312
        "stop_time" => float 1467204674.3683
        "stop_memory" => integer 5897936
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3683
        "start_memory" => integer 5901552
        "stop_time" => float 1467204674.3684
        "stop_memory" => integer 5902128
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3691
        "start_memory" => integer 5920192
        "stop_time" => float 1467204674.3692
        "stop_memory" => integer 5920816
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3695
        "start_memory" => integer 5886760
        "stop_time" => float 1467204674.3695
        "stop_memory" => integer 5889080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.37
        "start_memory" => integer 5925264
        "stop_time" => float 1467204674.3701
        "stop_memory" => integer 5926928
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1467204674.3701
        "start_memory" => integer 5926560
        "stop_time" => float 1467204674.3702
        "stop_memory" => integer 5928232
    )
)

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