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(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1411482178.0866
        "start_memory" => integer 1985312
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0866
        "start_memory" => integer 1987656
        "stop_time" => float 1411482178.0866
        "stop_memory" => integer 1988248
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0867
        "start_memory" => integer 1993200
        "stop_time" => float 1411482178.0868
        "stop_memory" => integer 1993792
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0874
        "start_memory" => integer 2119312
        "stop_time" => float 1411482178.0874
        "stop_memory" => integer 2119864
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0875
        "start_memory" => integer 2124784
        "stop_time" => float 1411482178.0875
        "stop_memory" => integer 2125368
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0876
        "start_memory" => integer 2136456
        "stop_time" => float 1411482178.0877
        "stop_memory" => integer 2137000
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0878
        "start_memory" => integer 2141712
        "stop_time" => float 1411482178.0878
        "stop_memory" => integer 2142288
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0879
        "start_memory" => integer 2151568
        "stop_time" => float 1411482178.088
        "stop_memory" => integer 2152128
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0881
        "start_memory" => integer 2156800
        "stop_time" => float 1411482178.0881
        "stop_memory" => integer 2157408
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0888
        "start_memory" => integer 2318336
        "stop_time" => float 1411482178.0889
        "stop_memory" => integer 2318896
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0889
        "start_memory" => integer 2323744
        "stop_time" => float 1411482178.089
        "stop_memory" => integer 2324320
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0891
        "start_memory" => integer 2337776
        "stop_time" => float 1411482178.0892
        "stop_memory" => integer 2338320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0892
        "start_memory" => integer 2342968
        "stop_time" => float 1411482178.0893
        "stop_memory" => integer 2343536
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0896
        "start_memory" => integer 2398360
        "stop_time" => float 1411482178.0896
        "stop_memory" => integer 2398952
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0897
        "start_memory" => integer 2400112
        "stop_time" => float 1411482178.0897
        "stop_memory" => integer 2400688
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0898
        "start_memory" => integer 2405560
        "stop_time" => float 1411482178.0898
        "stop_memory" => integer 2406136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0901
        "start_memory" => integer 2471600
        "stop_time" => float 1411482178.0901
        "stop_memory" => integer 2472216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0902
        "start_memory" => integer 2473000
        "stop_time" => float 1411482178.0902
        "stop_memory" => integer 2473576
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0935
        "start_memory" => integer 3142272
        "stop_time" => float 1411482178.0935
        "stop_memory" => integer 3142800
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0936
        "start_memory" => integer 3148472
        "stop_time" => float 1411482178.0936
        "stop_memory" => integer 3149040
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0939
        "start_memory" => integer 3181792
        "stop_time" => float 1411482178.094
        "stop_memory" => integer 3182336
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0941
        "start_memory" => integer 3187000
        "stop_time" => float 1411482178.0941
        "stop_memory" => integer 3187568
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0948
        "start_memory" => integer 3350384
        "stop_time" => float 1411482178.0948
        "stop_memory" => integer 3350960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0949
        "start_memory" => integer 3355840
        "stop_time" => float 1411482178.095
        "stop_memory" => integer 3356424
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0951
        "start_memory" => integer 3359112
        "stop_time" => float 1411482178.0951
        "stop_memory" => integer 3359672
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0952
        "start_memory" => integer 3364544
        "stop_time" => float 1411482178.0952
        "stop_memory" => integer 3365128
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0955
        "start_memory" => integer 3414784
        "stop_time" => float 1411482178.0955
        "stop_memory" => integer 3415328
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0956
        "start_memory" => integer 3420000
        "stop_time" => float 1411482178.0957
        "stop_memory" => integer 3420576
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0962
        "start_memory" => integer 3518616
        "stop_time" => float 1411482178.0962
        "stop_memory" => integer 3519152
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0963
        "start_memory" => integer 3523792
        "stop_time" => float 1411482178.0963
        "stop_memory" => integer 3524360
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.0975
        "start_memory" => integer 3610952
        "stop_time" => float 1411482178.0976
        "stop_memory" => integer 3611544
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1677
        "start_memory" => integer 3653704
        "stop_time" => float 1411482178.1677
        "stop_memory" => integer 3654272
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1678
        "start_memory" => integer 3658936
        "stop_time" => float 1411482178.1678
        "stop_memory" => integer 3659768
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1686
        "start_memory" => integer 3700368
        "stop_time" => float 1411482178.1686
        "stop_memory" => integer 3700920
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1687
        "start_memory" => integer 3705752
        "stop_time" => float 1411482178.1687
        "stop_memory" => integer 3706328
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1694
        "start_memory" => integer 3730032
        "stop_time" => float 1411482178.1694
        "stop_memory" => integer 3730584
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1695
        "start_memory" => integer 3735272
        "stop_time" => float 1411482178.1695
        "stop_memory" => integer 3735848
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1702
        "start_memory" => integer 3803016
        "stop_time" => float 1411482178.1702
        "stop_memory" => integer 3803600
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1703
        "start_memory" => integer 3821592
        "stop_time" => float 1411482178.1703
        "stop_memory" => integer 3822152
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1704
        "start_memory" => integer 3827016
        "stop_time" => float 1411482178.1705
        "stop_memory" => integer 3827600
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1709
        "start_memory" => integer 3892736
        "stop_time" => float 1411482178.1709
        "stop_memory" => integer 3893312
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1713
        "start_memory" => integer 3912736
        "stop_time" => float 1411482178.1713
        "stop_memory" => integer 3913312
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1717
        "start_memory" => integer 3961360
        "stop_time" => float 1411482178.1717
        "stop_memory" => integer 3961936
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1719
        "start_memory" => integer 3972592
        "stop_time" => float 1411482178.172
        "stop_memory" => integer 3973168
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1723
        "start_memory" => integer 3991184
        "stop_time" => float 1411482178.1723
        "stop_memory" => integer 3991760
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1725
        "start_memory" => integer 4001456
        "stop_time" => float 1411482178.1726
        "stop_memory" => integer 4002032
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1729
        "start_memory" => integer 4022136
        "stop_time" => float 1411482178.1729
        "stop_memory" => integer 4022712
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1732
        "start_memory" => integer 4043192
        "stop_time" => float 1411482178.1732
        "stop_memory" => integer 4043784
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1737
        "start_memory" => integer 4057024
        "stop_time" => float 1411482178.1737
        "stop_memory" => integer 4057592
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1739
        "start_memory" => integer 4069808
        "stop_time" => float 1411482178.174
        "stop_memory" => integer 4070384
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1743
        "start_memory" => integer 4118664
        "stop_time" => float 1411482178.1744
        "stop_memory" => integer 4119224
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1747
        "start_memory" => integer 4157672
        "stop_time" => float 1411482178.1747
        "stop_memory" => integer 4158256
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.175
        "start_memory" => integer 4177656
        "stop_time" => float 1411482178.175
        "stop_memory" => integer 4178232
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1754
        "start_memory" => integer 4209416
        "stop_time" => float 1411482178.1754
        "stop_memory" => integer 4209992
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1757
        "start_memory" => integer 4228704
        "stop_time" => float 1411482178.1757
        "stop_memory" => integer 4229248
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1758
        "start_memory" => integer 4233920
        "stop_time" => float 1411482178.1758
        "stop_memory" => integer 4234496
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.176
        "start_memory" => integer 4265336
        "stop_time" => float 1411482178.1761
        "stop_memory" => integer 4265872
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1761
        "start_memory" => integer 4270520
        "stop_time" => float 1411482178.1762
        "stop_memory" => integer 4271088
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1787
        "start_memory" => integer 4412656
        "stop_time" => float 1411482178.1788
        "stop_memory" => integer 4413232
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1865
        "start_memory" => integer 4466040
        "stop_time" => float 1411482178.1865
        "stop_memory" => integer 4466592
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1866
        "start_memory" => integer 4471440
        "stop_time" => float 1411482178.1867
        "stop_memory" => integer 4472016
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1907
        "start_memory" => integer 4497528
        "stop_time" => float 1411482178.1907
        "stop_memory" => integer 4498112
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1908
        "start_memory" => integer 4503048
        "stop_time" => float 1411482178.1909
        "stop_memory" => integer 4503624
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1948
        "start_memory" => integer 4529248
        "stop_time" => float 1411482178.1948
        "stop_memory" => integer 4529808
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1949
        "start_memory" => integer 4534664
        "stop_time" => float 1411482178.195
        "stop_memory" => integer 4535744
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1954
        "start_memory" => integer 4624512
        "stop_time" => float 1411482178.1955
        "stop_memory" => integer 4625112
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1997
        "start_memory" => integer 4632032
        "stop_time" => float 1411482178.1998
        "stop_memory" => integer 4632584
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.1999
        "start_memory" => integer 4637464
        "stop_time" => float 1411482178.1999
        "stop_memory" => integer 4638048
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2141
        "start_memory" => integer 4694952
        "stop_time" => float 1411482178.2142
        "stop_memory" => integer 4695512
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2143
        "start_memory" => integer 4700432
        "stop_time" => float 1411482178.2144
        "stop_memory" => integer 4701016
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2146
        "start_memory" => integer 4724856
        "stop_time" => float 1411482178.2146
        "stop_memory" => integer 4725432
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2152
        "start_memory" => integer 4734544
        "stop_time" => float 1411482178.2153
        "stop_memory" => integer 4735104
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2154
        "start_memory" => integer 4739968
        "stop_time" => float 1411482178.2154
        "stop_memory" => integer 4740552
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2163
        "start_memory" => integer 4820032
        "stop_time" => float 1411482178.2164
        "stop_memory" => integer 4820592
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2165
        "start_memory" => integer 4825472
        "stop_time" => float 1411482178.2165
        "stop_memory" => integer 4826056
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2219
        "start_memory" => integer 4851752
        "stop_time" => float 1411482178.2219
        "stop_memory" => integer 4852312
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2221
        "start_memory" => integer 4857176
        "stop_time" => float 1411482178.2221
        "stop_memory" => integer 4857760
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2234
        "start_memory" => integer 4879184
        "stop_time" => float 1411482178.2235
        "stop_memory" => integer 4879712
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2236
        "start_memory" => integer 4884360
        "stop_time" => float 1411482178.2236
        "stop_memory" => integer 4884936
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.226
        "start_memory" => integer 4895792
        "stop_time" => float 1411482178.226
        "stop_memory" => integer 4896384
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2261
        "start_memory" => integer 4901272
        "stop_time" => float 1411482178.2261
        "stop_memory" => integer 4901848
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2295
        "start_memory" => integer 4946856
        "stop_time" => float 1411482178.2296
        "stop_memory" => integer 4947432
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.23
        "start_memory" => integer 4958568
        "stop_time" => float 1411482178.2301
        "stop_memory" => integer 4959112
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2302
        "start_memory" => integer 4965008
        "stop_time" => float 1411482178.2302
        "stop_memory" => integer 4965584
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2331
        "start_memory" => integer 4987040
        "stop_time" => float 1411482178.2331
        "stop_memory" => integer 4987616
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2348
        "start_memory" => integer 4993168
        "stop_time" => float 1411482178.2348
        "stop_memory" => integer 4993736
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2349
        "start_memory" => integer 4998592
        "stop_time" => float 1411482178.2349
        "stop_memory" => integer 4999176
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2368
        "start_memory" => integer 5132904
        "stop_time" => float 1411482178.2368
        "stop_memory" => integer 5133480
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2369
        "start_memory" => integer 5138432
        "stop_time" => float 1411482178.2369
        "stop_memory" => integer 5139024
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2374
        "start_memory" => integer 5153872
        "stop_time" => float 1411482178.2374
        "stop_memory" => integer 5154440
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2375
        "start_memory" => integer 5159400
        "stop_time" => float 1411482178.2375
        "stop_memory" => integer 5159992
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2387
        "start_memory" => integer 5165928
        "stop_time" => float 1411482178.2387
        "stop_memory" => integer 5166480
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2388
        "start_memory" => integer 5171352
        "stop_time" => float 1411482178.2388
        "stop_memory" => integer 5171936
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2401
        "start_memory" => integer 5316528
        "stop_time" => float 1411482178.2401
        "stop_memory" => integer 5317104
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2402
        "start_memory" => integer 5322064
        "stop_time" => float 1411482178.2402
        "stop_memory" => integer 5322656
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2404
        "start_memory" => integer 5343336
        "stop_time" => float 1411482178.2404
        "stop_memory" => integer 5343904
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2405
        "start_memory" => integer 5348792
        "stop_time" => float 1411482178.2405
        "stop_memory" => integer 5349368
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2414
        "start_memory" => integer 5411688
        "stop_time" => float 1411482178.2414
        "stop_memory" => integer 5412248
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2416
        "start_memory" => integer 5417120
        "stop_time" => float 1411482178.2416
        "stop_memory" => integer 5417704
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2423
        "start_memory" => integer 5483208
        "stop_time" => float 1411482178.2423
        "stop_memory" => integer 5483768
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2424
        "start_memory" => integer 5488632
        "stop_time" => float 1411482178.2424
        "stop_memory" => integer 5489216
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2433
        "start_memory" => integer 5531872
        "stop_time" => float 1411482178.2434
        "stop_memory" => integer 5532448
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2434
        "start_memory" => integer 5537416
        "stop_time" => float 1411482178.2435
        "stop_memory" => integer 5538008
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2444
        "start_memory" => integer 5596848
        "stop_time" => float 1411482178.2445
        "stop_memory" => integer 5597432
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2447
        "start_memory" => integer 5602496
        "stop_time" => float 1411482178.2447
        "stop_memory" => integer 5603096
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2449
        "start_memory" => integer 5622768
        "stop_time" => float 1411482178.2449
        "stop_memory" => integer 5623344
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.245
        "start_memory" => integer 5628408
        "stop_time" => float 1411482178.245
        "stop_memory" => integer 5629008
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2464
        "start_memory" => integer 5693480
        "stop_time" => float 1411482178.2464
        "stop_memory" => integer 5694056
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2466
        "start_memory" => integer 5699120
        "stop_time" => float 1411482178.2467
        "stop_memory" => integer 5699720
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2475
        "start_memory" => integer 5748048
        "stop_time" => float 1411482178.2475
        "stop_memory" => integer 5748624
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2477
        "start_memory" => integer 5753680
        "stop_time" => float 1411482178.2478
        "stop_memory" => integer 5754280
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2485
        "start_memory" => integer 5795584
        "stop_time" => float 1411482178.2487
        "stop_memory" => integer 5796160
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2488
        "start_memory" => integer 5801224
        "stop_time" => float 1411482178.2488
        "stop_memory" => integer 5801824
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.25
        "start_memory" => integer 5914752
        "stop_time" => float 1411482178.25
        "stop_memory" => integer 5915328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2501
        "start_memory" => integer 5920392
        "stop_time" => float 1411482178.2502
        "stop_memory" => integer 5920992
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2524
        "start_memory" => integer 5969648
        "stop_time" => float 1411482178.2524
        "stop_memory" => integer 5970208
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2525
        "start_memory" => integer 5975176
        "stop_time" => float 1411482178.2525
        "stop_memory" => integer 5975768
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2533
        "start_memory" => integer 5998888
        "stop_time" => float 1411482178.2534
        "stop_memory" => integer 5999408
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2536
        "start_memory" => integer 6004048
        "stop_time" => float 1411482178.2536
        "stop_memory" => integer 6004616
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2542
        "start_memory" => integer 6122264
        "stop_time" => float 1411482178.2543
        "stop_memory" => integer 6122808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2549
        "start_memory" => integer 6123864
        "stop_time" => float 1411482178.255
        "stop_memory" => integer 6124432
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2551
        "start_memory" => integer 6129104
        "stop_time" => float 1411482178.2551
        "stop_memory" => integer 6129688
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2602
        "start_memory" => integer 6150008
        "stop_time" => float 1411482178.2603
        "stop_memory" => integer 6150544
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2604
        "start_memory" => integer 6155192
        "stop_time" => float 1411482178.2605
        "stop_memory" => integer 6155760
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2631
        "start_memory" => integer 6193264
        "stop_time" => float 1411482178.2632
        "stop_memory" => integer 6193808
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2633
        "start_memory" => integer 6198448
        "stop_time" => float 1411482178.2633
        "stop_memory" => integer 6199016
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.264
        "start_memory" => integer 6241488
        "stop_time" => float 1411482178.264
        "stop_memory" => integer 6242032
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2641
        "start_memory" => integer 6246680
        "stop_time" => float 1411482178.2642
        "stop_memory" => integer 6247248
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2648
        "start_memory" => integer 6291464
        "stop_time" => float 1411482178.2649
        "stop_memory" => integer 6293032
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.265
        "start_memory" => integer 6297672
        "stop_time" => float 1411482178.265
        "stop_memory" => integer 6298240
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2661
        "start_memory" => integer 6373744
        "stop_time" => float 1411482178.2662
        "stop_memory" => integer 6374288
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2663
        "start_memory" => integer 6378952
        "stop_time" => float 1411482178.2663
        "stop_memory" => integer 6379520
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2683
        "start_memory" => integer 6401712
        "stop_time" => float 1411482178.2684
        "stop_memory" => integer 6402256
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2684
        "start_memory" => integer 6406896
        "stop_time" => float 1411482178.2685
        "stop_memory" => integer 6407464
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2699
        "start_memory" => integer 6436944
        "stop_time" => float 1411482178.27
        "stop_memory" => integer 6437504
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2701
        "start_memory" => integer 6442352
        "stop_time" => float 1411482178.2702
        "stop_memory" => integer 6442928
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.271
        "start_memory" => integer 6463240
        "stop_time" => float 1411482178.2711
        "stop_memory" => integer 6463808
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2711
        "start_memory" => integer 6468744
        "stop_time" => float 1411482178.2712
        "stop_memory" => integer 6469328
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.272
        "start_memory" => integer 6484352
        "stop_time" => float 1411482178.2721
        "stop_memory" => integer 6484912
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2722
        "start_memory" => integer 6489848
        "stop_time" => float 1411482178.2722
        "stop_memory" => integer 6490432
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2728
        "start_memory" => integer 6505480
        "stop_time" => float 1411482178.2729
        "stop_memory" => integer 6506040
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.273
        "start_memory" => integer 6510976
        "stop_time" => float 1411482178.273
        "stop_memory" => integer 6511560
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2739
        "start_memory" => integer 6526608
        "stop_time" => float 1411482178.2739
        "stop_memory" => integer 6527168
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.274
        "start_memory" => integer 6532104
        "stop_time" => float 1411482178.274
        "stop_memory" => integer 6532688
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2747
        "start_memory" => integer 6547712
        "stop_time" => float 1411482178.2747
        "stop_memory" => integer 6548272
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2748
        "start_memory" => integer 6553208
        "stop_time" => float 1411482178.2749
        "stop_memory" => integer 6553792
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2756
        "start_memory" => integer 6568816
        "stop_time" => float 1411482178.2756
        "stop_memory" => integer 6569376
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2757
        "start_memory" => integer 6574312
        "stop_time" => float 1411482178.2758
        "stop_memory" => integer 6574896
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2763
        "start_memory" => integer 6589952
        "stop_time" => float 1411482178.2763
        "stop_memory" => integer 6590512
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2765
        "start_memory" => integer 6595448
        "stop_time" => float 1411482178.2765
        "stop_memory" => integer 6596032
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2771
        "start_memory" => integer 6611056
        "stop_time" => float 1411482178.2771
        "stop_memory" => integer 6611616
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2772
        "start_memory" => integer 6616552
        "stop_time" => float 1411482178.2772
        "stop_memory" => integer 6617136
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2779
        "start_memory" => integer 6632272
        "stop_time" => float 1411482178.2779
        "stop_memory" => integer 6632832
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.278
        "start_memory" => integer 6637768
        "stop_time" => float 1411482178.278
        "stop_memory" => integer 6638352
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2787
        "start_memory" => integer 6653384
        "stop_time" => float 1411482178.2788
        "stop_memory" => integer 6653944
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2788
        "start_memory" => integer 6658880
        "stop_time" => float 1411482178.2789
        "stop_memory" => integer 6659464
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2794
        "start_memory" => integer 6674504
        "stop_time" => float 1411482178.2794
        "stop_memory" => integer 6675064
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2795
        "start_memory" => integer 6680000
        "stop_time" => float 1411482178.2796
        "stop_memory" => integer 6680584
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2802
        "start_memory" => integer 6695592
        "stop_time" => float 1411482178.2802
        "stop_memory" => integer 6696152
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2803
        "start_memory" => integer 6701088
        "stop_time" => float 1411482178.2803
        "stop_memory" => integer 6701672
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2809
        "start_memory" => integer 6716696
        "stop_time" => float 1411482178.2809
        "stop_memory" => integer 6717256
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.281
        "start_memory" => integer 6722192
        "stop_time" => float 1411482178.2811
        "stop_memory" => integer 6722776
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2816
        "start_memory" => integer 6737824
        "stop_time" => float 1411482178.2817
        "stop_memory" => integer 6738384
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2817
        "start_memory" => integer 6743320
        "stop_time" => float 1411482178.2818
        "stop_memory" => integer 6743904
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2824
        "start_memory" => integer 6758960
        "stop_time" => float 1411482178.2824
        "stop_memory" => integer 6759520
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2825
        "start_memory" => integer 6764456
        "stop_time" => float 1411482178.2825
        "stop_memory" => integer 6765040
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2831
        "start_memory" => integer 6780088
        "stop_time" => float 1411482178.2831
        "stop_memory" => integer 6780648
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2832
        "start_memory" => integer 6785584
        "stop_time" => float 1411482178.2833
        "stop_memory" => integer 6786168
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2839
        "start_memory" => integer 6801352
        "stop_time" => float 1411482178.284
        "stop_memory" => integer 6801912
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.284
        "start_memory" => integer 6806848
        "stop_time" => float 1411482178.2841
        "stop_memory" => integer 6807432
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2847
        "start_memory" => integer 6822504
        "stop_time" => float 1411482178.2847
        "stop_memory" => integer 6823064
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2848
        "start_memory" => integer 6828000
        "stop_time" => float 1411482178.2848
        "stop_memory" => integer 6828584
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2854
        "start_memory" => integer 6843640
        "stop_time" => float 1411482178.2854
        "stop_memory" => integer 6844200
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2855
        "start_memory" => integer 6849136
        "stop_time" => float 1411482178.2856
        "stop_memory" => integer 6849720
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2861
        "start_memory" => integer 6864768
        "stop_time" => float 1411482178.2862
        "stop_memory" => integer 6865328
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2862
        "start_memory" => integer 6870264
        "stop_time" => float 1411482178.2863
        "stop_memory" => integer 6870848
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2869
        "start_memory" => integer 6885872
        "stop_time" => float 1411482178.2869
        "stop_memory" => integer 6886432
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.287
        "start_memory" => integer 6891368
        "stop_time" => float 1411482178.2871
        "stop_memory" => integer 6891952
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2876
        "start_memory" => integer 6906976
        "stop_time" => float 1411482178.2877
        "stop_memory" => integer 6907536
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2878
        "start_memory" => integer 6912472
        "stop_time" => float 1411482178.2878
        "stop_memory" => integer 6913056
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2884
        "start_memory" => integer 6928112
        "stop_time" => float 1411482178.2884
        "stop_memory" => integer 6928672
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2885
        "start_memory" => integer 6933608
        "stop_time" => float 1411482178.2885
        "stop_memory" => integer 6934192
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2891
        "start_memory" => integer 6949232
        "stop_time" => float 1411482178.2892
        "stop_memory" => integer 6949792
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2893
        "start_memory" => integer 6954728
        "stop_time" => float 1411482178.2893
        "stop_memory" => integer 6955312
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2907
        "start_memory" => integer 6970576
        "stop_time" => float 1411482178.2907
        "stop_memory" => integer 6971136
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2908
        "start_memory" => integer 6976048
        "stop_time" => float 1411482178.2908
        "stop_memory" => integer 6976616
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2932
        "start_memory" => integer 7014640
        "stop_time" => float 1411482178.2933
        "stop_memory" => integer 7015192
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2934
        "start_memory" => integer 7019864
        "stop_time" => float 1411482178.2934
        "stop_memory" => integer 7020440
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2945
        "start_memory" => integer 7151504
        "stop_time" => float 1411482178.2945
        "stop_memory" => integer 7152056
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2946
        "start_memory" => integer 7156736
        "stop_time" => float 1411482178.2947
        "stop_memory" => integer 7157312
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2961
        "start_memory" => integer 7326480
        "stop_time" => float 1411482178.2961
        "stop_memory" => integer 7327032
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2962
        "start_memory" => integer 7331720
        "stop_time" => float 1411482178.2962
        "stop_memory" => integer 7332280
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2982
        "start_memory" => integer 7387944
        "stop_time" => float 1411482178.2983
        "stop_memory" => integer 7388520
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2984
        "start_memory" => integer 7393408
        "stop_time" => float 1411482178.2984
        "stop_memory" => integer 7393976
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.299
        "start_memory" => integer 7434024
        "stop_time" => float 1411482178.2991
        "stop_memory" => integer 7434600
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.2991
        "start_memory" => integer 7439552
        "stop_time" => float 1411482178.2992
        "stop_memory" => integer 7440144
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3006
        "start_memory" => integer 7466104
        "stop_time" => float 1411482178.3007
        "stop_memory" => integer 7466672
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3007
        "start_memory" => integer 7471544
        "stop_time" => float 1411482178.3008
        "stop_memory" => integer 7472120
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3026
        "start_memory" => integer 7498184
        "stop_time" => float 1411482178.3026
        "stop_memory" => integer 7498760
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3057
        "start_memory" => integer 7509664
        "stop_time" => float 1411482178.3057
        "stop_memory" => integer 7510224
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3059
        "start_memory" => integer 7520096
        "stop_time" => float 1411482178.306
        "stop_memory" => integer 7520664
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3078
        "start_memory" => integer 7531312
        "stop_time" => float 1411482178.3078
        "stop_memory" => integer 7531864
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3079
        "start_memory" => integer 7536576
        "stop_time" => float 1411482178.308
        "stop_memory" => integer 7537176
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3087
        "start_memory" => integer 7542640
        "stop_time" => float 1411482178.3088
        "stop_memory" => integer 7543192
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3089
        "start_memory" => integer 7547920
        "stop_time" => float 1411482178.3089
        "stop_memory" => integer 7548496
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3095
        "start_memory" => integer 7553944
        "stop_time" => float 1411482178.3095
        "stop_memory" => integer 7554496
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3097
        "start_memory" => integer 7559248
        "stop_time" => float 1411482178.3097
        "stop_memory" => integer 7559824
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3108
        "start_memory" => integer 7571832
        "stop_time" => float 1411482178.3108
        "stop_memory" => integer 7572368
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3109
        "start_memory" => integer 7577016
        "stop_time" => float 1411482178.311
        "stop_memory" => integer 7577584
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3116
        "start_memory" => integer 7580648
        "stop_time" => float 1411482178.3117
        "stop_memory" => integer 7581224
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3118
        "start_memory" => integer 7590512
        "stop_time" => float 1411482178.3118
        "stop_memory" => integer 7591048
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3119
        "start_memory" => integer 7597768
        "stop_time" => float 1411482178.3119
        "stop_memory" => integer 7598336
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3147
        "start_memory" => integer 7975760
        "stop_time" => float 1411482178.3147
        "stop_memory" => integer 7976336
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3154
        "start_memory" => integer 8050784
        "stop_time" => float 1411482178.3155
        "stop_memory" => integer 8051368
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.316
        "start_memory" => integer 8096600
        "stop_time" => float 1411482178.316
        "stop_memory" => integer 8097160
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3161
        "start_memory" => integer 8102024
        "stop_time" => float 1411482178.3161
        "stop_memory" => integer 8102608
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3167
        "start_memory" => integer 8111568
        "stop_time" => float 1411482178.3167
        "stop_memory" => integer 8112112
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3172
        "start_memory" => integer 8143576
        "stop_time" => float 1411482178.3173
        "stop_memory" => integer 8144136
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.318
        "start_memory" => integer 8178568
        "stop_time" => float 1411482178.3181
        "stop_memory" => integer 8179144
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3186
        "start_memory" => integer 8211256
        "stop_time" => float 1411482178.3186
        "stop_memory" => integer 8211792
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3187
        "start_memory" => integer 8216448
        "stop_time" => float 1411482178.3187
        "stop_memory" => integer 8217016
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3206
        "start_memory" => integer 8258824
        "stop_time" => float 1411482178.3207
        "stop_memory" => integer 8259416
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3208
        "start_memory" => integer 8264600
        "stop_time" => float 1411482178.3209
        "stop_memory" => integer 8265192
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3246
        "start_memory" => integer 8309296
        "stop_time" => float 1411482178.3247
        "stop_memory" => integer 8309848
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3248
        "start_memory" => integer 8314784
        "stop_time" => float 1411482178.3249
        "stop_memory" => integer 8315368
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3291
        "start_memory" => integer 8417056
        "stop_time" => float 1411482178.3291
        "stop_memory" => integer 8417584
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3292
        "start_memory" => integer 8422240
        "stop_time" => float 1411482178.3293
        "stop_memory" => integer 8422808
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3298
        "start_memory" => integer 8437736
        "stop_time" => float 1411482178.3298
        "stop_memory" => integer 8438288
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3299
        "start_memory" => integer 8442936
        "stop_time" => float 1411482178.33
        "stop_memory" => integer 8443504
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3307
        "start_memory" => integer 8509936
        "stop_time" => float 1411482178.3307
        "stop_memory" => integer 8510496
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3308
        "start_memory" => integer 8515352
        "stop_time" => float 1411482178.3309
        "stop_memory" => integer 8515928
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3313
        "start_memory" => integer 8539368
        "stop_time" => float 1411482178.3313
        "stop_memory" => integer 8539976
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3315
        "start_memory" => integer 8544896
        "stop_time" => float 1411482178.3315
        "stop_memory" => integer 8545488
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3326
        "start_memory" => integer 8616480
        "stop_time" => float 1411482178.3327
        "stop_memory" => integer 8617016
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3327
        "start_memory" => integer 8621888
        "stop_time" => float 1411482178.3328
        "stop_memory" => integer 8622440
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3333
        "start_memory" => integer 8650144
        "stop_time" => float 1411482178.3333
        "stop_memory" => integer 8650680
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3334
        "start_memory" => integer 8655336
        "stop_time" => float 1411482178.3334
        "stop_memory" => integer 8655904
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3344
        "start_memory" => integer 8777128
        "stop_time" => float 1411482178.3344
        "stop_memory" => integer 8777672
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3345
        "start_memory" => integer 8782344
        "stop_time" => float 1411482178.3345
        "stop_memory" => integer 8782912
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3391
        "start_memory" => integer 8814296
        "stop_time" => float 1411482178.3392
        "stop_memory" => integer 8814840
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3393
        "start_memory" => integer 8819488
        "stop_time" => float 1411482178.3393
        "stop_memory" => integer 8820056
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3402
        "start_memory" => integer 8920384
        "stop_time" => float 1411482178.3402
        "stop_memory" => integer 8920944
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3403
        "start_memory" => integer 8925656
        "stop_time" => float 1411482178.3403
        "stop_memory" => integer 8926232
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3412
        "start_memory" => integer 9034000
        "stop_time" => float 1411482178.3413
        "stop_memory" => integer 9034568
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3414
        "start_memory" => integer 9039488
        "stop_time" => float 1411482178.3414
        "stop_memory" => integer 9040072
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3423
        "start_memory" => integer 9061264
        "stop_time" => float 1411482178.3423
        "stop_memory" => integer 9061840
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3427
        "start_memory" => integer 9026304
        "stop_time" => float 1411482178.3427
        "stop_memory" => integer 9028240
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3432
        "start_memory" => integer 9098960
        "stop_time" => float 1411482178.3433
        "stop_memory" => integer 9100688
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411482178.3433
        "start_memory" => integer 9100448
        "stop_time" => float 1411482178.3433
        "stop_memory" => integer 9102176
    )
)

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