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 1469723259.1665
        "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 1469723259.1665
        "start_memory" => integer 1119128
        "stop_time" => float 1469723259.1666
        "stop_memory" => integer 1119816
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1667
        "start_memory" => integer 1123360
        "stop_time" => float 1469723259.1667
        "stop_memory" => integer 1123968
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1674
        "start_memory" => integer 1200424
        "stop_time" => float 1469723259.1675
        "stop_memory" => integer 1200976
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1675
        "start_memory" => integer 1204472
        "stop_time" => float 1469723259.1676
        "stop_memory" => integer 1205064
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1677
        "start_memory" => integer 1213032
        "stop_time" => float 1469723259.1677
        "stop_memory" => integer 1213584
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1678
        "start_memory" => integer 1217056
        "stop_time" => float 1469723259.1679
        "stop_memory" => integer 1217640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.168
        "start_memory" => integer 1226504
        "stop_time" => float 1469723259.1681
        "stop_memory" => integer 1227064
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1681
        "start_memory" => integer 1230504
        "stop_time" => float 1469723259.1682
        "stop_memory" => integer 1231152
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1691
        "start_memory" => integer 1325992
        "stop_time" => float 1469723259.1692
        "stop_memory" => integer 1326568
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1692
        "start_memory" => integer 1330048
        "stop_time" => float 1469723259.1693
        "stop_memory" => integer 1330640
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1694
        "start_memory" => integer 1342424
        "stop_time" => float 1469723259.1695
        "stop_memory" => integer 1342976
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1695
        "start_memory" => integer 1346400
        "stop_time" => float 1469723259.1696
        "stop_memory" => integer 1346968
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1699
        "start_memory" => integer 1381360
        "stop_time" => float 1469723259.17
        "stop_memory" => integer 1381976
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.17
        "start_memory" => integer 1383048
        "stop_time" => float 1469723259.17
        "stop_memory" => integer 1383584
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1701
        "start_memory" => integer 1386992
        "stop_time" => float 1469723259.1702
        "stop_memory" => integer 1387568
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1704
        "start_memory" => integer 1406816
        "stop_time" => float 1469723259.1705
        "stop_memory" => integer 1407520
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1705
        "start_memory" => integer 1410944
        "stop_time" => float 1469723259.1706
        "stop_memory" => integer 1411512
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1714
        "start_memory" => integer 1507168
        "stop_time" => float 1469723259.1714
        "stop_memory" => integer 1507768
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1715
        "start_memory" => integer 1511272
        "stop_time" => float 1469723259.1715
        "stop_memory" => integer 1511872
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1719
        "start_memory" => integer 1551144
        "stop_time" => float 1469723259.172
        "stop_memory" => integer 1551648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.172
        "start_memory" => integer 1552288
        "stop_time" => float 1469723259.1721
        "stop_memory" => integer 1552872
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1755
        "start_memory" => integer 1952056
        "stop_time" => float 1469723259.1755
        "stop_memory" => integer 1952640
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1756
        "start_memory" => integer 1956144
        "stop_time" => float 1469723259.1757
        "stop_memory" => integer 1956744
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1758
        "start_memory" => integer 1958376
        "stop_time" => float 1469723259.1758
        "stop_memory" => integer 1958976
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1759
        "start_memory" => integer 1962488
        "stop_time" => float 1469723259.1759
        "stop_memory" => integer 1963064
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1762
        "start_memory" => integer 1992712
        "stop_time" => float 1469723259.1763
        "stop_memory" => integer 1993272
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1764
        "start_memory" => integer 1996776
        "stop_time" => float 1469723259.1764
        "stop_memory" => integer 1997376
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1772
        "start_memory" => integer 2059664
        "stop_time" => float 1469723259.1772
        "stop_memory" => integer 2060216
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1773
        "start_memory" => integer 2063640
        "stop_time" => float 1469723259.1774
        "stop_memory" => integer 2064208
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.1789
        "start_memory" => integer 2123168
        "stop_time" => float 1469723259.179
        "stop_memory" => integer 2123784
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2339
        "start_memory" => integer 2164656
        "stop_time" => float 1469723259.2339
        "stop_memory" => integer 2165232
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.234
        "start_memory" => integer 2168656
        "stop_time" => float 1469723259.2341
        "stop_memory" => integer 2169496
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2347
        "start_memory" => integer 2195744
        "stop_time" => float 1469723259.2347
        "stop_memory" => integer 2196320
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2348
        "start_memory" => integer 2199800
        "stop_time" => float 1469723259.2348
        "stop_memory" => integer 2200392
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2359
        "start_memory" => integer 2217688
        "stop_time" => float 1469723259.236
        "stop_memory" => integer 2218256
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.236
        "start_memory" => integer 2221728
        "stop_time" => float 1469723259.2361
        "stop_memory" => integer 2222320
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2367
        "start_memory" => integer 2265808
        "stop_time" => float 1469723259.2368
        "stop_memory" => integer 2266408
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2369
        "start_memory" => integer 2277928
        "stop_time" => float 1469723259.2369
        "stop_memory" => integer 2278504
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.237
        "start_memory" => integer 2282048
        "stop_time" => float 1469723259.237
        "stop_memory" => integer 2282632
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2375
        "start_memory" => integer 2320624
        "stop_time" => float 1469723259.2375
        "stop_memory" => integer 2321224
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2377
        "start_memory" => integer 2333344
        "stop_time" => float 1469723259.2378
        "stop_memory" => integer 2333920
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2381
        "start_memory" => integer 2360936
        "stop_time" => float 1469723259.2382
        "stop_memory" => integer 2361536
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2384
        "start_memory" => integer 2369352
        "stop_time" => float 1469723259.2384
        "stop_memory" => integer 2369928
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2386
        "start_memory" => integer 2383080
        "stop_time" => float 1469723259.2386
        "stop_memory" => integer 2383680
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2388
        "start_memory" => integer 2390696
        "stop_time" => float 1469723259.2388
        "stop_memory" => integer 2391288
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.239
        "start_memory" => integer 2404592
        "stop_time" => float 1469723259.2391
        "stop_memory" => integer 2405184
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2393
        "start_memory" => integer 2418816
        "stop_time" => float 1469723259.2394
        "stop_memory" => integer 2419408
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2395
        "start_memory" => integer 2428888
        "stop_time" => float 1469723259.2396
        "stop_memory" => integer 2429480
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2398
        "start_memory" => integer 2438152
        "stop_time" => float 1469723259.2398
        "stop_memory" => integer 2438744
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2401
        "start_memory" => integer 2484096
        "stop_time" => float 1469723259.2401
        "stop_memory" => integer 2484672
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2404
        "start_memory" => integer 2507600
        "stop_time" => float 1469723259.2404
        "stop_memory" => integer 2508200
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2407
        "start_memory" => integer 2521496
        "stop_time" => float 1469723259.2407
        "stop_memory" => integer 2522072
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2409
        "start_memory" => integer 2541272
        "stop_time" => float 1469723259.241
        "stop_memory" => integer 2541856
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2412
        "start_memory" => integer 2555512
        "stop_time" => float 1469723259.2412
        "stop_memory" => integer 2556080
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2413
        "start_memory" => integer 2559536
        "stop_time" => float 1469723259.2413
        "stop_memory" => integer 2560120
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2415
        "start_memory" => integer 2582320
        "stop_time" => float 1469723259.2416
        "stop_memory" => integer 2582880
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2416
        "start_memory" => integer 2586312
        "stop_time" => float 1469723259.2417
        "stop_memory" => integer 2586896
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2438
        "start_memory" => integer 2680824
        "stop_time" => float 1469723259.2438
        "stop_memory" => integer 2681400
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2498
        "start_memory" => integer 2711976
        "stop_time" => float 1469723259.2499
        "stop_memory" => integer 2712552
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.25
        "start_memory" => integer 2716032
        "stop_time" => float 1469723259.25
        "stop_memory" => integer 2716624
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2532
        "start_memory" => integer 2735760
        "stop_time" => float 1469723259.2533
        "stop_memory" => integer 2736344
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2533
        "start_memory" => integer 2739896
        "stop_time" => float 1469723259.2534
        "stop_memory" => integer 2740496
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2566
        "start_memory" => integer 2759688
        "stop_time" => float 1469723259.2566
        "stop_memory" => integer 2760248
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2567
        "start_memory" => integer 2763728
        "stop_time" => float 1469723259.2567
        "stop_memory" => integer 2764832
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2573
        "start_memory" => integer 2819368
        "stop_time" => float 1469723259.2573
        "stop_memory" => integer 2819968
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2633
        "start_memory" => integer 2827320
        "stop_time" => float 1469723259.2634
        "stop_memory" => integer 2827896
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2635
        "start_memory" => integer 2831400
        "stop_time" => float 1469723259.2635
        "stop_memory" => integer 2832000
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2795
        "start_memory" => integer 2871664
        "stop_time" => float 1469723259.2796
        "stop_memory" => integer 2872240
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2797
        "start_memory" => integer 2875768
        "stop_time" => float 1469723259.2798
        "stop_memory" => integer 2876368
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2799
        "start_memory" => integer 2892320
        "stop_time" => float 1469723259.28
        "stop_memory" => integer 2892896
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2804
        "start_memory" => integer 2900208
        "stop_time" => float 1469723259.2805
        "stop_memory" => integer 2900776
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2805
        "start_memory" => integer 2904248
        "stop_time" => float 1469723259.2806
        "stop_memory" => integer 2904840
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2814
        "start_memory" => integer 2954312
        "stop_time" => float 1469723259.2814
        "stop_memory" => integer 2954896
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2815
        "start_memory" => integer 2958400
        "stop_time" => float 1469723259.2815
        "stop_memory" => integer 2959000
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2858
        "start_memory" => integer 2978400
        "stop_time" => float 1469723259.2858
        "stop_memory" => integer 2978960
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2859
        "start_memory" => integer 2982456
        "stop_time" => float 1469723259.2859
        "stop_memory" => integer 2983048
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2865
        "start_memory" => integer 2998200
        "stop_time" => float 1469723259.2865
        "stop_memory" => integer 2998736
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2866
        "start_memory" => integer 3002144
        "stop_time" => float 1469723259.2867
        "stop_memory" => integer 3002720
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2878
        "start_memory" => integer 3009392
        "stop_time" => float 1469723259.2878
        "stop_memory" => integer 3009992
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2879
        "start_memory" => integer 3013504
        "stop_time" => float 1469723259.288
        "stop_memory" => integer 3014104
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2906
        "start_memory" => integer 3049152
        "stop_time" => float 1469723259.2906
        "stop_memory" => integer 3049744
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.291
        "start_memory" => integer 3057440
        "stop_time" => float 1469723259.2911
        "stop_memory" => integer 3058000
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2911
        "start_memory" => integer 3061488
        "stop_time" => float 1469723259.2912
        "stop_memory" => integer 3062080
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2938
        "start_memory" => integer 3079720
        "stop_time" => float 1469723259.2938
        "stop_memory" => integer 3080304
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2954
        "start_memory" => integer 3084904
        "stop_time" => float 1469723259.2954
        "stop_memory" => integer 3085472
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2955
        "start_memory" => integer 3088936
        "stop_time" => float 1469723259.2955
        "stop_memory" => integer 3089528
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2974
        "start_memory" => integer 3183560
        "stop_time" => float 1469723259.2975
        "stop_memory" => integer 3184160
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2975
        "start_memory" => integer 3187712
        "stop_time" => float 1469723259.2976
        "stop_memory" => integer 3188304
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.298
        "start_memory" => integer 3201880
        "stop_time" => float 1469723259.298
        "stop_memory" => integer 3202472
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2981
        "start_memory" => integer 3206024
        "stop_time" => float 1469723259.2981
        "stop_memory" => integer 3206632
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2992
        "start_memory" => integer 3211664
        "stop_time" => float 1469723259.2992
        "stop_memory" => integer 3212232
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.2993
        "start_memory" => integer 3215760
        "stop_time" => float 1469723259.2994
        "stop_memory" => integer 3216360
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3005
        "start_memory" => integer 3311168
        "stop_time" => float 1469723259.3005
        "stop_memory" => integer 3311760
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3006
        "start_memory" => integer 3315312
        "stop_time" => float 1469723259.3006
        "stop_memory" => integer 3315920
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3008
        "start_memory" => integer 3327960
        "stop_time" => float 1469723259.3008
        "stop_memory" => integer 3328528
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3009
        "start_memory" => integer 3332032
        "stop_time" => float 1469723259.3009
        "stop_memory" => integer 3332656
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3017
        "start_memory" => integer 3376296
        "stop_time" => float 1469723259.3017
        "stop_memory" => integer 3376872
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3018
        "start_memory" => integer 3380392
        "stop_time" => float 1469723259.3018
        "stop_memory" => integer 3380992
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3025
        "start_memory" => integer 3425624
        "stop_time" => float 1469723259.3025
        "stop_memory" => integer 3426200
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3026
        "start_memory" => integer 3429704
        "stop_time" => float 1469723259.3026
        "stop_memory" => integer 3430304
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3034
        "start_memory" => integer 3457616
        "stop_time" => float 1469723259.3034
        "stop_memory" => integer 3458208
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3035
        "start_memory" => integer 3461768
        "stop_time" => float 1469723259.3036
        "stop_memory" => integer 3462376
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3044
        "start_memory" => integer 3498616
        "stop_time" => float 1469723259.3044
        "stop_memory" => integer 3499216
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3045
        "start_memory" => integer 3502848
        "stop_time" => float 1469723259.3045
        "stop_memory" => integer 3503464
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3047
        "start_memory" => integer 3515608
        "stop_time" => float 1469723259.3047
        "stop_memory" => integer 3516200
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3048
        "start_memory" => integer 3519824
        "stop_time" => float 1469723259.3048
        "stop_memory" => integer 3520440
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3056
        "start_memory" => integer 3572560
        "stop_time" => float 1469723259.3056
        "stop_memory" => integer 3573152
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3057
        "start_memory" => integer 3576760
        "stop_time" => float 1469723259.3057
        "stop_memory" => integer 3577376
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3065
        "start_memory" => integer 3609968
        "stop_time" => float 1469723259.3065
        "stop_memory" => integer 3610560
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3066
        "start_memory" => integer 3614184
        "stop_time" => float 1469723259.3066
        "stop_memory" => integer 3614800
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3074
        "start_memory" => integer 3643424
        "stop_time" => float 1469723259.3074
        "stop_memory" => integer 3644016
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3075
        "start_memory" => integer 3647624
        "stop_time" => float 1469723259.3076
        "stop_memory" => integer 3648240
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3086
        "start_memory" => integer 3724160
        "stop_time" => float 1469723259.3086
        "stop_memory" => integer 3724752
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3087
        "start_memory" => integer 3728360
        "stop_time" => float 1469723259.3088
        "stop_memory" => integer 3728976
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3104
        "start_memory" => integer 3765528
        "stop_time" => float 1469723259.3105
        "stop_memory" => integer 3766104
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3105
        "start_memory" => integer 3769664
        "stop_time" => float 1469723259.3106
        "stop_memory" => integer 3770272
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3112
        "start_memory" => integer 3788600
        "stop_time" => float 1469723259.3113
        "stop_memory" => integer 3789136
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3113
        "start_memory" => integer 3792584
        "stop_time" => float 1469723259.3114
        "stop_memory" => integer 3793152
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3125
        "start_memory" => integer 3862712
        "stop_time" => float 1469723259.3125
        "stop_memory" => integer 3863296
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3126
        "start_memory" => integer 3866752
        "stop_time" => float 1469723259.3126
        "stop_memory" => integer 3867328
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3161
        "start_memory" => integer 3881528
        "stop_time" => float 1469723259.3161
        "stop_memory" => integer 3882088
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3162
        "start_memory" => integer 3885520
        "stop_time" => float 1469723259.3162
        "stop_memory" => integer 3886104
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3183
        "start_memory" => integer 3907944
        "stop_time" => float 1469723259.3184
        "stop_memory" => integer 3908504
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3185
        "start_memory" => integer 3911928
        "stop_time" => float 1469723259.3186
        "stop_memory" => integer 3912496
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3192
        "start_memory" => integer 3935640
        "stop_time" => float 1469723259.3193
        "stop_memory" => integer 3936208
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3193
        "start_memory" => integer 3939640
        "stop_time" => float 1469723259.3194
        "stop_memory" => integer 3940208
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.32
        "start_memory" => integer 3966144
        "stop_time" => float 1469723259.3201
        "stop_memory" => integer 3966712
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3202
        "start_memory" => integer 3970136
        "stop_time" => float 1469723259.3202
        "stop_memory" => integer 3971728
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3213
        "start_memory" => integer 4018888
        "stop_time" => float 1469723259.3213
        "stop_memory" => integer 4019456
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3214
        "start_memory" => integer 4022896
        "stop_time" => float 1469723259.3214
        "stop_memory" => integer 4023480
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.323
        "start_memory" => integer 4038024
        "stop_time" => float 1469723259.323
        "stop_memory" => integer 4038584
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3231
        "start_memory" => integer 4042032
        "stop_time" => float 1469723259.3232
        "stop_memory" => integer 4042600
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3242
        "start_memory" => integer 4059232
        "stop_time" => float 1469723259.3243
        "stop_memory" => integer 4059816
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3243
        "start_memory" => integer 4063296
        "stop_time" => float 1469723259.3244
        "stop_memory" => integer 4063888
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3249
        "start_memory" => integer 4080352
        "stop_time" => float 1469723259.325
        "stop_memory" => integer 4080920
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.325
        "start_memory" => integer 4084424
        "stop_time" => float 1469723259.3251
        "stop_memory" => integer 4085016
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3256
        "start_memory" => integer 4098600
        "stop_time" => float 1469723259.3257
        "stop_memory" => integer 4099168
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3257
        "start_memory" => integer 4102672
        "stop_time" => float 1469723259.3258
        "stop_memory" => integer 4103264
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3263
        "start_memory" => integer 4116864
        "stop_time" => float 1469723259.3263
        "stop_memory" => integer 4117432
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3264
        "start_memory" => integer 4120936
        "stop_time" => float 1469723259.3265
        "stop_memory" => integer 4121528
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3269
        "start_memory" => integer 4135128
        "stop_time" => float 1469723259.327
        "stop_memory" => integer 4135696
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3271
        "start_memory" => integer 4139200
        "stop_time" => float 1469723259.3271
        "stop_memory" => integer 4139792
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3276
        "start_memory" => integer 4153376
        "stop_time" => float 1469723259.3277
        "stop_memory" => integer 4153944
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3277
        "start_memory" => integer 4157448
        "stop_time" => float 1469723259.3278
        "stop_memory" => integer 4158040
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3282
        "start_memory" => integer 4171624
        "stop_time" => float 1469723259.3283
        "stop_memory" => integer 4172192
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3284
        "start_memory" => integer 4175696
        "stop_time" => float 1469723259.3284
        "stop_memory" => integer 4176288
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3289
        "start_memory" => integer 4189888
        "stop_time" => float 1469723259.3289
        "stop_memory" => integer 4190456
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.329
        "start_memory" => integer 4193960
        "stop_time" => float 1469723259.3291
        "stop_memory" => integer 4194552
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3295
        "start_memory" => integer 4208136
        "stop_time" => float 1469723259.3296
        "stop_memory" => integer 4208704
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3297
        "start_memory" => integer 4212208
        "stop_time" => float 1469723259.3297
        "stop_memory" => integer 4212800
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3302
        "start_memory" => integer 4226480
        "stop_time" => float 1469723259.3302
        "stop_memory" => integer 4227048
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3303
        "start_memory" => integer 4230552
        "stop_time" => float 1469723259.3304
        "stop_memory" => integer 4231144
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3308
        "start_memory" => integer 4244728
        "stop_time" => float 1469723259.3309
        "stop_memory" => integer 4245296
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.331
        "start_memory" => integer 4248800
        "stop_time" => float 1469723259.331
        "stop_memory" => integer 4249392
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3315
        "start_memory" => integer 4262976
        "stop_time" => float 1469723259.3315
        "stop_memory" => integer 4263544
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3316
        "start_memory" => integer 4267048
        "stop_time" => float 1469723259.3317
        "stop_memory" => integer 4267640
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3321
        "start_memory" => integer 4281208
        "stop_time" => float 1469723259.3322
        "stop_memory" => integer 4281776
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3323
        "start_memory" => integer 4285280
        "stop_time" => float 1469723259.3323
        "stop_memory" => integer 4285872
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3328
        "start_memory" => integer 4299456
        "stop_time" => float 1469723259.3328
        "stop_memory" => integer 4300024
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3329
        "start_memory" => integer 4303528
        "stop_time" => float 1469723259.333
        "stop_memory" => integer 4304120
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3334
        "start_memory" => integer 4317720
        "stop_time" => float 1469723259.3335
        "stop_memory" => integer 4318288
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3336
        "start_memory" => integer 4321792
        "stop_time" => float 1469723259.3336
        "stop_memory" => integer 4322384
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3341
        "start_memory" => integer 4336000
        "stop_time" => float 1469723259.3341
        "stop_memory" => integer 4336568
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3343
        "start_memory" => integer 4340072
        "stop_time" => float 1469723259.3343
        "stop_memory" => integer 4340664
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3348
        "start_memory" => integer 4354264
        "stop_time" => float 1469723259.3348
        "stop_memory" => integer 4354832
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3349
        "start_memory" => integer 4358336
        "stop_time" => float 1469723259.3349
        "stop_memory" => integer 4358928
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3354
        "start_memory" => integer 4372656
        "stop_time" => float 1469723259.3355
        "stop_memory" => integer 4373224
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3356
        "start_memory" => integer 4376728
        "stop_time" => float 1469723259.3356
        "stop_memory" => integer 4377320
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3361
        "start_memory" => integer 4390936
        "stop_time" => float 1469723259.3361
        "stop_memory" => integer 4391504
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3362
        "start_memory" => integer 4395008
        "stop_time" => float 1469723259.3363
        "stop_memory" => integer 4395600
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3368
        "start_memory" => integer 4409200
        "stop_time" => float 1469723259.3368
        "stop_memory" => integer 4409768
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3369
        "start_memory" => integer 4413272
        "stop_time" => float 1469723259.3369
        "stop_memory" => integer 4413864
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3374
        "start_memory" => integer 4427464
        "stop_time" => float 1469723259.3375
        "stop_memory" => integer 4428032
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3375
        "start_memory" => integer 4431536
        "stop_time" => float 1469723259.3376
        "stop_memory" => integer 4432128
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3381
        "start_memory" => integer 4445712
        "stop_time" => float 1469723259.3381
        "stop_memory" => integer 4446280
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3382
        "start_memory" => integer 4449784
        "stop_time" => float 1469723259.3383
        "stop_memory" => integer 4450376
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3388
        "start_memory" => integer 4463960
        "stop_time" => float 1469723259.3389
        "stop_memory" => integer 4464528
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3389
        "start_memory" => integer 4468032
        "stop_time" => float 1469723259.339
        "stop_memory" => integer 4468624
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3395
        "start_memory" => integer 4482224
        "stop_time" => float 1469723259.3395
        "stop_memory" => integer 4482792
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3396
        "start_memory" => integer 4486296
        "stop_time" => float 1469723259.3397
        "stop_memory" => integer 4486888
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3401
        "start_memory" => integer 4500472
        "stop_time" => float 1469723259.3402
        "stop_memory" => integer 4501040
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3403
        "start_memory" => integer 4504544
        "stop_time" => float 1469723259.3403
        "stop_memory" => integer 4505136
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3415
        "start_memory" => integer 4518960
        "stop_time" => float 1469723259.3416
        "stop_memory" => integer 4519528
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3417
        "start_memory" => integer 4523032
        "stop_time" => float 1469723259.3417
        "stop_memory" => integer 4523624
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3437
        "start_memory" => integer 4546552
        "stop_time" => float 1469723259.3437
        "stop_memory" => integer 4547120
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3438
        "start_memory" => integer 4550584
        "stop_time" => float 1469723259.3439
        "stop_memory" => integer 4551160
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.345
        "start_memory" => integer 4632376
        "stop_time" => float 1469723259.345
        "stop_memory" => integer 4632952
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3451
        "start_memory" => integer 4636416
        "stop_time" => float 1469723259.3452
        "stop_memory" => integer 4637008
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3465
        "start_memory" => integer 4738184
        "stop_time" => float 1469723259.3466
        "stop_memory" => integer 4738736
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3467
        "start_memory" => integer 4742216
        "stop_time" => float 1469723259.3467
        "stop_memory" => integer 4742800
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3485
        "start_memory" => integer 4775784
        "stop_time" => float 1469723259.3486
        "stop_memory" => integer 4776376
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3487
        "start_memory" => integer 4779872
        "stop_time" => float 1469723259.3487
        "stop_memory" => integer 4780472
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3493
        "start_memory" => integer 4806040
        "stop_time" => float 1469723259.3494
        "stop_memory" => integer 4806632
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3494
        "start_memory" => integer 4810208
        "stop_time" => float 1469723259.3495
        "stop_memory" => integer 4810816
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3504
        "start_memory" => integer 4829520
        "stop_time" => float 1469723259.3505
        "stop_memory" => integer 4830088
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3506
        "start_memory" => integer 4833688
        "stop_time" => float 1469723259.3506
        "stop_memory" => integer 4834288
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.352
        "start_memory" => integer 4852888
        "stop_time" => float 1469723259.3521
        "stop_memory" => integer 4853480
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3546
        "start_memory" => integer 4863232
        "stop_time" => float 1469723259.3546
        "stop_memory" => integer 4863808
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3548
        "start_memory" => integer 4872640
        "stop_time" => float 1469723259.3549
        "stop_memory" => integer 4873224
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.356
        "start_memory" => integer 4882640
        "stop_time" => float 1469723259.356
        "stop_memory" => integer 4883192
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3561
        "start_memory" => integer 4886656
        "stop_time" => float 1469723259.3562
        "stop_memory" => integer 4887256
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3566
        "start_memory" => integer 4891232
        "stop_time" => float 1469723259.3566
        "stop_memory" => integer 4891792
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3567
        "start_memory" => integer 4895328
        "stop_time" => float 1469723259.3568
        "stop_memory" => integer 4895928
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3573
        "start_memory" => integer 4899856
        "stop_time" => float 1469723259.3573
        "stop_memory" => integer 4900456
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3574
        "start_memory" => integer 4903968
        "stop_time" => float 1469723259.3574
        "stop_memory" => integer 4904568
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3582
        "start_memory" => integer 4913504
        "stop_time" => float 1469723259.3583
        "stop_memory" => integer 4914088
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3584
        "start_memory" => integer 4917624
        "stop_time" => float 1469723259.3584
        "stop_memory" => integer 4918240
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3589
        "start_memory" => integer 4920344
        "stop_time" => float 1469723259.359
        "stop_memory" => integer 4921008
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3591
        "start_memory" => integer 4927728
        "stop_time" => float 1469723259.3591
        "stop_memory" => integer 4928256
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3592
        "start_memory" => integer 4931728
        "stop_time" => float 1469723259.3593
        "stop_memory" => integer 4932312
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3614
        "start_memory" => integer 5163928
        "stop_time" => float 1469723259.3615
        "stop_memory" => integer 5164520
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3622
        "start_memory" => integer 5221336
        "stop_time" => float 1469723259.3622
        "stop_memory" => integer 5221920
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3627
        "start_memory" => integer 5256376
        "stop_time" => float 1469723259.3628
        "stop_memory" => integer 5256960
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3628
        "start_memory" => integer 5260480
        "stop_time" => float 1469723259.3629
        "stop_memory" => integer 5261080
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3633
        "start_memory" => integer 5267112
        "stop_time" => float 1469723259.3633
        "stop_memory" => integer 5267672
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3637
        "start_memory" => integer 5293832
        "stop_time" => float 1469723259.3638
        "stop_memory" => integer 5294408
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3642
        "start_memory" => integer 5323376
        "stop_time" => float 1469723259.3642
        "stop_memory" => integer 5323968
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3647
        "start_memory" => integer 5350648
        "stop_time" => float 1469723259.3647
        "stop_memory" => integer 5351184
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3648
        "start_memory" => integer 5354696
        "stop_time" => float 1469723259.3648
        "stop_memory" => integer 5355272
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3666
        "start_memory" => integer 5382464
        "stop_time" => float 1469723259.3666
        "stop_memory" => integer 5383096
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3667
        "start_memory" => integer 5386880
        "stop_time" => float 1469723259.3668
        "stop_memory" => integer 5387496
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.369
        "start_memory" => integer 5419248
        "stop_time" => float 1469723259.369
        "stop_memory" => integer 5419816
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3691
        "start_memory" => integer 5423448
        "stop_time" => float 1469723259.3692
        "stop_memory" => integer 5424048
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3729
        "start_memory" => integer 5488848
        "stop_time" => float 1469723259.373
        "stop_memory" => integer 5489392
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3731
        "start_memory" => integer 5492968
        "stop_time" => float 1469723259.3732
        "stop_memory" => integer 5493576
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3737
        "start_memory" => integer 5503600
        "stop_time" => float 1469723259.3738
        "stop_memory" => integer 5504160
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3738
        "start_memory" => integer 5507696
        "stop_time" => float 1469723259.3739
        "stop_memory" => integer 5508280
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3747
        "start_memory" => integer 5552784
        "stop_time" => float 1469723259.3748
        "stop_memory" => integer 5553392
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3748
        "start_memory" => integer 5556872
        "stop_time" => float 1469723259.3749
        "stop_memory" => integer 5557488
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3754
        "start_memory" => integer 5577832
        "stop_time" => float 1469723259.3754
        "stop_memory" => integer 5578496
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3755
        "start_memory" => integer 5581984
        "stop_time" => float 1469723259.3755
        "stop_memory" => integer 5582584
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3766
        "start_memory" => integer 5631216
        "stop_time" => float 1469723259.3766
        "stop_memory" => integer 5631792
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3768
        "start_memory" => integer 5635296
        "stop_time" => float 1469723259.3769
        "stop_memory" => integer 5635888
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3777
        "start_memory" => integer 5658120
        "stop_time" => float 1469723259.3778
        "stop_memory" => integer 5658712
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3779
        "start_memory" => integer 5662328
        "stop_time" => float 1469723259.378
        "stop_memory" => integer 5662872
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3792
        "start_memory" => integer 5735440
        "stop_time" => float 1469723259.3792
        "stop_memory" => integer 5736040
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3793
        "start_memory" => integer 5739528
        "stop_time" => float 1469723259.3794
        "stop_memory" => integer 5740112
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3837
        "start_memory" => integer 5759280
        "stop_time" => float 1469723259.3838
        "stop_memory" => integer 5759840
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.384
        "start_memory" => integer 5763344
        "stop_time" => float 1469723259.384
        "stop_memory" => integer 5763968
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.385
        "start_memory" => integer 5823520
        "stop_time" => float 1469723259.3851
        "stop_memory" => integer 5824112
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3852
        "start_memory" => integer 5827592
        "stop_time" => float 1469723259.3852
        "stop_memory" => integer 5828184
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3862
        "start_memory" => integer 5897312
        "stop_time" => float 1469723259.3862
        "stop_memory" => integer 5897936
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3863
        "start_memory" => integer 5901552
        "stop_time" => float 1469723259.3864
        "stop_memory" => integer 5902128
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3871
        "start_memory" => integer 5920192
        "stop_time" => float 1469723259.3872
        "stop_memory" => integer 5920816
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3875
        "start_memory" => integer 5886760
        "stop_time" => float 1469723259.3875
        "stop_memory" => integer 5889080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3881
        "start_memory" => integer 5925264
        "stop_time" => float 1469723259.3881
        "stop_memory" => integer 5926928
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469723259.3881
        "start_memory" => integer 5926560
        "stop_time" => float 1469723259.3882
        "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'],
	);
}