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-2010 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(242) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1495728263.4785
        "start_memory" => integer 900632
        "stop_time" => float 1495728263.7256
        "stop_memory" => integer 5454840
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4786
        "start_memory" => integer 902936
        "stop_time" => float 1495728263.4786
        "stop_memory" => integer 903624
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4792
        "start_memory" => integer 980336
        "stop_time" => float 1495728263.4793
        "stop_memory" => integer 980896
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4793
        "start_memory" => integer 984912
        "stop_time" => float 1495728263.4794
        "stop_memory" => integer 985504
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4795
        "start_memory" => integer 993136
        "stop_time" => float 1495728263.4796
        "stop_memory" => integer 993688
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4796
        "start_memory" => integer 997328
        "stop_time" => float 1495728263.4797
        "stop_memory" => integer 997912
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4798
        "start_memory" => integer 1001120
        "stop_time" => float 1495728263.4799
        "stop_memory" => integer 1001712
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4825
        "start_memory" => integer 1322208
        "stop_time" => float 1495728263.4825
        "stop_memory" => integer 1322744
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4826
        "start_memory" => integer 1326168
        "stop_time" => float 1495728263.4827
        "stop_memory" => integer 1326808
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4829
        "start_memory" => integer 1345576
        "stop_time" => float 1495728263.483
        "stop_memory" => integer 1346160
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.483
        "start_memory" => integer 1349576
        "stop_time" => float 1495728263.4831
        "stop_memory" => integer 1350152
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4837
        "start_memory" => integer 1449512
        "stop_time" => float 1495728263.4837
        "stop_memory" => integer 1450112
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4838
        "start_memory" => integer 1453616
        "stop_time" => float 1495728263.4839
        "stop_memory" => integer 1454216
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4843
        "start_memory" => integer 1567088
        "stop_time" => float 1495728263.4843
        "stop_memory" => integer 1567632
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4848
        "start_memory" => integer 1571056
        "stop_time" => float 1495728263.4849
        "stop_memory" => integer 1571624
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4851
        "start_memory" => integer 1605680
        "stop_time" => float 1495728263.4852
        "stop_memory" => integer 1606280
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4852
        "start_memory" => integer 1608816
        "stop_time" => float 1495728263.4853
        "stop_memory" => integer 1609528
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4854
        "start_memory" => integer 1613032
        "stop_time" => float 1495728263.4854
        "stop_memory" => integer 1613632
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4855
        "start_memory" => integer 1615328
        "stop_time" => float 1495728263.4856
        "stop_memory" => integer 1615928
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4856
        "start_memory" => integer 1619448
        "stop_time" => float 1495728263.4857
        "stop_memory" => integer 1620024
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.486
        "start_memory" => integer 1649472
        "stop_time" => float 1495728263.486
        "stop_memory" => integer 1650032
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4861
        "start_memory" => integer 1653528
        "stop_time" => float 1495728263.4861
        "stop_memory" => integer 1654120
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4866
        "start_memory" => integer 1715320
        "stop_time" => float 1495728263.4867
        "stop_memory" => integer 1715872
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4867
        "start_memory" => integer 1719320
        "stop_time" => float 1495728263.4868
        "stop_memory" => integer 1719888
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.4877
        "start_memory" => integer 1777680
        "stop_time" => float 1495728263.4878
        "stop_memory" => integer 1778296
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5755
        "start_memory" => integer 1816240
        "stop_time" => float 1495728263.5755
        "stop_memory" => integer 1816808
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5756
        "start_memory" => integer 1820232
        "stop_time" => float 1495728263.5756
        "stop_memory" => integer 1820816
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5763
        "start_memory" => integer 1854880
        "stop_time" => float 1495728263.5763
        "stop_memory" => integer 1855456
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5764
        "start_memory" => integer 1858936
        "stop_time" => float 1495728263.5764
        "stop_memory" => integer 1859528
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5769
        "start_memory" => integer 1878144
        "stop_time" => float 1495728263.5769
        "stop_memory" => integer 1878712
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.577
        "start_memory" => integer 1882176
        "stop_time" => float 1495728263.577
        "stop_memory" => integer 1882768
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5777
        "start_memory" => integer 1930080
        "stop_time" => float 1495728263.5777
        "stop_memory" => integer 1930680
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5778
        "start_memory" => integer 1942216
        "stop_time" => float 1495728263.5779
        "stop_memory" => integer 1943048
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5779
        "start_memory" => integer 1946568
        "stop_time" => float 1495728263.5779
        "stop_memory" => integer 1947152
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5783
        "start_memory" => integer 1985184
        "stop_time" => float 1495728263.5784
        "stop_memory" => integer 1985784
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5786
        "start_memory" => integer 1997856
        "stop_time" => float 1495728263.5786
        "stop_memory" => integer 1998432
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5789
        "start_memory" => integer 2025432
        "stop_time" => float 1495728263.579
        "stop_memory" => integer 2026032
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5792
        "start_memory" => integer 2034840
        "stop_time" => float 1495728263.5792
        "stop_memory" => integer 2035416
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5794
        "start_memory" => integer 2048568
        "stop_time" => float 1495728263.5794
        "stop_memory" => integer 2049168
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5796
        "start_memory" => integer 2056184
        "stop_time" => float 1495728263.5796
        "stop_memory" => integer 2056776
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5798
        "start_memory" => integer 2070080
        "stop_time" => float 1495728263.5799
        "stop_memory" => integer 2070672
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5801
        "start_memory" => integer 2084304
        "stop_time" => float 1495728263.5801
        "stop_memory" => integer 2084896
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5803
        "start_memory" => integer 2094376
        "stop_time" => float 1495728263.5803
        "stop_memory" => integer 2094968
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5805
        "start_memory" => integer 2103640
        "stop_time" => float 1495728263.5805
        "stop_memory" => integer 2104232
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5807
        "start_memory" => integer 2149568
        "stop_time" => float 1495728263.5808
        "stop_memory" => integer 2150144
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5811
        "start_memory" => integer 2173072
        "stop_time" => float 1495728263.5811
        "stop_memory" => integer 2173672
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5813
        "start_memory" => integer 2186968
        "stop_time" => float 1495728263.5813
        "stop_memory" => integer 2187544
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5815
        "start_memory" => integer 2206744
        "stop_time" => float 1495728263.5816
        "stop_memory" => integer 2207328
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5818
        "start_memory" => integer 2220984
        "stop_time" => float 1495728263.5818
        "stop_memory" => integer 2221552
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5819
        "start_memory" => integer 2225008
        "stop_time" => float 1495728263.5819
        "stop_memory" => integer 2225584
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5888
        "start_memory" => integer 2316080
        "stop_time" => float 1495728263.5889
        "stop_memory" => integer 2316656
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5889
        "start_memory" => integer 2320160
        "stop_time" => float 1495728263.589
        "stop_memory" => integer 2320752
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.592
        "start_memory" => integer 2339840
        "stop_time" => float 1495728263.592
        "stop_memory" => integer 2340424
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5921
        "start_memory" => integer 2343960
        "stop_time" => float 1495728263.5921
        "stop_memory" => integer 2344560
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5952
        "start_memory" => integer 2363744
        "stop_time" => float 1495728263.5953
        "stop_memory" => integer 2364304
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5953
        "start_memory" => integer 2367784
        "stop_time" => float 1495728263.5954
        "stop_memory" => integer 2368376
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5958
        "start_memory" => integer 2422008
        "stop_time" => float 1495728263.5958
        "stop_memory" => integer 2422608
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5992
        "start_memory" => integer 2429936
        "stop_time" => float 1495728263.5992
        "stop_memory" => integer 2430512
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.5993
        "start_memory" => integer 2434040
        "stop_time" => float 1495728263.5993
        "stop_memory" => integer 2434640
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6095
        "start_memory" => integer 2474296
        "stop_time" => float 1495728263.6095
        "stop_memory" => integer 2474872
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6096
        "start_memory" => integer 2478400
        "stop_time" => float 1495728263.6096
        "stop_memory" => integer 2479000
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6098
        "start_memory" => integer 2494616
        "stop_time" => float 1495728263.6098
        "stop_memory" => integer 2495192
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6103
        "start_memory" => integer 2502504
        "stop_time" => float 1495728263.6103
        "stop_memory" => integer 2503072
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6104
        "start_memory" => integer 2506544
        "stop_time" => float 1495728263.6104
        "stop_memory" => integer 2507136
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6111
        "start_memory" => integer 2556608
        "stop_time" => float 1495728263.6112
        "stop_memory" => integer 2557704
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6112
        "start_memory" => integer 2561208
        "stop_time" => float 1495728263.6113
        "stop_memory" => integer 2561808
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6151
        "start_memory" => integer 2581192
        "stop_time" => float 1495728263.6151
        "stop_memory" => integer 2581752
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6152
        "start_memory" => integer 2585224
        "stop_time" => float 1495728263.6152
        "stop_memory" => integer 2585816
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6157
        "start_memory" => integer 2600976
        "stop_time" => float 1495728263.6158
        "stop_memory" => integer 2601512
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6159
        "start_memory" => integer 2604920
        "stop_time" => float 1495728263.6159
        "stop_memory" => integer 2605496
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6176
        "start_memory" => integer 2612216
        "stop_time" => float 1495728263.6177
        "stop_memory" => integer 2612832
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6181
        "start_memory" => integer 2620296
        "stop_time" => float 1495728263.6181
        "stop_memory" => integer 2620888
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6184
        "start_memory" => integer 2645512
        "stop_time" => float 1495728263.6184
        "stop_memory" => integer 2646016
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6196
        "start_memory" => integer 2647296
        "stop_time" => float 1495728263.6197
        "stop_memory" => integer 2647888
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6211
        "start_memory" => integer 2666672
        "stop_time" => float 1495728263.6211
        "stop_memory" => integer 2667232
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6212
        "start_memory" => integer 2670728
        "stop_time" => float 1495728263.6213
        "stop_memory" => integer 2671320
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6237
        "start_memory" => integer 2682736
        "stop_time" => float 1495728263.6237
        "stop_memory" => integer 2683320
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6248
        "start_memory" => integer 2687344
        "stop_time" => float 1495728263.6248
        "stop_memory" => integer 2687896
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6249
        "start_memory" => integer 2691328
        "stop_time" => float 1495728263.625
        "stop_memory" => integer 2691912
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6254
        "start_memory" => integer 2709312
        "stop_time" => float 1495728263.6254
        "stop_memory" => integer 2709888
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6255
        "start_memory" => integer 2713352
        "stop_time" => float 1495728263.6256
        "stop_memory" => integer 2713944
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6272
        "start_memory" => integer 2800176
        "stop_time" => float 1495728263.6272
        "stop_memory" => integer 2800776
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6273
        "start_memory" => integer 2804328
        "stop_time" => float 1495728263.6273
        "stop_memory" => integer 2804920
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6274
        "start_memory" => integer 2808648
        "stop_time" => float 1495728263.6275
        "stop_memory" => integer 2809208
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6278
        "start_memory" => integer 2826056
        "stop_time" => float 1495728263.6279
        "stop_memory" => integer 2826664
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.628
        "start_memory" => integer 2830216
        "stop_time" => float 1495728263.628
        "stop_memory" => integer 2830824
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.629
        "start_memory" => integer 2835856
        "stop_time" => float 1495728263.6291
        "stop_memory" => integer 2836424
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6292
        "start_memory" => integer 2839928
        "stop_time" => float 1495728263.6292
        "stop_memory" => integer 2840528
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6301
        "start_memory" => integer 2927944
        "stop_time" => float 1495728263.6301
        "stop_memory" => integer 2928536
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6302
        "start_memory" => integer 2932088
        "stop_time" => float 1495728263.6302
        "stop_memory" => integer 2932696
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6304
        "start_memory" => integer 2944728
        "stop_time" => float 1495728263.6304
        "stop_memory" => integer 2945296
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6305
        "start_memory" => integer 2948816
        "stop_time" => float 1495728263.6305
        "stop_memory" => integer 2949440
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6313
        "start_memory" => integer 2992840
        "stop_time" => float 1495728263.6313
        "stop_memory" => integer 2993416
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6314
        "start_memory" => integer 2996936
        "stop_time" => float 1495728263.6314
        "stop_memory" => integer 2997536
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.632
        "start_memory" => integer 3037024
        "stop_time" => float 1495728263.6321
        "stop_memory" => integer 3037600
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6321
        "start_memory" => integer 3041104
        "stop_time" => float 1495728263.6322
        "stop_memory" => integer 3041704
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6329
        "start_memory" => integer 3068888
        "stop_time" => float 1495728263.6329
        "stop_memory" => integer 3069480
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.633
        "start_memory" => integer 3073040
        "stop_time" => float 1495728263.6331
        "stop_memory" => integer 3073648
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6338
        "start_memory" => integer 3104896
        "stop_time" => float 1495728263.6338
        "stop_memory" => integer 3105496
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6339
        "start_memory" => integer 3109104
        "stop_time" => float 1495728263.6339
        "stop_memory" => integer 3109720
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6341
        "start_memory" => integer 3122896
        "stop_time" => float 1495728263.6341
        "stop_memory" => integer 3123488
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6342
        "start_memory" => integer 3128128
        "stop_time" => float 1495728263.6342
        "stop_memory" => integer 3128744
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6349
        "start_memory" => integer 3179328
        "stop_time" => float 1495728263.635
        "stop_memory" => integer 3179920
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6351
        "start_memory" => integer 3183528
        "stop_time" => float 1495728263.6351
        "stop_memory" => integer 3184144
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6358
        "start_memory" => integer 3216032
        "stop_time" => float 1495728263.6358
        "stop_memory" => integer 3216624
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6359
        "start_memory" => integer 3220224
        "stop_time" => float 1495728263.636
        "stop_memory" => integer 3220840
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6366
        "start_memory" => integer 3244152
        "stop_time" => float 1495728263.6366
        "stop_memory" => integer 3244744
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6367
        "start_memory" => integer 3248352
        "stop_time" => float 1495728263.6368
        "stop_memory" => integer 3248968
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6376
        "start_memory" => integer 3316808
        "stop_time" => float 1495728263.6376
        "stop_memory" => integer 3317400
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6377
        "start_memory" => integer 3321008
        "stop_time" => float 1495728263.6378
        "stop_memory" => integer 3321624
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6393
        "start_memory" => integer 3357400
        "stop_time" => float 1495728263.6393
        "stop_memory" => integer 3357976
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6394
        "start_memory" => integer 3361536
        "stop_time" => float 1495728263.6395
        "stop_memory" => integer 3362144
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6401
        "start_memory" => integer 3380472
        "stop_time" => float 1495728263.6402
        "stop_memory" => integer 3381008
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6402
        "start_memory" => integer 3384432
        "stop_time" => float 1495728263.6403
        "stop_memory" => integer 3385000
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6411
        "start_memory" => integer 3450824
        "stop_time" => float 1495728263.6412
        "stop_memory" => integer 3451408
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6412
        "start_memory" => integer 3454864
        "stop_time" => float 1495728263.6413
        "stop_memory" => integer 3455440
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6448
        "start_memory" => integer 3469072
        "stop_time" => float 1495728263.6449
        "stop_memory" => integer 3469632
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.645
        "start_memory" => integer 3473064
        "stop_time" => float 1495728263.645
        "stop_memory" => integer 3473648
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.647
        "start_memory" => integer 3495464
        "stop_time" => float 1495728263.6471
        "stop_memory" => integer 3496024
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6471
        "start_memory" => integer 3499448
        "stop_time" => float 1495728263.6472
        "stop_memory" => integer 3500016
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6478
        "start_memory" => integer 3523096
        "stop_time" => float 1495728263.6478
        "stop_memory" => integer 3523664
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6479
        "start_memory" => integer 3527088
        "stop_time" => float 1495728263.648
        "stop_memory" => integer 3527656
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6484
        "start_memory" => integer 3545104
        "stop_time" => float 1495728263.6485
        "stop_memory" => integer 3545672
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6486
        "start_memory" => integer 3549096
        "stop_time" => float 1495728263.6486
        "stop_memory" => integer 3549664
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6496
        "start_memory" => integer 3596256
        "stop_time" => float 1495728263.6496
        "stop_memory" => integer 3596824
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6497
        "start_memory" => integer 3600264
        "stop_time" => float 1495728263.6498
        "stop_memory" => integer 3600848
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6513
        "start_memory" => integer 3615360
        "stop_time" => float 1495728263.6513
        "stop_memory" => integer 3615920
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6514
        "start_memory" => integer 3619368
        "stop_time" => float 1495728263.6515
        "stop_memory" => integer 3619936
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6528
        "start_memory" => integer 3632912
        "stop_time" => float 1495728263.6528
        "stop_memory" => integer 3634520
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6529
        "start_memory" => integer 3638000
        "stop_time" => float 1495728263.6529
        "stop_memory" => integer 3638576
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6539
        "start_memory" => integer 3717480
        "stop_time" => float 1495728263.6539
        "stop_memory" => integer 3718056
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.654
        "start_memory" => integer 3721520
        "stop_time" => float 1495728263.654
        "stop_memory" => integer 3722112
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6552
        "start_memory" => integer 3821096
        "stop_time" => float 1495728263.6552
        "stop_memory" => integer 3821648
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6553
        "start_memory" => integer 3825104
        "stop_time" => float 1495728263.6554
        "stop_memory" => integer 3825688
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6577
        "start_memory" => integer 3858560
        "stop_time" => float 1495728263.6578
        "stop_memory" => integer 3859152
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6579
        "start_memory" => integer 3862648
        "stop_time" => float 1495728263.658
        "stop_memory" => integer 3863248
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6589
        "start_memory" => integer 3888800
        "stop_time" => float 1495728263.659
        "stop_memory" => integer 3889392
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6591
        "start_memory" => integer 3892968
        "stop_time" => float 1495728263.6592
        "stop_memory" => integer 3893576
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6607
        "start_memory" => integer 3912280
        "stop_time" => float 1495728263.6608
        "stop_memory" => integer 3912848
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6609
        "start_memory" => integer 3916376
        "stop_time" => float 1495728263.661
        "stop_memory" => integer 3916976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6633
        "start_memory" => integer 3935696
        "stop_time" => float 1495728263.6634
        "stop_memory" => integer 3936288
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6659
        "start_memory" => integer 3944712
        "stop_time" => float 1495728263.666
        "stop_memory" => integer 3945304
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6721
        "start_memory" => integer 3971672
        "stop_time" => float 1495728263.6722
        "stop_memory" => integer 3972232
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6724
        "start_memory" => integer 3977896
        "stop_time" => float 1495728263.6725
        "stop_memory" => integer 3978400
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6742
        "start_memory" => integer 3978752
        "stop_time" => float 1495728263.6743
        "stop_memory" => integer 3979328
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6761
        "start_memory" => integer 3983680
        "stop_time" => float 1495728263.6762
        "stop_memory" => integer 3984256
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6775
        "start_memory" => integer 3992744
        "stop_time" => float 1495728263.6776
        "stop_memory" => integer 3993352
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6782
        "start_memory" => integer 4001040
        "stop_time" => float 1495728263.6782
        "stop_memory" => integer 4001616
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6787
        "start_memory" => integer 4004008
        "stop_time" => float 1495728263.6788
        "stop_memory" => integer 4004592
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.679
        "start_memory" => integer 4011880
        "stop_time" => float 1495728263.679
        "stop_memory" => integer 4012464
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6792
        "start_memory" => integer 4019728
        "stop_time" => float 1495728263.6793
        "stop_memory" => integer 4020280
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6794
        "start_memory" => integer 4023712
        "stop_time" => float 1495728263.6794
        "stop_memory" => integer 4024296
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6799
        "start_memory" => integer 4030528
        "stop_time" => float 1495728263.6799
        "stop_memory" => integer 4031120
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.68
        "start_memory" => integer 4038296
        "stop_time" => float 1495728263.68
        "stop_memory" => integer 4038848
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6801
        "start_memory" => integer 4042296
        "stop_time" => float 1495728263.6802
        "stop_memory" => integer 4042880
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6818
        "start_memory" => integer 4257840
        "stop_time" => float 1495728263.6818
        "stop_memory" => integer 4258432
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6824
        "start_memory" => integer 4318880
        "stop_time" => float 1495728263.6824
        "stop_memory" => integer 4319464
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6829
        "start_memory" => integer 4351152
        "stop_time" => float 1495728263.6829
        "stop_memory" => integer 4351720
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6833
        "start_memory" => integer 4374992
        "stop_time" => float 1495728263.6833
        "stop_memory" => integer 4375568
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6836
        "start_memory" => integer 4401320
        "stop_time" => float 1495728263.6837
        "stop_memory" => integer 4401912
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6841
        "start_memory" => integer 4425936
        "stop_time" => float 1495728263.6842
        "stop_memory" => integer 4426472
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6843
        "start_memory" => integer 4429880
        "stop_time" => float 1495728263.6844
        "stop_memory" => integer 4430456
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6852
        "start_memory" => integer 4437088
        "stop_time" => float 1495728263.6853
        "stop_memory" => integer 4437672
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6854
        "start_memory" => integer 4441128
        "stop_time" => float 1495728263.6855
        "stop_memory" => integer 4441704
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6863
        "start_memory" => integer 4466584
        "stop_time" => float 1495728263.6864
        "stop_memory" => integer 4467160
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6865
        "start_memory" => integer 4470616
        "stop_time" => float 1495728263.6866
        "stop_memory" => integer 4471208
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6872
        "start_memory" => integer 4481912
        "stop_time" => float 1495728263.6873
        "stop_memory" => integer 4482496
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6874
        "start_memory" => integer 4486000
        "stop_time" => float 1495728263.6875
        "stop_memory" => integer 4486584
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6878
        "start_memory" => integer 4496912
        "stop_time" => float 1495728263.6878
        "stop_memory" => integer 4497496
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.688
        "start_memory" => integer 4501024
        "stop_time" => float 1495728263.688
        "stop_memory" => integer 4501608
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6884
        "start_memory" => integer 4514064
        "stop_time" => float 1495728263.6885
        "stop_memory" => integer 4514656
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6886
        "start_memory" => integer 4518216
        "stop_time" => float 1495728263.6887
        "stop_memory" => integer 4518824
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6889
        "start_memory" => integer 4524144
        "stop_time" => float 1495728263.689
        "stop_memory" => integer 4524712
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6891
        "start_memory" => integer 4528224
        "stop_time" => float 1495728263.6892
        "stop_memory" => integer 4528824
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6893
        "start_memory" => integer 4534768
        "stop_time" => float 1495728263.6894
        "stop_memory" => integer 4535344
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6895
        "start_memory" => integer 4538848
        "stop_time" => float 1495728263.6896
        "stop_memory" => integer 4539432
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6909
        "start_memory" => integer 4604560
        "stop_time" => float 1495728263.691
        "stop_memory" => integer 4605160
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6912
        "start_memory" => integer 4608720
        "stop_time" => float 1495728263.6912
        "stop_memory" => integer 4609328
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6919
        "start_memory" => integer 4625688
        "stop_time" => float 1495728263.692
        "stop_memory" => integer 4626272
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6921
        "start_memory" => integer 4629848
        "stop_time" => float 1495728263.6922
        "stop_memory" => integer 4630456
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6928
        "start_memory" => integer 4645648
        "stop_time" => float 1495728263.6929
        "stop_memory" => integer 4646216
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.693
        "start_memory" => integer 4649736
        "stop_time" => float 1495728263.6931
        "stop_memory" => integer 4650336
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6937
        "start_memory" => integer 4666520
        "stop_time" => float 1495728263.6938
        "stop_memory" => integer 4667080
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6939
        "start_memory" => integer 4670552
        "stop_time" => float 1495728263.694
        "stop_memory" => integer 4671144
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6941
        "start_memory" => integer 4676104
        "stop_time" => float 1495728263.6942
        "stop_memory" => integer 4676672
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6943
        "start_memory" => integer 4680168
        "stop_time" => float 1495728263.6944
        "stop_memory" => integer 4680760
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6951
        "start_memory" => integer 4690472
        "stop_time" => float 1495728263.6952
        "stop_memory" => integer 4691056
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6953
        "start_memory" => integer 4694584
        "stop_time" => float 1495728263.6954
        "stop_memory" => integer 4695184
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.696
        "start_memory" => integer 4699504
        "stop_time" => float 1495728263.6961
        "stop_memory" => integer 4700080
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6962
        "start_memory" => integer 4703584
        "stop_time" => float 1495728263.6963
        "stop_memory" => integer 4704184
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.697
        "start_memory" => integer 4714176
        "stop_time" => float 1495728263.697
        "stop_memory" => integer 4714752
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6971
        "start_memory" => integer 4718256
        "stop_time" => float 1495728263.6972
        "stop_memory" => integer 4718856
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6981
        "start_memory" => integer 4744568
        "stop_time" => float 1495728263.6982
        "stop_memory" => integer 4745160
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.6983
        "start_memory" => integer 4748712
        "stop_time" => float 1495728263.6984
        "stop_memory" => integer 4749304
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7001
        "start_memory" => integer 4760376
        "stop_time" => float 1495728263.7002
        "stop_memory" => integer 4760968
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7003
        "start_memory" => integer 4764528
        "stop_time" => float 1495728263.7004
        "stop_memory" => integer 4765136
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7016
        "start_memory" => integer 4774664
        "stop_time" => float 1495728263.7017
        "stop_memory" => integer 4775232
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7018
        "start_memory" => integer 4778752
        "stop_time" => float 1495728263.7018
        "stop_memory" => integer 4779352
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7022
        "start_memory" => integer 4797136
        "stop_time" => float 1495728263.7023
        "stop_memory" => integer 4797728
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7024
        "start_memory" => integer 4801288
        "stop_time" => float 1495728263.7024
        "stop_memory" => integer 4801896
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7028
        "start_memory" => integer 4818808
        "stop_time" => float 1495728263.7029
        "stop_memory" => integer 4819392
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7029
        "start_memory" => integer 4822968
        "stop_time" => float 1495728263.703
        "stop_memory" => integer 4823576
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7034
        "start_memory" => integer 4839144
        "stop_time" => float 1495728263.7034
        "stop_memory" => integer 4839728
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7035
        "start_memory" => integer 4843288
        "stop_time" => float 1495728263.7036
        "stop_memory" => integer 4843896
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7039
        "start_memory" => integer 4860592
        "stop_time" => float 1495728263.704
        "stop_memory" => integer 4861160
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7041
        "start_memory" => integer 4864688
        "stop_time" => float 1495728263.7041
        "stop_memory" => integer 4865288
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7045
        "start_memory" => integer 4882880
        "stop_time" => float 1495728263.7046
        "stop_memory" => integer 4883456
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7047
        "start_memory" => integer 4886960
        "stop_time" => float 1495728263.7047
        "stop_memory" => integer 4887560
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7051
        "start_memory" => integer 4894592
        "stop_time" => float 1495728263.7051
        "stop_memory" => integer 4895168
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7052
        "start_memory" => integer 4898680
        "stop_time" => float 1495728263.7053
        "stop_memory" => integer 4899280
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7057
        "start_memory" => integer 4909528
        "stop_time" => float 1495728263.7057
        "stop_memory" => integer 4910120
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7058
        "start_memory" => integer 4913696
        "stop_time" => float 1495728263.7059
        "stop_memory" => integer 4914304
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7067
        "start_memory" => integer 4922872
        "stop_time" => float 1495728263.7068
        "stop_memory" => integer 4923456
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7069
        "start_memory" => integer 4927032
        "stop_time" => float 1495728263.7069
        "stop_memory" => integer 4927640
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7077
        "start_memory" => integer 4935248
        "stop_time" => float 1495728263.7078
        "stop_memory" => integer 4935816
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7079
        "start_memory" => integer 4939344
        "stop_time" => float 1495728263.7079
        "stop_memory" => integer 4939944
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7083
        "start_memory" => integer 4945488
        "stop_time" => float 1495728263.7083
        "stop_memory" => integer 4946064
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7084
        "start_memory" => integer 4949592
        "stop_time" => float 1495728263.7085
        "stop_memory" => integer 4950192
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7097
        "start_memory" => integer 4958688
        "stop_time" => float 1495728263.7098
        "stop_memory" => integer 4959264
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7099
        "start_memory" => integer 4962768
        "stop_time" => float 1495728263.7099
        "stop_memory" => integer 4963368
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7111
        "start_memory" => integer 5009152
        "stop_time" => float 1495728263.7112
        "stop_memory" => integer 5009696
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7113
        "start_memory" => integer 5013128
        "stop_time" => float 1495728263.7113
        "stop_memory" => integer 5013712
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7141
        "start_memory" => integer 5028752
        "stop_time" => float 1495728263.7142
        "stop_memory" => integer 5029312
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7142
        "start_memory" => integer 5032776
        "stop_time" => float 1495728263.7143
        "stop_memory" => integer 5033360
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7148
        "start_memory" => integer 5051896
        "stop_time" => float 1495728263.7149
        "stop_memory" => integer 5052456
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7149
        "start_memory" => integer 5055888
        "stop_time" => float 1495728263.715
        "stop_memory" => integer 5056472
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7156
        "start_memory" => integer 5100936
        "stop_time" => float 1495728263.7157
        "stop_memory" => integer 5101512
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7158
        "start_memory" => integer 5104992
        "stop_time" => float 1495728263.7158
        "stop_memory" => integer 5105584
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7162
        "start_memory" => integer 5125944
        "stop_time" => float 1495728263.7163
        "stop_memory" => integer 5126528
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7164
        "start_memory" => integer 5132088
        "stop_time" => float 1495728263.7164
        "stop_memory" => integer 5132688
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7173
        "start_memory" => integer 5183168
        "stop_time" => float 1495728263.7174
        "stop_memory" => integer 5183728
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7175
        "start_memory" => integer 5187224
        "stop_time" => float 1495728263.7175
        "stop_memory" => integer 5187816
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.718
        "start_memory" => integer 5210088
        "stop_time" => float 1495728263.718
        "stop_memory" => integer 5210640
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7181
        "start_memory" => integer 5214064
        "stop_time" => float 1495728263.7182
        "stop_memory" => integer 5214632
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.719
        "start_memory" => integer 5286960
        "stop_time" => float 1495728263.7191
        "stop_memory" => integer 5287528
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7192
        "start_memory" => integer 5290960
        "stop_time" => float 1495728263.7193
        "stop_memory" => integer 5291544
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7228
        "start_memory" => integer 5314352
        "stop_time" => float 1495728263.7229
        "stop_memory" => integer 5314912
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.723
        "start_memory" => integer 5318360
        "stop_time" => float 1495728263.723
        "stop_memory" => integer 5318944
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7243
        "start_memory" => integer 5463816
        "stop_time" => float 1495728263.7244
        "stop_memory" => integer 5464392
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7244
        "start_memory" => integer 5467920
        "stop_time" => float 1495728263.7245
        "stop_memory" => integer 5468512
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7252
        "start_memory" => integer 5483944
        "stop_time" => float 1495728263.7252
        "stop_memory" => integer 5484528
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1495728263.7255
        "start_memory" => integer 5452784
        "stop_time" => float 1495728263.7255
        "stop_memory" => integer 5455216
    )
)

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