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 1417227374.0815
        "start_memory" => integer 1988816
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0815
        "start_memory" => integer 1991160
        "stop_time" => float 1417227374.0815
        "stop_memory" => integer 1991752
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0816
        "start_memory" => integer 1996704
        "stop_time" => float 1417227374.0816
        "stop_memory" => integer 1997296
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0822
        "start_memory" => integer 2122840
        "stop_time" => float 1417227374.0823
        "stop_memory" => integer 2123392
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0823
        "start_memory" => integer 2128312
        "stop_time" => float 1417227374.0824
        "stop_memory" => integer 2128920
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0825
        "start_memory" => integer 2140008
        "stop_time" => float 1417227374.0826
        "stop_memory" => integer 2140552
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0826
        "start_memory" => integer 2145264
        "stop_time" => float 1417227374.0827
        "stop_memory" => integer 2145840
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0829
        "start_memory" => integer 2155120
        "stop_time" => float 1417227374.0829
        "stop_memory" => integer 2155656
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.083
        "start_memory" => integer 2160312
        "stop_time" => float 1417227374.0831
        "stop_memory" => integer 2160960
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0839
        "start_memory" => integer 2321712
        "stop_time" => float 1417227374.0841
        "stop_memory" => integer 2322272
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0842
        "start_memory" => integer 2327120
        "stop_time" => float 1417227374.0842
        "stop_memory" => integer 2327696
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0844
        "start_memory" => integer 2341168
        "stop_time" => float 1417227374.0844
        "stop_memory" => integer 2341720
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0845
        "start_memory" => integer 2346352
        "stop_time" => float 1417227374.0846
        "stop_memory" => integer 2346920
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.085
        "start_memory" => integer 2401744
        "stop_time" => float 1417227374.085
        "stop_memory" => integer 2402336
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0851
        "start_memory" => integer 2403496
        "stop_time" => float 1417227374.0851
        "stop_memory" => integer 2404072
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0852
        "start_memory" => integer 2408944
        "stop_time" => float 1417227374.0852
        "stop_memory" => integer 2409520
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0856
        "start_memory" => integer 2474968
        "stop_time" => float 1417227374.0857
        "stop_memory" => integer 2475584
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0857
        "start_memory" => integer 2476368
        "stop_time" => float 1417227374.0857
        "stop_memory" => integer 2476944
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0892
        "start_memory" => integer 3145592
        "stop_time" => float 1417227374.0892
        "stop_memory" => integer 3146120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0894
        "start_memory" => integer 3151800
        "stop_time" => float 1417227374.0894
        "stop_memory" => integer 3152368
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0898
        "start_memory" => integer 3185112
        "stop_time" => float 1417227374.0899
        "stop_memory" => integer 3185656
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.09
        "start_memory" => integer 3190296
        "stop_time" => float 1417227374.09
        "stop_memory" => integer 3190864
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0911
        "start_memory" => integer 3352496
        "stop_time" => float 1417227374.0912
        "stop_memory" => integer 3353072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0913
        "start_memory" => integer 3357952
        "stop_time" => float 1417227374.0913
        "stop_memory" => integer 3358536
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0915
        "start_memory" => integer 3361224
        "stop_time" => float 1417227374.0915
        "stop_memory" => integer 3361784
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0916
        "start_memory" => integer 3366656
        "stop_time" => float 1417227374.0917
        "stop_memory" => integer 3367240
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.092
        "start_memory" => integer 3416904
        "stop_time" => float 1417227374.092
        "stop_memory" => integer 3417448
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0921
        "start_memory" => integer 3422120
        "stop_time" => float 1417227374.0921
        "stop_memory" => integer 3422696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0928
        "start_memory" => integer 3520768
        "stop_time" => float 1417227374.0928
        "stop_memory" => integer 3521304
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.093
        "start_memory" => integer 3525944
        "stop_time" => float 1417227374.093
        "stop_memory" => integer 3526512
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.0945
        "start_memory" => integer 3611128
        "stop_time" => float 1417227374.0945
        "stop_memory" => integer 3611720
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1612
        "start_memory" => integer 3653864
        "stop_time" => float 1417227374.1613
        "stop_memory" => integer 3654432
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1614
        "start_memory" => integer 3659096
        "stop_time" => float 1417227374.1614
        "stop_memory" => integer 3659928
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1622
        "start_memory" => integer 3700528
        "stop_time" => float 1417227374.1623
        "stop_memory" => integer 3701080
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1623
        "start_memory" => integer 3705912
        "stop_time" => float 1417227374.1623
        "stop_memory" => integer 3706488
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1629
        "start_memory" => integer 3730192
        "stop_time" => float 1417227374.163
        "stop_memory" => integer 3730744
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1631
        "start_memory" => integer 3735424
        "stop_time" => float 1417227374.1631
        "stop_memory" => integer 3736000
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1638
        "start_memory" => integer 3803152
        "stop_time" => float 1417227374.1638
        "stop_memory" => integer 3803736
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.164
        "start_memory" => integer 3821744
        "stop_time" => float 1417227374.164
        "stop_memory" => integer 3822304
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1641
        "start_memory" => integer 3827168
        "stop_time" => float 1417227374.1641
        "stop_memory" => integer 3827752
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1649
        "start_memory" => integer 3892888
        "stop_time" => float 1417227374.1649
        "stop_memory" => integer 3893464
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1652
        "start_memory" => integer 3912888
        "stop_time" => float 1417227374.1652
        "stop_memory" => integer 3913464
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1657
        "start_memory" => integer 3961536
        "stop_time" => float 1417227374.1657
        "stop_memory" => integer 3962112
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.166
        "start_memory" => integer 3972776
        "stop_time" => float 1417227374.1661
        "stop_memory" => integer 3973352
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1663
        "start_memory" => integer 3991360
        "stop_time" => float 1417227374.1663
        "stop_memory" => integer 3991936
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1665
        "start_memory" => integer 4001632
        "stop_time" => float 1417227374.1666
        "stop_memory" => integer 4002208
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1669
        "start_memory" => integer 4022312
        "stop_time" => float 1417227374.1669
        "stop_memory" => integer 4022888
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1672
        "start_memory" => integer 4043392
        "stop_time" => float 1417227374.1672
        "stop_memory" => integer 4043984
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1675
        "start_memory" => integer 4057208
        "stop_time" => float 1417227374.1675
        "stop_memory" => integer 4057776
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1677
        "start_memory" => integer 4069984
        "stop_time" => float 1417227374.1677
        "stop_memory" => integer 4070560
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1681
        "start_memory" => integer 4118832
        "stop_time" => float 1417227374.1682
        "stop_memory" => integer 4119392
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1687
        "start_memory" => integer 4157864
        "stop_time" => float 1417227374.1688
        "stop_memory" => integer 4158448
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1691
        "start_memory" => integer 4177848
        "stop_time" => float 1417227374.1692
        "stop_memory" => integer 4178424
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1694
        "start_memory" => integer 4209584
        "stop_time" => float 1417227374.1695
        "stop_memory" => integer 4210160
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1697
        "start_memory" => integer 4228872
        "stop_time" => float 1417227374.1697
        "stop_memory" => integer 4229416
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1699
        "start_memory" => integer 4234088
        "stop_time" => float 1417227374.1699
        "stop_memory" => integer 4234664
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1702
        "start_memory" => integer 4265512
        "stop_time" => float 1417227374.1702
        "stop_memory" => integer 4266048
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1703
        "start_memory" => integer 4270712
        "stop_time" => float 1417227374.1703
        "stop_memory" => integer 4271280
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1731
        "start_memory" => integer 4412864
        "stop_time" => float 1417227374.1732
        "stop_memory" => integer 4413440
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1804
        "start_memory" => integer 4466256
        "stop_time" => float 1417227374.1804
        "stop_memory" => integer 4466808
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1805
        "start_memory" => integer 4471640
        "stop_time" => float 1417227374.1805
        "stop_memory" => integer 4472216
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1845
        "start_memory" => integer 4497696
        "stop_time" => float 1417227374.1846
        "stop_memory" => integer 4498280
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1847
        "start_memory" => integer 4503216
        "stop_time" => float 1417227374.1847
        "stop_memory" => integer 4503792
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1891
        "start_memory" => integer 4529448
        "stop_time" => float 1417227374.1891
        "stop_memory" => integer 4530008
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1892
        "start_memory" => integer 4534864
        "stop_time" => float 1417227374.1892
        "stop_memory" => integer 4535944
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1897
        "start_memory" => integer 4624672
        "stop_time" => float 1417227374.1899
        "stop_memory" => integer 4625272
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1943
        "start_memory" => integer 4632192
        "stop_time" => float 1417227374.1943
        "stop_memory" => integer 4632744
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.1944
        "start_memory" => integer 4637624
        "stop_time" => float 1417227374.1944
        "stop_memory" => integer 4638208
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2083
        "start_memory" => integer 4695120
        "stop_time" => float 1417227374.2084
        "stop_memory" => integer 4695680
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2085
        "start_memory" => integer 4700600
        "stop_time" => float 1417227374.2086
        "stop_memory" => integer 4701184
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2087
        "start_memory" => integer 4725040
        "stop_time" => float 1417227374.2088
        "stop_memory" => integer 4725616
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2095
        "start_memory" => integer 4734712
        "stop_time" => float 1417227374.2095
        "stop_memory" => integer 4735272
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2096
        "start_memory" => integer 4740136
        "stop_time" => float 1417227374.2096
        "stop_memory" => integer 4740720
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2108
        "start_memory" => integer 4820184
        "stop_time" => float 1417227374.2108
        "stop_memory" => integer 4820744
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2109
        "start_memory" => integer 4825624
        "stop_time" => float 1417227374.211
        "stop_memory" => integer 4826208
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2171
        "start_memory" => integer 4851904
        "stop_time" => float 1417227374.2172
        "stop_memory" => integer 4852464
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2174
        "start_memory" => integer 4857328
        "stop_time" => float 1417227374.2174
        "stop_memory" => integer 4857912
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2187
        "start_memory" => integer 4879296
        "stop_time" => float 1417227374.2189
        "stop_memory" => integer 4879824
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.219
        "start_memory" => integer 4884472
        "stop_time" => float 1417227374.219
        "stop_memory" => integer 4885040
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2214
        "start_memory" => integer 4895896
        "stop_time" => float 1417227374.2215
        "stop_memory" => integer 4896488
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2216
        "start_memory" => integer 4901376
        "stop_time" => float 1417227374.2217
        "stop_memory" => integer 4901952
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2275
        "start_memory" => integer 4946912
        "stop_time" => float 1417227374.2276
        "stop_memory" => integer 4947488
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2286
        "start_memory" => integer 4958624
        "stop_time" => float 1417227374.2287
        "stop_memory" => integer 4959168
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2288
        "start_memory" => integer 4964024
        "stop_time" => float 1417227374.2289
        "stop_memory" => integer 4964600
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2331
        "start_memory" => integer 4987096
        "stop_time" => float 1417227374.2331
        "stop_memory" => integer 4987680
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2354
        "start_memory" => integer 4993248
        "stop_time" => float 1417227374.2354
        "stop_memory" => integer 4993816
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2356
        "start_memory" => integer 4998664
        "stop_time" => float 1417227374.2356
        "stop_memory" => integer 4999248
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2384
        "start_memory" => integer 5132984
        "stop_time" => float 1417227374.2385
        "stop_memory" => integer 5133560
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2386
        "start_memory" => integer 5138512
        "stop_time" => float 1417227374.2387
        "stop_memory" => integer 5139104
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2393
        "start_memory" => integer 5153960
        "stop_time" => float 1417227374.2393
        "stop_memory" => integer 5154528
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2394
        "start_memory" => integer 5159488
        "stop_time" => float 1417227374.2394
        "stop_memory" => integer 5160080
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.241
        "start_memory" => integer 5166016
        "stop_time" => float 1417227374.241
        "stop_memory" => integer 5166568
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2411
        "start_memory" => integer 5171440
        "stop_time" => float 1417227374.2411
        "stop_memory" => integer 5172016
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2422
        "start_memory" => integer 5316624
        "stop_time" => float 1417227374.2423
        "stop_memory" => integer 5317200
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2423
        "start_memory" => integer 5322160
        "stop_time" => float 1417227374.2424
        "stop_memory" => integer 5322752
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2425
        "start_memory" => integer 5343432
        "stop_time" => float 1417227374.2426
        "stop_memory" => integer 5344000
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2426
        "start_memory" => integer 5348888
        "stop_time" => float 1417227374.2427
        "stop_memory" => integer 5349464
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2435
        "start_memory" => integer 5411784
        "stop_time" => float 1417227374.2435
        "stop_memory" => integer 5412344
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2436
        "start_memory" => integer 5417216
        "stop_time" => float 1417227374.2437
        "stop_memory" => integer 5417800
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2443
        "start_memory" => integer 5483304
        "stop_time" => float 1417227374.2444
        "stop_memory" => integer 5483864
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2445
        "start_memory" => integer 5488728
        "stop_time" => float 1417227374.2445
        "stop_memory" => integer 5489312
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2455
        "start_memory" => integer 5531968
        "stop_time" => float 1417227374.2456
        "stop_memory" => integer 5532544
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2458
        "start_memory" => integer 5537512
        "stop_time" => float 1417227374.2458
        "stop_memory" => integer 5538104
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.247
        "start_memory" => integer 5596944
        "stop_time" => float 1417227374.247
        "stop_memory" => integer 5597528
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2471
        "start_memory" => integer 5602592
        "stop_time" => float 1417227374.2472
        "stop_memory" => integer 5603192
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2473
        "start_memory" => integer 5622864
        "stop_time" => float 1417227374.2474
        "stop_memory" => integer 5623440
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2475
        "start_memory" => integer 5628504
        "stop_time" => float 1417227374.2475
        "stop_memory" => integer 5629104
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2485
        "start_memory" => integer 5693568
        "stop_time" => float 1417227374.2485
        "stop_memory" => integer 5694144
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2486
        "start_memory" => integer 5699208
        "stop_time" => float 1417227374.2486
        "stop_memory" => integer 5699808
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2496
        "start_memory" => integer 5748136
        "stop_time" => float 1417227374.2496
        "stop_memory" => integer 5748712
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2497
        "start_memory" => integer 5753768
        "stop_time" => float 1417227374.2497
        "stop_memory" => integer 5754368
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2506
        "start_memory" => integer 5795672
        "stop_time" => float 1417227374.2506
        "stop_memory" => integer 5796248
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2507
        "start_memory" => integer 5801312
        "stop_time" => float 1417227374.2507
        "stop_memory" => integer 5801912
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2521
        "start_memory" => integer 5914840
        "stop_time" => float 1417227374.2521
        "stop_memory" => integer 5915416
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2522
        "start_memory" => integer 5920480
        "stop_time" => float 1417227374.2523
        "stop_memory" => integer 5921080
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2541
        "start_memory" => integer 5969736
        "stop_time" => float 1417227374.2541
        "stop_memory" => integer 5970296
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2542
        "start_memory" => integer 5975264
        "stop_time" => float 1417227374.2542
        "stop_memory" => integer 5975856
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.255
        "start_memory" => integer 5998976
        "stop_time" => float 1417227374.255
        "stop_memory" => integer 5999496
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2551
        "start_memory" => integer 6004136
        "stop_time" => float 1417227374.2552
        "stop_memory" => integer 6004704
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2562
        "start_memory" => integer 6119360
        "stop_time" => float 1417227374.2563
        "stop_memory" => integer 6119920
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2564
        "start_memory" => integer 6124592
        "stop_time" => float 1417227374.2564
        "stop_memory" => integer 6125184
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2604
        "start_memory" => integer 6145504
        "stop_time" => float 1417227374.2605
        "stop_memory" => integer 6146040
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2606
        "start_memory" => integer 6150688
        "stop_time" => float 1417227374.2606
        "stop_memory" => integer 6151256
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2635
        "start_memory" => integer 6187936
        "stop_time" => float 1417227374.2635
        "stop_memory" => integer 6188480
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2636
        "start_memory" => integer 6193120
        "stop_time" => float 1417227374.2636
        "stop_memory" => integer 6193688
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2644
        "start_memory" => integer 6236120
        "stop_time" => float 1417227374.2644
        "stop_memory" => integer 6236664
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2645
        "start_memory" => integer 6241304
        "stop_time" => float 1417227374.2645
        "stop_memory" => integer 6241872
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2653
        "start_memory" => integer 6286080
        "stop_time" => float 1417227374.2654
        "stop_memory" => integer 6286624
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2654
        "start_memory" => integer 6291264
        "stop_time" => float 1417227374.2655
        "stop_memory" => integer 6292856
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.267
        "start_memory" => integer 6368392
        "stop_time" => float 1417227374.2671
        "stop_memory" => integer 6368936
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2671
        "start_memory" => integer 6373592
        "stop_time" => float 1417227374.2672
        "stop_memory" => integer 6374160
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2697
        "start_memory" => integer 6396368
        "stop_time" => float 1417227374.2697
        "stop_memory" => integer 6396912
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2699
        "start_memory" => integer 6401552
        "stop_time" => float 1417227374.2699
        "stop_memory" => integer 6402144
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2714
        "start_memory" => integer 6431328
        "stop_time" => float 1417227374.2714
        "stop_memory" => integer 6431888
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2715
        "start_memory" => integer 6436736
        "stop_time" => float 1417227374.2716
        "stop_memory" => integer 6437312
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2724
        "start_memory" => integer 6457616
        "stop_time" => float 1417227374.2724
        "stop_memory" => integer 6458184
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2725
        "start_memory" => integer 6463120
        "stop_time" => float 1417227374.2726
        "stop_memory" => integer 6463704
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2732
        "start_memory" => integer 6478744
        "stop_time" => float 1417227374.2733
        "stop_memory" => integer 6479304
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2734
        "start_memory" => integer 6484240
        "stop_time" => float 1417227374.2734
        "stop_memory" => integer 6484824
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.274
        "start_memory" => integer 6499864
        "stop_time" => float 1417227374.2741
        "stop_memory" => integer 6500424
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2741
        "start_memory" => integer 6505360
        "stop_time" => float 1417227374.2742
        "stop_memory" => integer 6505944
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2748
        "start_memory" => integer 6520992
        "stop_time" => float 1417227374.2748
        "stop_memory" => integer 6521552
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2749
        "start_memory" => integer 6526488
        "stop_time" => float 1417227374.275
        "stop_memory" => integer 6527072
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2756
        "start_memory" => integer 6542096
        "stop_time" => float 1417227374.2756
        "stop_memory" => integer 6542656
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2757
        "start_memory" => integer 6547592
        "stop_time" => float 1417227374.2757
        "stop_memory" => integer 6548176
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2764
        "start_memory" => integer 6563200
        "stop_time" => float 1417227374.2764
        "stop_memory" => integer 6563760
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2765
        "start_memory" => integer 6568696
        "stop_time" => float 1417227374.2765
        "stop_memory" => integer 6569280
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2772
        "start_memory" => integer 6584336
        "stop_time" => float 1417227374.2772
        "stop_memory" => integer 6584896
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2773
        "start_memory" => integer 6589832
        "stop_time" => float 1417227374.2774
        "stop_memory" => integer 6590416
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.278
        "start_memory" => integer 6605440
        "stop_time" => float 1417227374.278
        "stop_memory" => integer 6606000
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2781
        "start_memory" => integer 6610936
        "stop_time" => float 1417227374.2782
        "stop_memory" => integer 6611520
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2788
        "start_memory" => integer 6626656
        "stop_time" => float 1417227374.2789
        "stop_memory" => integer 6627216
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.279
        "start_memory" => integer 6632152
        "stop_time" => float 1417227374.279
        "stop_memory" => integer 6632736
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2797
        "start_memory" => integer 6647768
        "stop_time" => float 1417227374.2797
        "stop_memory" => integer 6648328
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2798
        "start_memory" => integer 6653264
        "stop_time" => float 1417227374.2799
        "stop_memory" => integer 6653848
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2805
        "start_memory" => integer 6668888
        "stop_time" => float 1417227374.2806
        "stop_memory" => integer 6669448
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2806
        "start_memory" => integer 6674384
        "stop_time" => float 1417227374.2807
        "stop_memory" => integer 6674968
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2813
        "start_memory" => integer 6689976
        "stop_time" => float 1417227374.2814
        "stop_memory" => integer 6690536
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2815
        "start_memory" => integer 6695472
        "stop_time" => float 1417227374.2815
        "stop_memory" => integer 6696056
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2822
        "start_memory" => integer 6711080
        "stop_time" => float 1417227374.2823
        "stop_memory" => integer 6711640
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2824
        "start_memory" => integer 6716576
        "stop_time" => float 1417227374.2824
        "stop_memory" => integer 6717160
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2832
        "start_memory" => integer 6732200
        "stop_time" => float 1417227374.2832
        "stop_memory" => integer 6732760
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2833
        "start_memory" => integer 6737696
        "stop_time" => float 1417227374.2834
        "stop_memory" => integer 6738280
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.284
        "start_memory" => integer 6753336
        "stop_time" => float 1417227374.2841
        "stop_memory" => integer 6753896
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2841
        "start_memory" => integer 6758832
        "stop_time" => float 1417227374.2842
        "stop_memory" => integer 6759416
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2848
        "start_memory" => integer 6774472
        "stop_time" => float 1417227374.2849
        "stop_memory" => integer 6775032
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2849
        "start_memory" => integer 6779968
        "stop_time" => float 1417227374.285
        "stop_memory" => integer 6780552
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2856
        "start_memory" => integer 6795728
        "stop_time" => float 1417227374.2857
        "stop_memory" => integer 6796288
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2858
        "start_memory" => integer 6801224
        "stop_time" => float 1417227374.2858
        "stop_memory" => integer 6801808
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2864
        "start_memory" => integer 6816864
        "stop_time" => float 1417227374.2865
        "stop_memory" => integer 6817424
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2865
        "start_memory" => integer 6822360
        "stop_time" => float 1417227374.2866
        "stop_memory" => integer 6822944
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2872
        "start_memory" => integer 6838000
        "stop_time" => float 1417227374.2872
        "stop_memory" => integer 6838560
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2873
        "start_memory" => integer 6843496
        "stop_time" => float 1417227374.2873
        "stop_memory" => integer 6844080
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2879
        "start_memory" => integer 6859128
        "stop_time" => float 1417227374.2879
        "stop_memory" => integer 6859688
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.288
        "start_memory" => integer 6864624
        "stop_time" => float 1417227374.2881
        "stop_memory" => integer 6865208
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2886
        "start_memory" => integer 6880232
        "stop_time" => float 1417227374.2886
        "stop_memory" => integer 6880792
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2887
        "start_memory" => integer 6885728
        "stop_time" => float 1417227374.2888
        "stop_memory" => integer 6886312
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2893
        "start_memory" => integer 6901336
        "stop_time" => float 1417227374.2894
        "stop_memory" => integer 6901896
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2895
        "start_memory" => integer 6906832
        "stop_time" => float 1417227374.2895
        "stop_memory" => integer 6907416
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.29
        "start_memory" => integer 6922472
        "stop_time" => float 1417227374.2901
        "stop_memory" => integer 6923032
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2902
        "start_memory" => integer 6927968
        "stop_time" => float 1417227374.2902
        "stop_memory" => integer 6928552
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2908
        "start_memory" => integer 6943592
        "stop_time" => float 1417227374.2908
        "stop_memory" => integer 6944152
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2909
        "start_memory" => integer 6949088
        "stop_time" => float 1417227374.291
        "stop_memory" => integer 6949672
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2928
        "start_memory" => integer 6964936
        "stop_time" => float 1417227374.2929
        "stop_memory" => integer 6965496
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2931
        "start_memory" => integer 6970408
        "stop_time" => float 1417227374.2931
        "stop_memory" => integer 6970976
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2957
        "start_memory" => integer 7009032
        "stop_time" => float 1417227374.2958
        "stop_memory" => integer 7009584
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2959
        "start_memory" => integer 7014256
        "stop_time" => float 1417227374.296
        "stop_memory" => integer 7014832
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2972
        "start_memory" => integer 7145896
        "stop_time" => float 1417227374.2973
        "stop_memory" => integer 7146448
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2974
        "start_memory" => integer 7151128
        "stop_time" => float 1417227374.2974
        "stop_memory" => integer 7151704
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2991
        "start_memory" => integer 7320904
        "stop_time" => float 1417227374.2992
        "stop_memory" => integer 7321456
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.2993
        "start_memory" => integer 7326144
        "stop_time" => float 1417227374.2994
        "stop_memory" => integer 7326704
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3015
        "start_memory" => integer 7382368
        "stop_time" => float 1417227374.3016
        "stop_memory" => integer 7382944
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3017
        "start_memory" => integer 7387856
        "stop_time" => float 1417227374.3017
        "stop_memory" => integer 7388424
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3024
        "start_memory" => integer 7428456
        "stop_time" => float 1417227374.3025
        "stop_memory" => integer 7429032
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3026
        "start_memory" => integer 7433984
        "stop_time" => float 1417227374.3026
        "stop_memory" => integer 7434576
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3039
        "start_memory" => integer 7460520
        "stop_time" => float 1417227374.304
        "stop_memory" => integer 7461088
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3042
        "start_memory" => integer 7465960
        "stop_time" => float 1417227374.3043
        "stop_memory" => integer 7466536
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3066
        "start_memory" => integer 7492592
        "stop_time" => float 1417227374.3067
        "stop_memory" => integer 7493168
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3102
        "start_memory" => integer 7504072
        "stop_time" => float 1417227374.3103
        "stop_memory" => integer 7504632
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3106
        "start_memory" => integer 7514520
        "stop_time" => float 1417227374.3107
        "stop_memory" => integer 7515088
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3119
        "start_memory" => integer 7525688
        "stop_time" => float 1417227374.312
        "stop_memory" => integer 7526240
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3121
        "start_memory" => integer 7530952
        "stop_time" => float 1417227374.3122
        "stop_memory" => integer 7531552
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3127
        "start_memory" => integer 7537016
        "stop_time" => float 1417227374.3127
        "stop_memory" => integer 7537568
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3128
        "start_memory" => integer 7542296
        "stop_time" => float 1417227374.3129
        "stop_memory" => integer 7542872
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3134
        "start_memory" => integer 7548320
        "stop_time" => float 1417227374.3134
        "stop_memory" => integer 7548872
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3135
        "start_memory" => integer 7553624
        "stop_time" => float 1417227374.3136
        "stop_memory" => integer 7554200
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3146
        "start_memory" => integer 7566208
        "stop_time" => float 1417227374.3146
        "stop_memory" => integer 7566744
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3147
        "start_memory" => integer 7571408
        "stop_time" => float 1417227374.3148
        "stop_memory" => integer 7571976
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3153
        "start_memory" => integer 7575024
        "stop_time" => float 1417227374.3153
        "stop_memory" => integer 7575600
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3154
        "start_memory" => integer 7584872
        "stop_time" => float 1417227374.3155
        "stop_memory" => integer 7585408
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3155
        "start_memory" => integer 7590056
        "stop_time" => float 1417227374.3156
        "stop_memory" => integer 7590624
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.318
        "start_memory" => integer 7965960
        "stop_time" => float 1417227374.3181
        "stop_memory" => integer 7966536
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.319
        "start_memory" => integer 8045128
        "stop_time" => float 1417227374.3191
        "stop_memory" => integer 8045712
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3198
        "start_memory" => integer 8090944
        "stop_time" => float 1417227374.3199
        "stop_memory" => integer 8091504
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.32
        "start_memory" => integer 8096368
        "stop_time" => float 1417227374.3201
        "stop_memory" => integer 8096952
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3206
        "start_memory" => integer 8105912
        "stop_time" => float 1417227374.3207
        "stop_memory" => integer 8106456
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3211
        "start_memory" => integer 8137920
        "stop_time" => float 1417227374.3212
        "stop_memory" => integer 8138480
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3217
        "start_memory" => integer 8172888
        "stop_time" => float 1417227374.3219
        "stop_memory" => integer 8173464
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3226
        "start_memory" => integer 8205576
        "stop_time" => float 1417227374.3227
        "stop_memory" => integer 8206112
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3228
        "start_memory" => integer 8210768
        "stop_time" => float 1417227374.3229
        "stop_memory" => integer 8211336
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3254
        "start_memory" => integer 8253144
        "stop_time" => float 1417227374.3254
        "stop_memory" => integer 8253736
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3256
        "start_memory" => integer 8258920
        "stop_time" => float 1417227374.3256
        "stop_memory" => integer 8259512
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3286
        "start_memory" => integer 8303616
        "stop_time" => float 1417227374.3287
        "stop_memory" => integer 8304168
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3289
        "start_memory" => integer 8309104
        "stop_time" => float 1417227374.3289
        "stop_memory" => integer 8309688
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3342
        "start_memory" => integer 8411376
        "stop_time" => float 1417227374.3343
        "stop_memory" => integer 8411904
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3345
        "start_memory" => integer 8416560
        "stop_time" => float 1417227374.3345
        "stop_memory" => integer 8417128
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3356
        "start_memory" => integer 8432056
        "stop_time" => float 1417227374.3357
        "stop_memory" => integer 8432608
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3358
        "start_memory" => integer 8437256
        "stop_time" => float 1417227374.3358
        "stop_memory" => integer 8437824
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.337
        "start_memory" => integer 8504256
        "stop_time" => float 1417227374.3371
        "stop_memory" => integer 8504816
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3372
        "start_memory" => integer 8509672
        "stop_time" => float 1417227374.3372
        "stop_memory" => integer 8510248
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3377
        "start_memory" => integer 8533688
        "stop_time" => float 1417227374.3378
        "stop_memory" => integer 8534296
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3379
        "start_memory" => integer 8539216
        "stop_time" => float 1417227374.3379
        "stop_memory" => integer 8539808
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3391
        "start_memory" => integer 8610800
        "stop_time" => float 1417227374.3392
        "stop_memory" => integer 8611336
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3393
        "start_memory" => integer 8616208
        "stop_time" => float 1417227374.3393
        "stop_memory" => integer 8616760
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3399
        "start_memory" => integer 8644464
        "stop_time" => float 1417227374.3399
        "stop_memory" => integer 8645000
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.34
        "start_memory" => integer 8649656
        "stop_time" => float 1417227374.34
        "stop_memory" => integer 8650224
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3411
        "start_memory" => integer 8771448
        "stop_time" => float 1417227374.3412
        "stop_memory" => integer 8771992
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3412
        "start_memory" => integer 8776664
        "stop_time" => float 1417227374.3413
        "stop_memory" => integer 8777232
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3473
        "start_memory" => integer 8808616
        "stop_time" => float 1417227374.3474
        "stop_memory" => integer 8809160
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3476
        "start_memory" => integer 8813808
        "stop_time" => float 1417227374.3476
        "stop_memory" => integer 8814376
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3486
        "start_memory" => integer 8914688
        "stop_time" => float 1417227374.3486
        "stop_memory" => integer 8915248
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3487
        "start_memory" => integer 8919960
        "stop_time" => float 1417227374.3488
        "stop_memory" => integer 8920536
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.35
        "start_memory" => integer 9028280
        "stop_time" => float 1417227374.35
        "stop_memory" => integer 9028848
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3501
        "start_memory" => integer 9033768
        "stop_time" => float 1417227374.3502
        "stop_memory" => integer 9034352
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3511
        "start_memory" => integer 9055536
        "stop_time" => float 1417227374.3511
        "stop_memory" => integer 9056112
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3515
        "start_memory" => integer 9020592
        "stop_time" => float 1417227374.3515
        "stop_memory" => integer 9022528
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3522
        "start_memory" => integer 9093248
        "stop_time" => float 1417227374.3523
        "stop_memory" => integer 9094976
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417227374.3523
        "start_memory" => integer 9094736
        "stop_time" => float 1417227374.3524
        "stop_memory" => integer 9096464
    )
)

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