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 1454790720.1444
        "start_memory" => integer 1116232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1445
        "start_memory" => integer 1118488
        "stop_time" => float 1454790720.1445
        "stop_memory" => integer 1119176
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1447
        "start_memory" => integer 1122720
        "stop_time" => float 1454790720.1447
        "stop_memory" => integer 1123328
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1457
        "start_memory" => integer 1199792
        "stop_time" => float 1454790720.1458
        "stop_memory" => integer 1200344
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1459
        "start_memory" => integer 1203848
        "stop_time" => float 1454790720.146
        "stop_memory" => integer 1204440
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1461
        "start_memory" => integer 1212408
        "stop_time" => float 1454790720.1462
        "stop_memory" => integer 1212960
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1463
        "start_memory" => integer 1216424
        "stop_time" => float 1454790720.1464
        "stop_memory" => integer 1217008
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1466
        "start_memory" => integer 1225864
        "stop_time" => float 1454790720.1466
        "stop_memory" => integer 1226424
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1467
        "start_memory" => integer 1229864
        "stop_time" => float 1454790720.1468
        "stop_memory" => integer 1230520
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.148
        "start_memory" => integer 1325368
        "stop_time" => float 1454790720.1481
        "stop_memory" => integer 1325968
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1482
        "start_memory" => integer 1329448
        "stop_time" => float 1454790720.1483
        "stop_memory" => integer 1330040
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1485
        "start_memory" => integer 1341824
        "stop_time" => float 1454790720.1486
        "stop_memory" => integer 1342376
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1487
        "start_memory" => integer 1345800
        "stop_time" => float 1454790720.1488
        "stop_memory" => integer 1346368
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1493
        "start_memory" => integer 1380760
        "stop_time" => float 1454790720.1493
        "stop_memory" => integer 1381360
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1494
        "start_memory" => integer 1382432
        "stop_time" => float 1454790720.1495
        "stop_memory" => integer 1382968
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1496
        "start_memory" => integer 1386376
        "stop_time" => float 1454790720.1496
        "stop_memory" => integer 1386952
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.15
        "start_memory" => integer 1406200
        "stop_time" => float 1454790720.1501
        "stop_memory" => integer 1406904
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1502
        "start_memory" => integer 1410328
        "stop_time" => float 1454790720.1503
        "stop_memory" => integer 1410896
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1513
        "start_memory" => integer 1506504
        "stop_time" => float 1454790720.1891
        "stop_memory" => integer 1507104
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1893
        "start_memory" => integer 1510608
        "stop_time" => float 1454790720.1894
        "stop_memory" => integer 1511208
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.19
        "start_memory" => integer 1550488
        "stop_time" => float 1454790720.1901
        "stop_memory" => integer 1550992
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1901
        "start_memory" => integer 1551632
        "stop_time" => float 1454790720.1902
        "stop_memory" => integer 1552208
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1946
        "start_memory" => integer 1951384
        "stop_time" => float 1454790720.1947
        "stop_memory" => integer 1951968
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1948
        "start_memory" => integer 1955472
        "stop_time" => float 1454790720.1949
        "stop_memory" => integer 1956072
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.195
        "start_memory" => integer 1957704
        "stop_time" => float 1454790720.1951
        "stop_memory" => integer 1958304
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1952
        "start_memory" => integer 1961816
        "stop_time" => float 1454790720.1953
        "stop_memory" => integer 1962392
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1956
        "start_memory" => integer 1992040
        "stop_time" => float 1454790720.1957
        "stop_memory" => integer 1992600
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1958
        "start_memory" => integer 1996104
        "stop_time" => float 1454790720.1959
        "stop_memory" => integer 1996704
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1967
        "start_memory" => integer 2059016
        "stop_time" => float 1454790720.1968
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1969
        "start_memory" => integer 2063000
        "stop_time" => float 1454790720.197
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.1986
        "start_memory" => integer 2122480
        "stop_time" => float 1454790720.1987
        "stop_memory" => integer 2123096
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3659
        "start_memory" => integer 2163984
        "stop_time" => float 1454790720.3659
        "stop_memory" => integer 2164560
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.366
        "start_memory" => integer 2167984
        "stop_time" => float 1454790720.366
        "stop_memory" => integer 2168824
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3669
        "start_memory" => integer 2195072
        "stop_time" => float 1454790720.3669
        "stop_memory" => integer 2195648
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3671
        "start_memory" => integer 2199128
        "stop_time" => float 1454790720.3671
        "stop_memory" => integer 2199720
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3679
        "start_memory" => integer 2217016
        "stop_time" => float 1454790720.368
        "stop_memory" => integer 2217584
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3681
        "start_memory" => integer 2221048
        "stop_time" => float 1454790720.3682
        "stop_memory" => integer 2221640
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3692
        "start_memory" => integer 2265096
        "stop_time" => float 1454790720.3692
        "stop_memory" => integer 2265696
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3694
        "start_memory" => integer 2277232
        "stop_time" => float 1454790720.3695
        "stop_memory" => integer 2277808
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3696
        "start_memory" => integer 2281320
        "stop_time" => float 1454790720.3696
        "stop_memory" => integer 2281904
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3703
        "start_memory" => integer 2319920
        "stop_time" => float 1454790720.3704
        "stop_memory" => integer 2320520
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3707
        "start_memory" => integer 2332640
        "stop_time" => float 1454790720.3707
        "stop_memory" => integer 2333216
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3713
        "start_memory" => integer 2360232
        "stop_time" => float 1454790720.3713
        "stop_memory" => integer 2360832
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3716
        "start_memory" => integer 2368648
        "stop_time" => float 1454790720.3717
        "stop_memory" => integer 2369224
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.372
        "start_memory" => integer 2382376
        "stop_time" => float 1454790720.372
        "stop_memory" => integer 2382976
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3723
        "start_memory" => integer 2389992
        "stop_time" => float 1454790720.3723
        "stop_memory" => integer 2390584
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3727
        "start_memory" => integer 2403888
        "stop_time" => float 1454790720.3727
        "stop_memory" => integer 2404480
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3731
        "start_memory" => integer 2418112
        "stop_time" => float 1454790720.3731
        "stop_memory" => integer 2418704
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3734
        "start_memory" => integer 2428184
        "stop_time" => float 1454790720.3735
        "stop_memory" => integer 2428776
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3737
        "start_memory" => integer 2437448
        "stop_time" => float 1454790720.3738
        "stop_memory" => integer 2438040
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3742
        "start_memory" => integer 2483376
        "stop_time" => float 1454790720.3742
        "stop_memory" => integer 2483952
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3747
        "start_memory" => integer 2506880
        "stop_time" => float 1454790720.3748
        "stop_memory" => integer 2507480
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3751
        "start_memory" => integer 2520776
        "stop_time" => float 1454790720.3751
        "stop_memory" => integer 2521352
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3755
        "start_memory" => integer 2540552
        "stop_time" => float 1454790720.3756
        "stop_memory" => integer 2541136
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3759
        "start_memory" => integer 2554792
        "stop_time" => float 1454790720.3759
        "stop_memory" => integer 2555360
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.376
        "start_memory" => integer 2558816
        "stop_time" => float 1454790720.376
        "stop_memory" => integer 2559400
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3763
        "start_memory" => integer 2581600
        "stop_time" => float 1454790720.3764
        "stop_memory" => integer 2582160
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3765
        "start_memory" => integer 2585592
        "stop_time" => float 1454790720.3765
        "stop_memory" => integer 2586176
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3797
        "start_memory" => integer 2680104
        "stop_time" => float 1454790720.3798
        "stop_memory" => integer 2680680
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3896
        "start_memory" => integer 2711256
        "stop_time" => float 1454790720.3896
        "stop_memory" => integer 2711832
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3898
        "start_memory" => integer 2715312
        "stop_time" => float 1454790720.3898
        "stop_memory" => integer 2715904
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3965
        "start_memory" => integer 2735016
        "stop_time" => float 1454790720.3966
        "stop_memory" => integer 2735600
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.3967
        "start_memory" => integer 2739152
        "stop_time" => float 1454790720.3968
        "stop_memory" => integer 2739752
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4021
        "start_memory" => integer 2758936
        "stop_time" => float 1454790720.4022
        "stop_memory" => integer 2759496
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4024
        "start_memory" => integer 2763000
        "stop_time" => float 1454790720.4024
        "stop_memory" => integer 2764104
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4032
        "start_memory" => integer 2818624
        "stop_time" => float 1454790720.4032
        "stop_memory" => integer 2819224
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4087
        "start_memory" => integer 2826536
        "stop_time" => float 1454790720.4088
        "stop_memory" => integer 2827112
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4089
        "start_memory" => integer 2830640
        "stop_time" => float 1454790720.409
        "stop_memory" => integer 2831240
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4813
        "start_memory" => integer 2870904
        "stop_time" => float 1454790720.4814
        "stop_memory" => integer 2871480
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4816
        "start_memory" => integer 2875008
        "stop_time" => float 1454790720.4816
        "stop_memory" => integer 2875608
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4819
        "start_memory" => integer 2891576
        "stop_time" => float 1454790720.4819
        "stop_memory" => integer 2892152
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4829
        "start_memory" => integer 2899456
        "stop_time" => float 1454790720.483
        "stop_memory" => integer 2900024
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4831
        "start_memory" => integer 2903496
        "stop_time" => float 1454790720.4831
        "stop_memory" => integer 2904088
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4845
        "start_memory" => integer 2953528
        "stop_time" => float 1454790720.4845
        "stop_memory" => integer 2954112
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4846
        "start_memory" => integer 2957616
        "stop_time" => float 1454790720.4847
        "stop_memory" => integer 2958216
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4912
        "start_memory" => integer 2977616
        "stop_time" => float 1454790720.4913
        "stop_memory" => integer 2978176
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4915
        "start_memory" => integer 2981672
        "stop_time" => float 1454790720.4915
        "stop_memory" => integer 2982264
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4925
        "start_memory" => integer 2997416
        "stop_time" => float 1454790720.4926
        "stop_memory" => integer 2997952
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4927
        "start_memory" => integer 3001360
        "stop_time" => float 1454790720.4928
        "stop_memory" => integer 3001936
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4945
        "start_memory" => integer 3008608
        "stop_time" => float 1454790720.4945
        "stop_memory" => integer 3009208
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.4947
        "start_memory" => integer 3012720
        "stop_time" => float 1454790720.4947
        "stop_memory" => integer 3013320
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5196
        "start_memory" => integer 3048368
        "stop_time" => float 1454790720.5197
        "stop_memory" => integer 3048960
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5204
        "start_memory" => integer 3056656
        "stop_time" => float 1454790720.5205
        "stop_memory" => integer 3057216
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5206
        "start_memory" => integer 3060704
        "stop_time" => float 1454790720.5207
        "stop_memory" => integer 3061296
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5267
        "start_memory" => integer 3078936
        "stop_time" => float 1454790720.5267
        "stop_memory" => integer 3079520
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5292
        "start_memory" => integer 3084120
        "stop_time" => float 1454790720.5293
        "stop_memory" => integer 3084688
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5294
        "start_memory" => integer 3088152
        "stop_time" => float 1454790720.5295
        "stop_memory" => integer 3088744
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5327
        "start_memory" => integer 3182800
        "stop_time" => float 1454790720.5327
        "stop_memory" => integer 3183400
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5329
        "start_memory" => integer 3186952
        "stop_time" => float 1454790720.533
        "stop_memory" => integer 3187544
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5336
        "start_memory" => integer 3200432
        "stop_time" => float 1454790720.5337
        "stop_memory" => integer 3201024
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5338
        "start_memory" => integer 3204576
        "stop_time" => float 1454790720.5338
        "stop_memory" => integer 3205184
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5355
        "start_memory" => integer 3210216
        "stop_time" => float 1454790720.5356
        "stop_memory" => integer 3210784
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5357
        "start_memory" => integer 3214288
        "stop_time" => float 1454790720.5357
        "stop_memory" => integer 3214888
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.539
        "start_memory" => integer 3309656
        "stop_time" => float 1454790720.5391
        "stop_memory" => integer 3310248
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5392
        "start_memory" => integer 3313800
        "stop_time" => float 1454790720.5393
        "stop_memory" => integer 3314408
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5395
        "start_memory" => integer 3326448
        "stop_time" => float 1454790720.5396
        "stop_memory" => integer 3327016
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5397
        "start_memory" => integer 3330520
        "stop_time" => float 1454790720.5397
        "stop_memory" => integer 3331144
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5411
        "start_memory" => integer 3374776
        "stop_time" => float 1454790720.5411
        "stop_memory" => integer 3375352
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5412
        "start_memory" => integer 3378872
        "stop_time" => float 1454790720.5413
        "stop_memory" => integer 3379472
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5424
        "start_memory" => integer 3424104
        "stop_time" => float 1454790720.5424
        "stop_memory" => integer 3424680
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5425
        "start_memory" => integer 3428184
        "stop_time" => float 1454790720.5426
        "stop_memory" => integer 3428784
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5436
        "start_memory" => integer 3456096
        "stop_time" => float 1454790720.5437
        "stop_memory" => integer 3456688
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5438
        "start_memory" => integer 3460248
        "stop_time" => float 1454790720.5438
        "stop_memory" => integer 3460856
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5449
        "start_memory" => integer 3497072
        "stop_time" => float 1454790720.545
        "stop_memory" => integer 3497672
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5451
        "start_memory" => integer 3501304
        "stop_time" => float 1454790720.5451
        "stop_memory" => integer 3501920
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5454
        "start_memory" => integer 3514064
        "stop_time" => float 1454790720.5454
        "stop_memory" => integer 3514656
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5455
        "start_memory" => integer 3518280
        "stop_time" => float 1454790720.5456
        "stop_memory" => integer 3518896
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5467
        "start_memory" => integer 3571016
        "stop_time" => float 1454790720.5468
        "stop_memory" => integer 3571608
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5469
        "start_memory" => integer 3575216
        "stop_time" => float 1454790720.547
        "stop_memory" => integer 3575832
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5482
        "start_memory" => integer 3608424
        "stop_time" => float 1454790720.5482
        "stop_memory" => integer 3609016
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5484
        "start_memory" => integer 3612640
        "stop_time" => float 1454790720.5484
        "stop_memory" => integer 3613256
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5496
        "start_memory" => integer 3641880
        "stop_time" => float 1454790720.5497
        "stop_memory" => integer 3642472
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5498
        "start_memory" => integer 3646080
        "stop_time" => float 1454790720.5498
        "stop_memory" => integer 3646696
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5513
        "start_memory" => integer 3722616
        "stop_time" => float 1454790720.5513
        "stop_memory" => integer 3723208
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5514
        "start_memory" => integer 3726816
        "stop_time" => float 1454790720.5515
        "stop_memory" => integer 3727432
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5645
        "start_memory" => integer 3763944
        "stop_time" => float 1454790720.5646
        "stop_memory" => integer 3764520
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5648
        "start_memory" => integer 3768080
        "stop_time" => float 1454790720.5649
        "stop_memory" => integer 3768688
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5659
        "start_memory" => integer 3787016
        "stop_time" => float 1454790720.566
        "stop_memory" => integer 3787552
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5661
        "start_memory" => integer 3791000
        "stop_time" => float 1454790720.5662
        "stop_memory" => integer 3791568
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5677
        "start_memory" => integer 3861128
        "stop_time" => float 1454790720.5678
        "stop_memory" => integer 3861712
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5679
        "start_memory" => integer 3865168
        "stop_time" => float 1454790720.568
        "stop_memory" => integer 3865744
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5736
        "start_memory" => integer 3879944
        "stop_time" => float 1454790720.5737
        "stop_memory" => integer 3880504
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5739
        "start_memory" => integer 3883936
        "stop_time" => float 1454790720.574
        "stop_memory" => integer 3884520
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5772
        "start_memory" => integer 3906360
        "stop_time" => float 1454790720.5773
        "stop_memory" => integer 3906920
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5774
        "start_memory" => integer 3910344
        "stop_time" => float 1454790720.5775
        "stop_memory" => integer 3910912
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5783
        "start_memory" => integer 3934056
        "stop_time" => float 1454790720.5783
        "stop_memory" => integer 3934624
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5784
        "start_memory" => integer 3938056
        "stop_time" => float 1454790720.5785
        "stop_memory" => integer 3938624
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5792
        "start_memory" => integer 3964576
        "stop_time" => float 1454790720.5824
        "stop_memory" => integer 3965144
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5825
        "start_memory" => integer 3968568
        "stop_time" => float 1454790720.5826
        "stop_memory" => integer 3970160
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5842
        "start_memory" => integer 4017304
        "stop_time" => float 1454790720.5843
        "stop_memory" => integer 4017872
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5844
        "start_memory" => integer 4021312
        "stop_time" => float 1454790720.5844
        "stop_memory" => integer 4021896
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5869
        "start_memory" => integer 4036440
        "stop_time" => float 1454790720.587
        "stop_memory" => integer 4037000
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5871
        "start_memory" => integer 4040448
        "stop_time" => float 1454790720.5872
        "stop_memory" => integer 4041016
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5886
        "start_memory" => integer 4057648
        "stop_time" => float 1454790720.5886
        "stop_memory" => integer 4058232
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5887
        "start_memory" => integer 4061712
        "stop_time" => float 1454790720.5888
        "stop_memory" => integer 4062304
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5895
        "start_memory" => integer 4078080
        "stop_time" => float 1454790720.5896
        "stop_memory" => integer 4078648
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5897
        "start_memory" => integer 4082152
        "stop_time" => float 1454790720.5897
        "stop_memory" => integer 4082744
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5904
        "start_memory" => integer 4095640
        "stop_time" => float 1454790720.5905
        "stop_memory" => integer 4096208
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5906
        "start_memory" => integer 4099712
        "stop_time" => float 1454790720.5906
        "stop_memory" => integer 4100304
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5913
        "start_memory" => integer 4113216
        "stop_time" => float 1454790720.5913
        "stop_memory" => integer 4113784
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5914
        "start_memory" => integer 4117288
        "stop_time" => float 1454790720.5915
        "stop_memory" => integer 4117880
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5921
        "start_memory" => integer 4130792
        "stop_time" => float 1454790720.5922
        "stop_memory" => integer 4131360
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5923
        "start_memory" => integer 4134864
        "stop_time" => float 1454790720.5924
        "stop_memory" => integer 4135456
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.593
        "start_memory" => integer 4148352
        "stop_time" => float 1454790720.5931
        "stop_memory" => integer 4148920
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5932
        "start_memory" => integer 4152424
        "stop_time" => float 1454790720.5933
        "stop_memory" => integer 4153016
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.594
        "start_memory" => integer 4165912
        "stop_time" => float 1454790720.5941
        "stop_memory" => integer 4166480
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5942
        "start_memory" => integer 4169984
        "stop_time" => float 1454790720.5943
        "stop_memory" => integer 4170576
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.595
        "start_memory" => integer 4183488
        "stop_time" => float 1454790720.5951
        "stop_memory" => integer 4184056
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5952
        "start_memory" => integer 4187560
        "stop_time" => float 1454790720.5953
        "stop_memory" => integer 4188152
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.596
        "start_memory" => integer 4201048
        "stop_time" => float 1454790720.5961
        "stop_memory" => integer 4201616
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5962
        "start_memory" => integer 4205120
        "stop_time" => float 1454790720.5963
        "stop_memory" => integer 4205712
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.597
        "start_memory" => integer 4218704
        "stop_time" => float 1454790720.5971
        "stop_memory" => integer 4219272
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5972
        "start_memory" => integer 4222776
        "stop_time" => float 1454790720.5973
        "stop_memory" => integer 4223368
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.598
        "start_memory" => integer 4236264
        "stop_time" => float 1454790720.5981
        "stop_memory" => integer 4236832
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.5982
        "start_memory" => integer 4240336
        "stop_time" => float 1454790720.5983
        "stop_memory" => integer 4240928
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6057
        "start_memory" => integer 4253824
        "stop_time" => float 1454790720.6059
        "stop_memory" => integer 4254392
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.606
        "start_memory" => integer 4257896
        "stop_time" => float 1454790720.6062
        "stop_memory" => integer 4258488
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6071
        "start_memory" => integer 4271368
        "stop_time" => float 1454790720.6072
        "stop_memory" => integer 4271936
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6073
        "start_memory" => integer 4275440
        "stop_time" => float 1454790720.6074
        "stop_memory" => integer 4276032
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6081
        "start_memory" => integer 4288928
        "stop_time" => float 1454790720.6082
        "stop_memory" => integer 4289496
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6085
        "start_memory" => integer 4293000
        "stop_time" => float 1454790720.6086
        "stop_memory" => integer 4293592
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6097
        "start_memory" => integer 4306504
        "stop_time" => float 1454790720.6098
        "stop_memory" => integer 4307072
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6099
        "start_memory" => integer 4310576
        "stop_time" => float 1454790720.61
        "stop_memory" => integer 4311168
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6108
        "start_memory" => integer 4324096
        "stop_time" => float 1454790720.6109
        "stop_memory" => integer 4324664
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.611
        "start_memory" => integer 4328168
        "stop_time" => float 1454790720.6111
        "stop_memory" => integer 4328760
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6119
        "start_memory" => integer 4341672
        "stop_time" => float 1454790720.612
        "stop_memory" => integer 4342240
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.6787
        "start_memory" => integer 4345744
        "stop_time" => float 1454790720.6788
        "stop_memory" => integer 4346336
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.7299
        "start_memory" => integer 4359376
        "stop_time" => float 1454790720.73
        "stop_memory" => integer 4359944
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.7302
        "start_memory" => integer 4363448
        "stop_time" => float 1454790720.7303
        "stop_memory" => integer 4364040
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.7312
        "start_memory" => integer 4376968
        "stop_time" => float 1454790720.7314
        "stop_memory" => integer 4377536
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.7315
        "start_memory" => integer 4381040
        "stop_time" => float 1454790720.7316
        "stop_memory" => integer 4381632
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.7324
        "start_memory" => integer 4394544
        "stop_time" => float 1454790720.7622
        "stop_memory" => integer 4395112
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.7668
        "start_memory" => integer 4398616
        "stop_time" => float 1454790720.768
        "stop_memory" => integer 4399208
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.8026
        "start_memory" => integer 4412120
        "stop_time" => float 1454790720.8027
        "stop_memory" => integer 4412688
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.8035
        "start_memory" => integer 4416192
        "stop_time" => float 1454790720.8036
        "stop_memory" => integer 4416784
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.9931
        "start_memory" => integer 4429680
        "stop_time" => float 1454790720.9932
        "stop_memory" => integer 4430248
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.9933
        "start_memory" => integer 4433752
        "stop_time" => float 1454790720.9934
        "stop_memory" => integer 4434344
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.9944
        "start_memory" => integer 4447240
        "stop_time" => float 1454790720.9945
        "stop_memory" => integer 4447808
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790720.9946
        "start_memory" => integer 4451312
        "stop_time" => float 1454790720.9947
        "stop_memory" => integer 4451904
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.0961
        "start_memory" => integer 4464816
        "stop_time" => float 1454790721.0963
        "stop_memory" => integer 4465384
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.1288
        "start_memory" => integer 4468888
        "stop_time" => float 1454790721.1289
        "stop_memory" => integer 4469480
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.1424
        "start_memory" => integer 4482376
        "stop_time" => float 1454790721.1507
        "stop_memory" => integer 4482944
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.1511
        "start_memory" => integer 4486448
        "stop_time" => float 1454790721.1555
        "stop_memory" => integer 4487040
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.2707
        "start_memory" => integer 4500176
        "stop_time" => float 1454790721.2795
        "stop_memory" => integer 4500744
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.2797
        "start_memory" => integer 4504248
        "stop_time" => float 1454790721.2798
        "stop_memory" => integer 4504840
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.4424
        "start_memory" => integer 4527760
        "stop_time" => float 1454790721.4425
        "stop_memory" => integer 4528328
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.4427
        "start_memory" => integer 4531792
        "stop_time" => float 1454790721.4428
        "stop_memory" => integer 4532368
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.4623
        "start_memory" => integer 4613528
        "stop_time" => float 1454790721.4638
        "stop_memory" => integer 4614104
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790721.4644
        "start_memory" => integer 4617568
        "stop_time" => float 1454790721.4656
        "stop_memory" => integer 4618160
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.1516
        "start_memory" => integer 4719336
        "stop_time" => float 1454790722.1539
        "stop_memory" => integer 4719888
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.154
        "start_memory" => integer 4723368
        "stop_time" => float 1454790722.1541
        "stop_memory" => integer 4723952
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.1846
        "start_memory" => integer 4756952
        "stop_time" => float 1454790722.1847
        "stop_memory" => integer 4757544
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.1849
        "start_memory" => integer 4761040
        "stop_time" => float 1454790722.185
        "stop_memory" => integer 4761640
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.1865
        "start_memory" => integer 4787208
        "stop_time" => float 1454790722.1865
        "stop_memory" => integer 4787800
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.1867
        "start_memory" => integer 4791376
        "stop_time" => float 1454790722.1867
        "stop_memory" => integer 4791984
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.1928
        "start_memory" => integer 4810688
        "stop_time" => float 1454790722.1929
        "stop_memory" => integer 4811256
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.1933
        "start_memory" => integer 4814784
        "stop_time" => float 1454790722.1934
        "stop_memory" => integer 4815384
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.198
        "start_memory" => integer 4833936
        "stop_time" => float 1454790722.1981
        "stop_memory" => integer 4834528
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2429
        "start_memory" => integer 4843848
        "stop_time" => float 1454790722.243
        "stop_memory" => integer 4844424
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2434
        "start_memory" => integer 4852704
        "stop_time" => float 1454790722.2434
        "stop_memory" => integer 4853288
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2456
        "start_memory" => integer 4862376
        "stop_time" => float 1454790722.2457
        "stop_memory" => integer 4862928
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2489
        "start_memory" => integer 4866384
        "stop_time" => float 1454790722.2491
        "stop_memory" => integer 4866968
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2516
        "start_memory" => integer 4871024
        "stop_time" => float 1454790722.2517
        "stop_memory" => integer 4871584
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2519
        "start_memory" => integer 4875048
        "stop_time" => float 1454790722.252
        "stop_memory" => integer 4875648
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2527
        "start_memory" => integer 4879576
        "stop_time" => float 1454790722.2527
        "stop_memory" => integer 4880136
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2528
        "start_memory" => integer 4883688
        "stop_time" => float 1454790722.2571
        "stop_memory" => integer 4884272
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2588
        "start_memory" => integer 4893280
        "stop_time" => float 1454790722.2589
        "stop_memory" => integer 4893840
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.259
        "start_memory" => integer 4897360
        "stop_time" => float 1454790722.2591
        "stop_memory" => integer 4897968
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.26
        "start_memory" => integer 4900064
        "stop_time" => float 1454790722.2601
        "stop_memory" => integer 4900712
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2602
        "start_memory" => integer 4907432
        "stop_time" => float 1454790722.2603
        "stop_memory" => integer 4907984
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2604
        "start_memory" => integer 4911432
        "stop_time" => float 1454790722.2605
        "stop_memory" => integer 4912016
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2637
        "start_memory" => integer 5143616
        "stop_time" => float 1454790722.2638
        "stop_memory" => integer 5144208
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.268
        "start_memory" => integer 5200976
        "stop_time" => float 1454790722.2681
        "stop_memory" => integer 5201560
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2688
        "start_memory" => integer 5235952
        "stop_time" => float 1454790722.2689
        "stop_memory" => integer 5236536
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.269
        "start_memory" => integer 5240088
        "stop_time" => float 1454790722.2691
        "stop_memory" => integer 5240688
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2697
        "start_memory" => integer 5246664
        "stop_time" => float 1454790722.2698
        "stop_memory" => integer 5247224
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2703
        "start_memory" => integer 5273288
        "stop_time" => float 1454790722.2703
        "stop_memory" => integer 5273864
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2708
        "start_memory" => integer 5302808
        "stop_time" => float 1454790722.2709
        "stop_memory" => integer 5303400
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2717
        "start_memory" => integer 5330080
        "stop_time" => float 1454790722.2718
        "stop_memory" => integer 5330616
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2719
        "start_memory" => integer 5334040
        "stop_time" => float 1454790722.272
        "stop_memory" => integer 5334616
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.275
        "start_memory" => integer 5361840
        "stop_time" => float 1454790722.2751
        "stop_memory" => integer 5362472
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2753
        "start_memory" => integer 5366288
        "stop_time" => float 1454790722.2754
        "stop_memory" => integer 5366928
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2789
        "start_memory" => integer 5397984
        "stop_time" => float 1454790722.279
        "stop_memory" => integer 5398552
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2792
        "start_memory" => integer 5402216
        "stop_time" => float 1454790722.2793
        "stop_memory" => integer 5402848
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2858
        "start_memory" => integer 5467600
        "stop_time" => float 1454790722.2859
        "stop_memory" => integer 5468168
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2861
        "start_memory" => integer 5471664
        "stop_time" => float 1454790722.2862
        "stop_memory" => integer 5472256
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2869
        "start_memory" => integer 5482336
        "stop_time" => float 1454790722.287
        "stop_memory" => integer 5482968
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2871
        "start_memory" => integer 5486400
        "stop_time" => float 1454790722.2872
        "stop_memory" => integer 5487008
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2883
        "start_memory" => integer 5531536
        "stop_time" => float 1454790722.2885
        "stop_memory" => integer 5532120
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2886
        "start_memory" => integer 5535656
        "stop_time" => float 1454790722.2887
        "stop_memory" => integer 5536248
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2895
        "start_memory" => integer 5556568
        "stop_time" => float 1454790722.2897
        "stop_memory" => integer 5557184
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2898
        "start_memory" => integer 5560704
        "stop_time" => float 1454790722.2899
        "stop_memory" => integer 5561328
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2916
        "start_memory" => integer 5609912
        "stop_time" => float 1454790722.2917
        "stop_memory" => integer 5610472
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2918
        "start_memory" => integer 5613992
        "stop_time" => float 1454790722.2919
        "stop_memory" => integer 5614600
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2929
        "start_memory" => integer 5636912
        "stop_time" => float 1454790722.293
        "stop_memory" => integer 5637496
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2931
        "start_memory" => integer 5641000
        "stop_time" => float 1454790722.2933
        "stop_memory" => integer 5641568
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2949
        "start_memory" => integer 5714096
        "stop_time" => float 1454790722.295
        "stop_memory" => integer 5714712
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.2951
        "start_memory" => integer 5718240
        "stop_time" => float 1454790722.2952
        "stop_memory" => integer 5718824
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3029
        "start_memory" => integer 5737936
        "stop_time" => float 1454790722.303
        "stop_memory" => integer 5738496
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3032
        "start_memory" => integer 5741952
        "stop_time" => float 1454790722.3033
        "stop_memory" => integer 5742536
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3065
        "start_memory" => integer 5802304
        "stop_time" => float 1454790722.3066
        "stop_memory" => integer 5802872
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3067
        "start_memory" => integer 5806400
        "stop_time" => float 1454790722.3068
        "stop_memory" => integer 5807000
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3082
        "start_memory" => integer 5876112
        "stop_time" => float 1454790722.3083
        "stop_memory" => integer 5876736
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3084
        "start_memory" => integer 5880336
        "stop_time" => float 1454790722.3085
        "stop_memory" => integer 5880888
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3097
        "start_memory" => integer 5898272
        "stop_time" => float 1454790722.3098
        "stop_memory" => integer 5898856
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3102
        "start_memory" => integer 5864752
        "stop_time" => float 1454790722.3103
        "stop_memory" => integer 5867072
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3116
        "start_memory" => integer 5903256
        "stop_time" => float 1454790722.3117
        "stop_memory" => integer 5904920
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454790722.3117
        "start_memory" => integer 5904552
        "stop_time" => float 1454790722.3118
        "stop_memory" => integer 5906224
    )
)

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