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 1464076450.0585
        "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 1464076450.0585
        "start_memory" => integer 1119128
        "stop_time" => float 1464076450.0585
        "stop_memory" => integer 1119816
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0586
        "start_memory" => integer 1123360
        "stop_time" => float 1464076450.0587
        "stop_memory" => integer 1123968
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0592
        "start_memory" => integer 1200424
        "stop_time" => float 1464076450.0593
        "stop_memory" => integer 1200976
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0594
        "start_memory" => integer 1204472
        "stop_time" => float 1464076450.0594
        "stop_memory" => integer 1205064
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0595
        "start_memory" => integer 1213032
        "stop_time" => float 1464076450.0596
        "stop_memory" => integer 1213584
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0596
        "start_memory" => integer 1217056
        "stop_time" => float 1464076450.0597
        "stop_memory" => integer 1217640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0598
        "start_memory" => integer 1226504
        "stop_time" => float 1464076450.0599
        "stop_memory" => integer 1227064
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0599
        "start_memory" => integer 1230504
        "stop_time" => float 1464076450.06
        "stop_memory" => integer 1231152
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0608
        "start_memory" => integer 1325992
        "stop_time" => float 1464076450.0609
        "stop_memory" => integer 1326568
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.061
        "start_memory" => integer 1330048
        "stop_time" => float 1464076450.061
        "stop_memory" => integer 1330640
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0612
        "start_memory" => integer 1342424
        "stop_time" => float 1464076450.0612
        "stop_memory" => integer 1342976
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0613
        "start_memory" => integer 1346400
        "stop_time" => float 1464076450.0613
        "stop_memory" => integer 1346968
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0617
        "start_memory" => integer 1381360
        "stop_time" => float 1464076450.0617
        "stop_memory" => integer 1381976
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0617
        "start_memory" => integer 1383048
        "stop_time" => float 1464076450.0618
        "stop_memory" => integer 1383584
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0618
        "start_memory" => integer 1386992
        "stop_time" => float 1464076450.0619
        "stop_memory" => integer 1387568
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0622
        "start_memory" => integer 1406816
        "stop_time" => float 1464076450.0622
        "stop_memory" => integer 1407520
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0623
        "start_memory" => integer 1410944
        "stop_time" => float 1464076450.0623
        "stop_memory" => integer 1411512
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.063
        "start_memory" => integer 1507168
        "stop_time" => float 1464076450.0631
        "stop_memory" => integer 1507768
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0632
        "start_memory" => integer 1511272
        "stop_time" => float 1464076450.0632
        "stop_memory" => integer 1511872
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0636
        "start_memory" => integer 1551144
        "stop_time" => float 1464076450.0636
        "stop_memory" => integer 1551648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0637
        "start_memory" => integer 1552288
        "stop_time" => float 1464076450.0637
        "stop_memory" => integer 1552872
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0671
        "start_memory" => integer 1952056
        "stop_time" => float 1464076450.0671
        "stop_memory" => integer 1952640
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0672
        "start_memory" => integer 1956144
        "stop_time" => float 1464076450.0672
        "stop_memory" => integer 1956744
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0674
        "start_memory" => integer 1958376
        "stop_time" => float 1464076450.0674
        "stop_memory" => integer 1958976
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0675
        "start_memory" => integer 1962488
        "stop_time" => float 1464076450.0675
        "stop_memory" => integer 1963064
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0678
        "start_memory" => integer 1992712
        "stop_time" => float 1464076450.0679
        "stop_memory" => integer 1993272
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.068
        "start_memory" => integer 1996776
        "stop_time" => float 1464076450.068
        "stop_memory" => integer 1997376
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0687
        "start_memory" => integer 2059664
        "stop_time" => float 1464076450.0687
        "stop_memory" => integer 2060216
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0688
        "start_memory" => integer 2063640
        "stop_time" => float 1464076450.0689
        "stop_memory" => integer 2064208
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.0703
        "start_memory" => integer 2123168
        "stop_time" => float 1464076450.0704
        "stop_memory" => integer 2123784
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1421
        "start_memory" => integer 2164656
        "stop_time" => float 1464076450.1421
        "stop_memory" => integer 2165232
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1423
        "start_memory" => integer 2168656
        "stop_time" => float 1464076450.1423
        "stop_memory" => integer 2169496
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1429
        "start_memory" => integer 2195744
        "stop_time" => float 1464076450.143
        "stop_memory" => integer 2196320
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.143
        "start_memory" => integer 2199800
        "stop_time" => float 1464076450.1431
        "stop_memory" => integer 2200392
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1441
        "start_memory" => integer 2217688
        "stop_time" => float 1464076450.1441
        "stop_memory" => integer 2218256
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1442
        "start_memory" => integer 2221728
        "stop_time" => float 1464076450.1442
        "stop_memory" => integer 2222320
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1449
        "start_memory" => integer 2265808
        "stop_time" => float 1464076450.1449
        "stop_memory" => integer 2266408
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1451
        "start_memory" => integer 2277928
        "stop_time" => float 1464076450.1451
        "stop_memory" => integer 2278504
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1452
        "start_memory" => integer 2282048
        "stop_time" => float 1464076450.1452
        "stop_memory" => integer 2282632
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1457
        "start_memory" => integer 2320624
        "stop_time" => float 1464076450.1457
        "stop_memory" => integer 2321224
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1459
        "start_memory" => integer 2333344
        "stop_time" => float 1464076450.146
        "stop_memory" => integer 2333920
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1463
        "start_memory" => integer 2360936
        "stop_time" => float 1464076450.1464
        "stop_memory" => integer 2361536
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1466
        "start_memory" => integer 2369352
        "stop_time" => float 1464076450.1466
        "stop_memory" => integer 2369928
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1468
        "start_memory" => integer 2383080
        "stop_time" => float 1464076450.1468
        "stop_memory" => integer 2383680
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.147
        "start_memory" => integer 2390696
        "stop_time" => float 1464076450.147
        "stop_memory" => integer 2391288
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1473
        "start_memory" => integer 2404592
        "stop_time" => float 1464076450.1473
        "stop_memory" => integer 2405184
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1475
        "start_memory" => integer 2418816
        "stop_time" => float 1464076450.1476
        "stop_memory" => integer 2419408
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1478
        "start_memory" => integer 2428888
        "stop_time" => float 1464076450.1478
        "stop_memory" => integer 2429480
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.148
        "start_memory" => integer 2438152
        "stop_time" => float 1464076450.148
        "stop_memory" => integer 2438744
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1483
        "start_memory" => integer 2484096
        "stop_time" => float 1464076450.1483
        "stop_memory" => integer 2484672
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1486
        "start_memory" => integer 2507600
        "stop_time" => float 1464076450.1487
        "stop_memory" => integer 2508200
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1489
        "start_memory" => integer 2521496
        "stop_time" => float 1464076450.1489
        "stop_memory" => integer 2522072
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1492
        "start_memory" => integer 2541272
        "stop_time" => float 1464076450.1492
        "stop_memory" => integer 2541856
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1495
        "start_memory" => integer 2555512
        "stop_time" => float 1464076450.1495
        "stop_memory" => integer 2556080
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1496
        "start_memory" => integer 2559536
        "stop_time" => float 1464076450.1496
        "stop_memory" => integer 2560120
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1498
        "start_memory" => integer 2582320
        "stop_time" => float 1464076450.1499
        "stop_memory" => integer 2582880
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1499
        "start_memory" => integer 2586312
        "stop_time" => float 1464076450.15
        "stop_memory" => integer 2586896
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.152
        "start_memory" => integer 2680824
        "stop_time" => float 1464076450.1521
        "stop_memory" => integer 2681400
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1577
        "start_memory" => integer 2711976
        "stop_time" => float 1464076450.1577
        "stop_memory" => integer 2712552
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1578
        "start_memory" => integer 2716032
        "stop_time" => float 1464076450.1578
        "stop_memory" => integer 2716624
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1613
        "start_memory" => integer 2735760
        "stop_time" => float 1464076450.1613
        "stop_memory" => integer 2736344
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1614
        "start_memory" => integer 2739896
        "stop_time" => float 1464076450.1614
        "stop_memory" => integer 2740496
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1645
        "start_memory" => integer 2759688
        "stop_time" => float 1464076450.1645
        "stop_memory" => integer 2760248
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1646
        "start_memory" => integer 2763728
        "stop_time" => float 1464076450.1646
        "stop_memory" => integer 2764832
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1652
        "start_memory" => integer 2819368
        "stop_time" => float 1464076450.1652
        "stop_memory" => integer 2819968
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1686
        "start_memory" => integer 2827320
        "stop_time" => float 1464076450.1686
        "stop_memory" => integer 2827896
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1687
        "start_memory" => integer 2831400
        "stop_time" => float 1464076450.1687
        "stop_memory" => integer 2832000
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1792
        "start_memory" => integer 2871664
        "stop_time" => float 1464076450.1792
        "stop_memory" => integer 2872240
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1793
        "start_memory" => integer 2875768
        "stop_time" => float 1464076450.1793
        "stop_memory" => integer 2876368
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1794
        "start_memory" => integer 2892320
        "stop_time" => float 1464076450.1794
        "stop_memory" => integer 2892896
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1799
        "start_memory" => integer 2900208
        "stop_time" => float 1464076450.1799
        "stop_memory" => integer 2900776
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.18
        "start_memory" => integer 2904248
        "stop_time" => float 1464076450.18
        "stop_memory" => integer 2904840
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1808
        "start_memory" => integer 2954312
        "stop_time" => float 1464076450.1808
        "stop_memory" => integer 2954896
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1809
        "start_memory" => integer 2958400
        "stop_time" => float 1464076450.1809
        "stop_memory" => integer 2959000
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1847
        "start_memory" => integer 2978400
        "stop_time" => float 1464076450.1847
        "stop_memory" => integer 2978960
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1848
        "start_memory" => integer 2982456
        "stop_time" => float 1464076450.1848
        "stop_memory" => integer 2983048
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1854
        "start_memory" => integer 2998200
        "stop_time" => float 1464076450.1855
        "stop_memory" => integer 2998736
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1855
        "start_memory" => integer 3002144
        "stop_time" => float 1464076450.1856
        "stop_memory" => integer 3002720
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1867
        "start_memory" => integer 3009392
        "stop_time" => float 1464076450.1867
        "stop_memory" => integer 3009992
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1868
        "start_memory" => integer 3013504
        "stop_time" => float 1464076450.1869
        "stop_memory" => integer 3014104
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1895
        "start_memory" => integer 3049152
        "stop_time" => float 1464076450.1895
        "stop_memory" => integer 3049744
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1899
        "start_memory" => integer 3057440
        "stop_time" => float 1464076450.19
        "stop_memory" => integer 3058000
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.19
        "start_memory" => integer 3061488
        "stop_time" => float 1464076450.1901
        "stop_memory" => integer 3062080
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1926
        "start_memory" => integer 3079720
        "stop_time" => float 1464076450.1926
        "stop_memory" => integer 3080304
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.194
        "start_memory" => integer 3084904
        "stop_time" => float 1464076450.194
        "stop_memory" => integer 3085472
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1941
        "start_memory" => integer 3088936
        "stop_time" => float 1464076450.1941
        "stop_memory" => integer 3089528
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.196
        "start_memory" => integer 3183560
        "stop_time" => float 1464076450.196
        "stop_memory" => integer 3184160
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1961
        "start_memory" => integer 3187712
        "stop_time" => float 1464076450.1962
        "stop_memory" => integer 3188304
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1965
        "start_memory" => integer 3201880
        "stop_time" => float 1464076450.1966
        "stop_memory" => integer 3202472
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1967
        "start_memory" => integer 3206024
        "stop_time" => float 1464076450.1967
        "stop_memory" => integer 3206632
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1978
        "start_memory" => integer 3211664
        "stop_time" => float 1464076450.1978
        "stop_memory" => integer 3212232
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1979
        "start_memory" => integer 3215760
        "stop_time" => float 1464076450.198
        "stop_memory" => integer 3216360
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.199
        "start_memory" => integer 3311168
        "stop_time" => float 1464076450.1991
        "stop_memory" => integer 3311760
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1992
        "start_memory" => integer 3315312
        "stop_time" => float 1464076450.1992
        "stop_memory" => integer 3315920
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1994
        "start_memory" => integer 3327960
        "stop_time" => float 1464076450.1994
        "stop_memory" => integer 3328528
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.1995
        "start_memory" => integer 3332032
        "stop_time" => float 1464076450.1995
        "stop_memory" => integer 3332656
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2004
        "start_memory" => integer 3376296
        "stop_time" => float 1464076450.2004
        "stop_memory" => integer 3376872
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2005
        "start_memory" => integer 3380392
        "stop_time" => float 1464076450.2005
        "stop_memory" => integer 3380992
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2012
        "start_memory" => integer 3425624
        "stop_time" => float 1464076450.2013
        "stop_memory" => integer 3426200
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2014
        "start_memory" => integer 3429704
        "stop_time" => float 1464076450.2014
        "stop_memory" => integer 3430304
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2022
        "start_memory" => integer 3457616
        "stop_time" => float 1464076450.2022
        "stop_memory" => integer 3458208
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2023
        "start_memory" => integer 3461768
        "stop_time" => float 1464076450.2023
        "stop_memory" => integer 3462376
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2031
        "start_memory" => integer 3498616
        "stop_time" => float 1464076450.2032
        "stop_memory" => integer 3499216
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2033
        "start_memory" => integer 3502848
        "stop_time" => float 1464076450.2033
        "stop_memory" => integer 3503464
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2035
        "start_memory" => integer 3515608
        "stop_time" => float 1464076450.2035
        "stop_memory" => integer 3516200
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2036
        "start_memory" => integer 3519824
        "stop_time" => float 1464076450.2036
        "stop_memory" => integer 3520440
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2044
        "start_memory" => integer 3572560
        "stop_time" => float 1464076450.2045
        "stop_memory" => integer 3573152
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2046
        "start_memory" => integer 3576760
        "stop_time" => float 1464076450.2046
        "stop_memory" => integer 3577376
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2055
        "start_memory" => integer 3609968
        "stop_time" => float 1464076450.2055
        "stop_memory" => integer 3610560
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2056
        "start_memory" => integer 3614184
        "stop_time" => float 1464076450.2057
        "stop_memory" => integer 3614800
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2065
        "start_memory" => integer 3643424
        "stop_time" => float 1464076450.2066
        "stop_memory" => integer 3644016
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2067
        "start_memory" => integer 3647624
        "stop_time" => float 1464076450.2067
        "stop_memory" => integer 3648240
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2077
        "start_memory" => integer 3724160
        "stop_time" => float 1464076450.2077
        "stop_memory" => integer 3724752
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2079
        "start_memory" => integer 3728360
        "stop_time" => float 1464076450.2079
        "stop_memory" => integer 3728976
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2095
        "start_memory" => integer 3765528
        "stop_time" => float 1464076450.2096
        "stop_memory" => integer 3766104
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2097
        "start_memory" => integer 3769664
        "stop_time" => float 1464076450.2097
        "stop_memory" => integer 3770272
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2104
        "start_memory" => integer 3788600
        "stop_time" => float 1464076450.2104
        "stop_memory" => integer 3789136
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2105
        "start_memory" => integer 3792584
        "stop_time" => float 1464076450.2106
        "stop_memory" => integer 3793152
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2116
        "start_memory" => integer 3862712
        "stop_time" => float 1464076450.2117
        "stop_memory" => integer 3863296
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2118
        "start_memory" => integer 3866752
        "stop_time" => float 1464076450.2118
        "stop_memory" => integer 3867328
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2156
        "start_memory" => integer 3881528
        "stop_time" => float 1464076450.2157
        "stop_memory" => integer 3882088
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2158
        "start_memory" => integer 3885520
        "stop_time" => float 1464076450.2158
        "stop_memory" => integer 3886104
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2179
        "start_memory" => integer 3907944
        "stop_time" => float 1464076450.2179
        "stop_memory" => integer 3908504
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.218
        "start_memory" => integer 3911928
        "stop_time" => float 1464076450.218
        "stop_memory" => integer 3912496
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2186
        "start_memory" => integer 3935640
        "stop_time" => float 1464076450.2187
        "stop_memory" => integer 3936208
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2188
        "start_memory" => integer 3939640
        "stop_time" => float 1464076450.2188
        "stop_memory" => integer 3940208
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2194
        "start_memory" => integer 3966144
        "stop_time" => float 1464076450.2194
        "stop_memory" => integer 3966712
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2195
        "start_memory" => integer 3970136
        "stop_time" => float 1464076450.2196
        "stop_memory" => integer 3971728
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2206
        "start_memory" => integer 4018888
        "stop_time" => float 1464076450.2207
        "stop_memory" => integer 4019456
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2208
        "start_memory" => integer 4022896
        "stop_time" => float 1464076450.2209
        "stop_memory" => integer 4023480
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2225
        "start_memory" => integer 4038024
        "stop_time" => float 1464076450.2225
        "stop_memory" => integer 4038584
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2226
        "start_memory" => integer 4042032
        "stop_time" => float 1464076450.2227
        "stop_memory" => integer 4042600
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2237
        "start_memory" => integer 4059232
        "stop_time" => float 1464076450.2237
        "stop_memory" => integer 4059816
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2238
        "start_memory" => integer 4063296
        "stop_time" => float 1464076450.2239
        "stop_memory" => integer 4063888
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2244
        "start_memory" => integer 4080352
        "stop_time" => float 1464076450.2244
        "stop_memory" => integer 4080920
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2245
        "start_memory" => integer 4084424
        "stop_time" => float 1464076450.2246
        "stop_memory" => integer 4085016
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2251
        "start_memory" => integer 4098600
        "stop_time" => float 1464076450.2252
        "stop_memory" => integer 4099168
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2253
        "start_memory" => integer 4102672
        "stop_time" => float 1464076450.2253
        "stop_memory" => integer 4103264
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2259
        "start_memory" => integer 4116864
        "stop_time" => float 1464076450.2259
        "stop_memory" => integer 4117432
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.226
        "start_memory" => integer 4120936
        "stop_time" => float 1464076450.2261
        "stop_memory" => integer 4121528
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2266
        "start_memory" => integer 4135128
        "stop_time" => float 1464076450.2266
        "stop_memory" => integer 4135696
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2267
        "start_memory" => integer 4139200
        "stop_time" => float 1464076450.2268
        "stop_memory" => integer 4139792
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2273
        "start_memory" => integer 4153376
        "stop_time" => float 1464076450.2274
        "stop_memory" => integer 4153944
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2274
        "start_memory" => integer 4157448
        "stop_time" => float 1464076450.2275
        "stop_memory" => integer 4158040
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.228
        "start_memory" => integer 4171624
        "stop_time" => float 1464076450.228
        "stop_memory" => integer 4172192
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2281
        "start_memory" => integer 4175696
        "stop_time" => float 1464076450.2282
        "stop_memory" => integer 4176288
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2287
        "start_memory" => integer 4189888
        "stop_time" => float 1464076450.2288
        "stop_memory" => integer 4190456
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2289
        "start_memory" => integer 4193960
        "stop_time" => float 1464076450.2289
        "stop_memory" => integer 4194552
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2294
        "start_memory" => integer 4208136
        "stop_time" => float 1464076450.2294
        "stop_memory" => integer 4208704
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2296
        "start_memory" => integer 4212208
        "stop_time" => float 1464076450.2296
        "stop_memory" => integer 4212800
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2301
        "start_memory" => integer 4226480
        "stop_time" => float 1464076450.2302
        "stop_memory" => integer 4227048
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2303
        "start_memory" => integer 4230552
        "stop_time" => float 1464076450.2303
        "stop_memory" => integer 4231144
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2308
        "start_memory" => integer 4244728
        "stop_time" => float 1464076450.2309
        "stop_memory" => integer 4245296
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.231
        "start_memory" => integer 4248800
        "stop_time" => float 1464076450.231
        "stop_memory" => integer 4249392
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2315
        "start_memory" => integer 4262976
        "stop_time" => float 1464076450.2316
        "stop_memory" => integer 4263544
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2317
        "start_memory" => integer 4267048
        "stop_time" => float 1464076450.2318
        "stop_memory" => integer 4267640
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2323
        "start_memory" => integer 4281208
        "stop_time" => float 1464076450.2324
        "stop_memory" => integer 4281776
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2324
        "start_memory" => integer 4285280
        "stop_time" => float 1464076450.2325
        "stop_memory" => integer 4285872
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.233
        "start_memory" => integer 4299456
        "stop_time" => float 1464076450.233
        "stop_memory" => integer 4300024
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2331
        "start_memory" => integer 4303528
        "stop_time" => float 1464076450.2332
        "stop_memory" => integer 4304120
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2336
        "start_memory" => integer 4317720
        "stop_time" => float 1464076450.2337
        "stop_memory" => integer 4318288
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2338
        "start_memory" => integer 4321792
        "stop_time" => float 1464076450.2338
        "stop_memory" => integer 4322384
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2344
        "start_memory" => integer 4336000
        "stop_time" => float 1464076450.2344
        "stop_memory" => integer 4336568
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2345
        "start_memory" => integer 4340072
        "stop_time" => float 1464076450.2346
        "stop_memory" => integer 4340664
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2351
        "start_memory" => integer 4354264
        "stop_time" => float 1464076450.2351
        "stop_memory" => integer 4354832
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2352
        "start_memory" => integer 4358336
        "stop_time" => float 1464076450.2353
        "stop_memory" => integer 4358928
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2358
        "start_memory" => integer 4372656
        "stop_time" => float 1464076450.2358
        "stop_memory" => integer 4373224
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2359
        "start_memory" => integer 4376728
        "stop_time" => float 1464076450.2359
        "stop_memory" => integer 4377320
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2364
        "start_memory" => integer 4390936
        "stop_time" => float 1464076450.2365
        "stop_memory" => integer 4391504
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2366
        "start_memory" => integer 4395008
        "stop_time" => float 1464076450.2367
        "stop_memory" => integer 4395600
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2372
        "start_memory" => integer 4409200
        "stop_time" => float 1464076450.2373
        "stop_memory" => integer 4409768
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2373
        "start_memory" => integer 4413272
        "stop_time" => float 1464076450.2374
        "stop_memory" => integer 4413864
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2379
        "start_memory" => integer 4427464
        "stop_time" => float 1464076450.2379
        "stop_memory" => integer 4428032
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.238
        "start_memory" => integer 4431536
        "stop_time" => float 1464076450.2381
        "stop_memory" => integer 4432128
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2386
        "start_memory" => integer 4445712
        "stop_time" => float 1464076450.2386
        "stop_memory" => integer 4446280
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2387
        "start_memory" => integer 4449784
        "stop_time" => float 1464076450.2388
        "stop_memory" => integer 4450376
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2392
        "start_memory" => integer 4463960
        "stop_time" => float 1464076450.2393
        "stop_memory" => integer 4464528
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2394
        "start_memory" => integer 4468032
        "stop_time" => float 1464076450.2394
        "stop_memory" => integer 4468624
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.24
        "start_memory" => integer 4482224
        "stop_time" => float 1464076450.24
        "stop_memory" => integer 4482792
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2401
        "start_memory" => integer 4486296
        "stop_time" => float 1464076450.2402
        "stop_memory" => integer 4486888
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2407
        "start_memory" => integer 4500472
        "stop_time" => float 1464076450.2407
        "stop_memory" => integer 4501040
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2408
        "start_memory" => integer 4504544
        "stop_time" => float 1464076450.2409
        "stop_memory" => integer 4505136
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2422
        "start_memory" => integer 4518960
        "stop_time" => float 1464076450.2423
        "stop_memory" => integer 4519528
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2424
        "start_memory" => integer 4523032
        "stop_time" => float 1464076450.2424
        "stop_memory" => integer 4523624
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.245
        "start_memory" => integer 4546552
        "stop_time" => float 1464076450.2451
        "stop_memory" => integer 4547120
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2452
        "start_memory" => integer 4550584
        "stop_time" => float 1464076450.2452
        "stop_memory" => integer 4551160
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2464
        "start_memory" => integer 4632376
        "stop_time" => float 1464076450.2464
        "stop_memory" => integer 4632952
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2465
        "start_memory" => integer 4636416
        "stop_time" => float 1464076450.2465
        "stop_memory" => integer 4637008
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2479
        "start_memory" => integer 4738184
        "stop_time" => float 1464076450.248
        "stop_memory" => integer 4738736
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2483
        "start_memory" => integer 4742216
        "stop_time" => float 1464076450.2484
        "stop_memory" => integer 4742800
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2506
        "start_memory" => integer 4775784
        "stop_time" => float 1464076450.2507
        "stop_memory" => integer 4776376
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2508
        "start_memory" => integer 4779872
        "stop_time" => float 1464076450.2508
        "stop_memory" => integer 4780472
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2515
        "start_memory" => integer 4806040
        "stop_time" => float 1464076450.2515
        "stop_memory" => integer 4806632
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2516
        "start_memory" => integer 4810208
        "stop_time" => float 1464076450.2517
        "stop_memory" => integer 4810816
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2531
        "start_memory" => integer 4829520
        "stop_time" => float 1464076450.2532
        "stop_memory" => integer 4830088
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2533
        "start_memory" => integer 4833688
        "stop_time" => float 1464076450.2533
        "stop_memory" => integer 4834288
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2548
        "start_memory" => integer 4852888
        "stop_time" => float 1464076450.2549
        "stop_memory" => integer 4853480
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2573
        "start_memory" => integer 4863232
        "stop_time" => float 1464076450.2573
        "stop_memory" => integer 4863808
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2576
        "start_memory" => integer 4872640
        "stop_time" => float 1464076450.2576
        "stop_memory" => integer 4873224
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2587
        "start_memory" => integer 4882640
        "stop_time" => float 1464076450.2587
        "stop_memory" => integer 4883192
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2588
        "start_memory" => integer 4886656
        "stop_time" => float 1464076450.2589
        "stop_memory" => integer 4887256
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2593
        "start_memory" => integer 4891232
        "stop_time" => float 1464076450.2594
        "stop_memory" => integer 4891792
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2595
        "start_memory" => integer 4895328
        "stop_time" => float 1464076450.2595
        "stop_memory" => integer 4895928
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.26
        "start_memory" => integer 4899856
        "stop_time" => float 1464076450.26
        "stop_memory" => integer 4900456
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2601
        "start_memory" => integer 4903968
        "stop_time" => float 1464076450.2602
        "stop_memory" => integer 4904568
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.261
        "start_memory" => integer 4913504
        "stop_time" => float 1464076450.261
        "stop_memory" => integer 4914088
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2611
        "start_memory" => integer 4917624
        "stop_time" => float 1464076450.2612
        "stop_memory" => integer 4918240
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2616
        "start_memory" => integer 4920344
        "stop_time" => float 1464076450.2617
        "stop_memory" => integer 4921008
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2618
        "start_memory" => integer 4927728
        "stop_time" => float 1464076450.2619
        "stop_memory" => integer 4928256
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.262
        "start_memory" => integer 4931728
        "stop_time" => float 1464076450.262
        "stop_memory" => integer 4932312
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2642
        "start_memory" => integer 5163928
        "stop_time" => float 1464076450.2643
        "stop_memory" => integer 5164520
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2649
        "start_memory" => integer 5221336
        "stop_time" => float 1464076450.265
        "stop_memory" => integer 5221920
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2655
        "start_memory" => integer 5256376
        "stop_time" => float 1464076450.2655
        "stop_memory" => integer 5256960
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2656
        "start_memory" => integer 5260480
        "stop_time" => float 1464076450.2657
        "stop_memory" => integer 5261080
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2661
        "start_memory" => integer 5267112
        "stop_time" => float 1464076450.2662
        "stop_memory" => integer 5267672
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2666
        "start_memory" => integer 5293832
        "stop_time" => float 1464076450.2666
        "stop_memory" => integer 5294408
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.267
        "start_memory" => integer 5323376
        "stop_time" => float 1464076450.2671
        "stop_memory" => integer 5323968
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2675
        "start_memory" => integer 5350648
        "stop_time" => float 1464076450.2675
        "stop_memory" => integer 5351184
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2676
        "start_memory" => integer 5354696
        "stop_time" => float 1464076450.2677
        "stop_memory" => integer 5355272
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2695
        "start_memory" => integer 5382464
        "stop_time" => float 1464076450.2695
        "stop_memory" => integer 5383096
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2696
        "start_memory" => integer 5386880
        "stop_time" => float 1464076450.2697
        "stop_memory" => integer 5387496
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2717
        "start_memory" => integer 5419248
        "stop_time" => float 1464076450.2718
        "stop_memory" => integer 5419816
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2719
        "start_memory" => integer 5423448
        "stop_time" => float 1464076450.2719
        "stop_memory" => integer 5424048
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2755
        "start_memory" => integer 5488848
        "stop_time" => float 1464076450.2755
        "stop_memory" => integer 5489392
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2756
        "start_memory" => integer 5492968
        "stop_time" => float 1464076450.2757
        "stop_memory" => integer 5493576
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2761
        "start_memory" => integer 5503600
        "stop_time" => float 1464076450.2761
        "stop_memory" => integer 5504160
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2762
        "start_memory" => integer 5507696
        "stop_time" => float 1464076450.2763
        "stop_memory" => integer 5508280
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.277
        "start_memory" => integer 5552784
        "stop_time" => float 1464076450.277
        "stop_memory" => integer 5553392
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2771
        "start_memory" => integer 5556872
        "stop_time" => float 1464076450.2772
        "stop_memory" => integer 5557488
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2776
        "start_memory" => integer 5577832
        "stop_time" => float 1464076450.2777
        "stop_memory" => integer 5578496
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2778
        "start_memory" => integer 5581984
        "stop_time" => float 1464076450.2778
        "stop_memory" => integer 5582584
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2788
        "start_memory" => integer 5631216
        "stop_time" => float 1464076450.2789
        "stop_memory" => integer 5631792
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.279
        "start_memory" => integer 5635296
        "stop_time" => float 1464076450.279
        "stop_memory" => integer 5635888
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2795
        "start_memory" => integer 5658120
        "stop_time" => float 1464076450.2796
        "stop_memory" => integer 5658712
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2796
        "start_memory" => integer 5662328
        "stop_time" => float 1464076450.2797
        "stop_memory" => integer 5662872
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2807
        "start_memory" => integer 5735440
        "stop_time" => float 1464076450.2808
        "stop_memory" => integer 5736040
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2808
        "start_memory" => integer 5739528
        "stop_time" => float 1464076450.2809
        "stop_memory" => integer 5740112
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2847
        "start_memory" => integer 5759280
        "stop_time" => float 1464076450.2848
        "stop_memory" => integer 5759840
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2849
        "start_memory" => integer 5763344
        "stop_time" => float 1464076450.2849
        "stop_memory" => integer 5763968
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2857
        "start_memory" => integer 5823520
        "stop_time" => float 1464076450.2858
        "stop_memory" => integer 5824112
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2859
        "start_memory" => integer 5827592
        "stop_time" => float 1464076450.2859
        "stop_memory" => integer 5828184
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2868
        "start_memory" => integer 5897312
        "stop_time" => float 1464076450.2869
        "stop_memory" => integer 5897936
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.287
        "start_memory" => integer 5901552
        "stop_time" => float 1464076450.2871
        "stop_memory" => integer 5902128
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2878
        "start_memory" => integer 5920192
        "stop_time" => float 1464076450.2878
        "stop_memory" => integer 5920816
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2881
        "start_memory" => integer 5886760
        "stop_time" => float 1464076450.2882
        "stop_memory" => integer 5889080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2887
        "start_memory" => integer 5925264
        "stop_time" => float 1464076450.2888
        "stop_memory" => integer 5926928
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464076450.2888
        "start_memory" => integer 5926560
        "stop_time" => float 1464076450.2888
        "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'],
	);
}