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 1481255247.8029
        "start_memory" => integer 900632
        "stop_time" => float 1481255248.0336
        "stop_memory" => integer 5454840
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8029
        "start_memory" => integer 902936
        "stop_time" => float 1481255247.803
        "stop_memory" => integer 903624
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8035
        "start_memory" => integer 980336
        "stop_time" => float 1481255247.8036
        "stop_memory" => integer 980896
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8037
        "start_memory" => integer 984912
        "stop_time" => float 1481255247.8037
        "stop_memory" => integer 985504
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8038
        "start_memory" => integer 993136
        "stop_time" => float 1481255247.8039
        "stop_memory" => integer 993688
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8039
        "start_memory" => integer 997328
        "stop_time" => float 1481255247.804
        "stop_memory" => integer 997912
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8041
        "start_memory" => integer 1001120
        "stop_time" => float 1481255247.8042
        "stop_memory" => integer 1001712
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8067
        "start_memory" => integer 1322208
        "stop_time" => float 1481255247.8067
        "stop_memory" => integer 1322744
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8068
        "start_memory" => integer 1326168
        "stop_time" => float 1481255247.8069
        "stop_memory" => integer 1326808
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8071
        "start_memory" => integer 1345576
        "stop_time" => float 1481255247.8072
        "stop_memory" => integer 1346160
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8072
        "start_memory" => integer 1349576
        "stop_time" => float 1481255247.8073
        "stop_memory" => integer 1350152
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8079
        "start_memory" => integer 1449512
        "stop_time" => float 1481255247.8079
        "stop_memory" => integer 1450112
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.808
        "start_memory" => integer 1453616
        "stop_time" => float 1481255247.808
        "stop_memory" => integer 1454216
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8084
        "start_memory" => integer 1567088
        "stop_time" => float 1481255247.8085
        "stop_memory" => integer 1567632
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8085
        "start_memory" => integer 1571056
        "stop_time" => float 1481255247.8086
        "stop_memory" => integer 1571624
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8088
        "start_memory" => integer 1605680
        "stop_time" => float 1481255247.8089
        "stop_memory" => integer 1606280
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8089
        "start_memory" => integer 1608816
        "stop_time" => float 1481255247.809
        "stop_memory" => integer 1609528
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8091
        "start_memory" => integer 1613032
        "stop_time" => float 1481255247.8091
        "stop_memory" => integer 1613632
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8092
        "start_memory" => integer 1615328
        "stop_time" => float 1481255247.8093
        "stop_memory" => integer 1615928
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8093
        "start_memory" => integer 1619448
        "stop_time" => float 1481255247.8094
        "stop_memory" => integer 1620024
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8096
        "start_memory" => integer 1649472
        "stop_time" => float 1481255247.8097
        "stop_memory" => integer 1650032
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8098
        "start_memory" => integer 1653528
        "stop_time" => float 1481255247.8098
        "stop_memory" => integer 1654120
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8103
        "start_memory" => integer 1715320
        "stop_time" => float 1481255247.8104
        "stop_memory" => integer 1715872
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8104
        "start_memory" => integer 1719320
        "stop_time" => float 1481255247.8105
        "stop_memory" => integer 1719888
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8114
        "start_memory" => integer 1777680
        "stop_time" => float 1481255247.8114
        "stop_memory" => integer 1778296
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8884
        "start_memory" => integer 1816240
        "stop_time" => float 1481255247.8884
        "stop_memory" => integer 1816808
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8885
        "start_memory" => integer 1820232
        "stop_time" => float 1481255247.8885
        "stop_memory" => integer 1820816
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8892
        "start_memory" => integer 1854880
        "stop_time" => float 1481255247.8892
        "stop_memory" => integer 1855456
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8893
        "start_memory" => integer 1858936
        "stop_time" => float 1481255247.8893
        "stop_memory" => integer 1859528
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8898
        "start_memory" => integer 1878144
        "stop_time" => float 1481255247.8898
        "stop_memory" => integer 1878712
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8899
        "start_memory" => integer 1882176
        "stop_time" => float 1481255247.8899
        "stop_memory" => integer 1882768
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8906
        "start_memory" => integer 1930080
        "stop_time" => float 1481255247.8906
        "stop_memory" => integer 1930680
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8907
        "start_memory" => integer 1942216
        "stop_time" => float 1481255247.8908
        "stop_memory" => integer 1943048
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8908
        "start_memory" => integer 1946568
        "stop_time" => float 1481255247.8909
        "stop_memory" => integer 1947152
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8913
        "start_memory" => integer 1985184
        "stop_time" => float 1481255247.8913
        "stop_memory" => integer 1985784
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8915
        "start_memory" => integer 1997856
        "stop_time" => float 1481255247.8915
        "stop_memory" => integer 1998432
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8919
        "start_memory" => integer 2025432
        "stop_time" => float 1481255247.8919
        "stop_memory" => integer 2026032
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8921
        "start_memory" => integer 2034840
        "stop_time" => float 1481255247.8921
        "stop_memory" => integer 2035416
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8923
        "start_memory" => integer 2048568
        "stop_time" => float 1481255247.8923
        "stop_memory" => integer 2049168
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8925
        "start_memory" => integer 2056184
        "stop_time" => float 1481255247.8925
        "stop_memory" => integer 2056776
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8927
        "start_memory" => integer 2070080
        "stop_time" => float 1481255247.8928
        "stop_memory" => integer 2070672
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.893
        "start_memory" => integer 2084304
        "stop_time" => float 1481255247.893
        "stop_memory" => integer 2084896
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8932
        "start_memory" => integer 2094376
        "stop_time" => float 1481255247.8932
        "stop_memory" => integer 2094968
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8934
        "start_memory" => integer 2103640
        "stop_time" => float 1481255247.8934
        "stop_memory" => integer 2104232
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8936
        "start_memory" => integer 2149568
        "stop_time" => float 1481255247.8937
        "stop_memory" => integer 2150144
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.894
        "start_memory" => integer 2173072
        "stop_time" => float 1481255247.894
        "stop_memory" => integer 2173672
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8942
        "start_memory" => integer 2186968
        "stop_time" => float 1481255247.8942
        "stop_memory" => integer 2187544
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8944
        "start_memory" => integer 2206744
        "stop_time" => float 1481255247.8945
        "stop_memory" => integer 2207328
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8947
        "start_memory" => integer 2220984
        "stop_time" => float 1481255247.8947
        "stop_memory" => integer 2221552
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.8948
        "start_memory" => integer 2225008
        "stop_time" => float 1481255247.8948
        "stop_memory" => integer 2225584
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9021
        "start_memory" => integer 2316080
        "stop_time" => float 1481255247.9022
        "stop_memory" => integer 2316656
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9022
        "start_memory" => integer 2320160
        "stop_time" => float 1481255247.9023
        "stop_memory" => integer 2320752
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9053
        "start_memory" => integer 2339840
        "stop_time" => float 1481255247.9054
        "stop_memory" => integer 2340424
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9054
        "start_memory" => integer 2343960
        "stop_time" => float 1481255247.9055
        "stop_memory" => integer 2344560
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9086
        "start_memory" => integer 2363744
        "stop_time" => float 1481255247.9087
        "stop_memory" => integer 2364304
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9087
        "start_memory" => integer 2367784
        "stop_time" => float 1481255247.9088
        "stop_memory" => integer 2368376
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9093
        "start_memory" => integer 2422008
        "stop_time" => float 1481255247.9093
        "stop_memory" => integer 2422608
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9128
        "start_memory" => integer 2429936
        "stop_time" => float 1481255247.9128
        "stop_memory" => integer 2430512
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9129
        "start_memory" => integer 2434040
        "stop_time" => float 1481255247.9129
        "stop_memory" => integer 2434640
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9235
        "start_memory" => integer 2474296
        "stop_time" => float 1481255247.9235
        "stop_memory" => integer 2474872
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9236
        "start_memory" => integer 2478400
        "stop_time" => float 1481255247.9237
        "stop_memory" => integer 2479000
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9238
        "start_memory" => integer 2494616
        "stop_time" => float 1481255247.9239
        "stop_memory" => integer 2495192
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9243
        "start_memory" => integer 2502504
        "stop_time" => float 1481255247.9244
        "stop_memory" => integer 2503072
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9244
        "start_memory" => integer 2506544
        "stop_time" => float 1481255247.9245
        "stop_memory" => integer 2507136
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9252
        "start_memory" => integer 2556608
        "stop_time" => float 1481255247.9253
        "stop_memory" => integer 2557704
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9254
        "start_memory" => integer 2561208
        "stop_time" => float 1481255247.9254
        "stop_memory" => integer 2561808
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9296
        "start_memory" => integer 2581192
        "stop_time" => float 1481255247.9297
        "stop_memory" => integer 2581752
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9297
        "start_memory" => integer 2585224
        "stop_time" => float 1481255247.9298
        "stop_memory" => integer 2585816
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9303
        "start_memory" => integer 2600976
        "stop_time" => float 1481255247.9304
        "stop_memory" => integer 2601512
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9305
        "start_memory" => integer 2604920
        "stop_time" => float 1481255247.9305
        "stop_memory" => integer 2605496
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9323
        "start_memory" => integer 2612216
        "stop_time" => float 1481255247.9323
        "stop_memory" => integer 2612832
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9327
        "start_memory" => integer 2620296
        "stop_time" => float 1481255247.9328
        "stop_memory" => integer 2620888
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.933
        "start_memory" => integer 2645512
        "stop_time" => float 1481255247.9331
        "stop_memory" => integer 2646016
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9343
        "start_memory" => integer 2647296
        "stop_time" => float 1481255247.9344
        "stop_memory" => integer 2647888
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9358
        "start_memory" => integer 2666672
        "stop_time" => float 1481255247.9359
        "stop_memory" => integer 2667232
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.936
        "start_memory" => integer 2670728
        "stop_time" => float 1481255247.936
        "stop_memory" => integer 2671320
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9385
        "start_memory" => integer 2682736
        "stop_time" => float 1481255247.9385
        "stop_memory" => integer 2683320
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9396
        "start_memory" => integer 2687344
        "stop_time" => float 1481255247.9397
        "stop_memory" => integer 2687896
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9398
        "start_memory" => integer 2691328
        "stop_time" => float 1481255247.9398
        "stop_memory" => integer 2691912
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9403
        "start_memory" => integer 2709312
        "stop_time" => float 1481255247.9403
        "stop_memory" => integer 2709888
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9404
        "start_memory" => integer 2713352
        "stop_time" => float 1481255247.9404
        "stop_memory" => integer 2713944
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9422
        "start_memory" => integer 2800176
        "stop_time" => float 1481255247.9422
        "stop_memory" => integer 2800776
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9423
        "start_memory" => integer 2804328
        "stop_time" => float 1481255247.9423
        "stop_memory" => integer 2804920
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9424
        "start_memory" => integer 2808648
        "stop_time" => float 1481255247.9425
        "stop_memory" => integer 2809208
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9429
        "start_memory" => integer 2826056
        "stop_time" => float 1481255247.943
        "stop_memory" => integer 2826664
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9431
        "start_memory" => integer 2830216
        "stop_time" => float 1481255247.9431
        "stop_memory" => integer 2830824
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9442
        "start_memory" => integer 2835856
        "stop_time" => float 1481255247.9442
        "stop_memory" => integer 2836424
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9443
        "start_memory" => integer 2839928
        "stop_time" => float 1481255247.9443
        "stop_memory" => integer 2840528
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9453
        "start_memory" => integer 2927944
        "stop_time" => float 1481255247.9454
        "stop_memory" => integer 2928536
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9455
        "start_memory" => integer 2932088
        "stop_time" => float 1481255247.9455
        "stop_memory" => integer 2932696
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9456
        "start_memory" => integer 2944728
        "stop_time" => float 1481255247.9457
        "stop_memory" => integer 2945296
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9458
        "start_memory" => integer 2948816
        "stop_time" => float 1481255247.9458
        "stop_memory" => integer 2949440
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9466
        "start_memory" => integer 2992840
        "stop_time" => float 1481255247.9466
        "stop_memory" => integer 2993416
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9467
        "start_memory" => integer 2996936
        "stop_time" => float 1481255247.9467
        "stop_memory" => integer 2997536
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9474
        "start_memory" => integer 3037024
        "stop_time" => float 1481255247.9475
        "stop_memory" => integer 3037600
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9475
        "start_memory" => integer 3041104
        "stop_time" => float 1481255247.9476
        "stop_memory" => integer 3041704
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9483
        "start_memory" => integer 3068888
        "stop_time" => float 1481255247.9484
        "stop_memory" => integer 3069480
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9484
        "start_memory" => integer 3073040
        "stop_time" => float 1481255247.9485
        "stop_memory" => integer 3073648
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9492
        "start_memory" => integer 3104896
        "stop_time" => float 1481255247.9493
        "stop_memory" => integer 3105496
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9494
        "start_memory" => integer 3109104
        "stop_time" => float 1481255247.9494
        "stop_memory" => integer 3109720
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9496
        "start_memory" => integer 3122896
        "stop_time" => float 1481255247.9496
        "stop_memory" => integer 3123488
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9497
        "start_memory" => integer 3128128
        "stop_time" => float 1481255247.9497
        "stop_memory" => integer 3128744
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9505
        "start_memory" => integer 3179328
        "stop_time" => float 1481255247.9505
        "stop_memory" => integer 3179920
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9506
        "start_memory" => integer 3183528
        "stop_time" => float 1481255247.9507
        "stop_memory" => integer 3184144
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9514
        "start_memory" => integer 3216032
        "stop_time" => float 1481255247.9515
        "stop_memory" => integer 3216624
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9516
        "start_memory" => integer 3220224
        "stop_time" => float 1481255247.9516
        "stop_memory" => integer 3220840
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9523
        "start_memory" => integer 3244152
        "stop_time" => float 1481255247.9524
        "stop_memory" => integer 3244744
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9525
        "start_memory" => integer 3248352
        "stop_time" => float 1481255247.9525
        "stop_memory" => integer 3248968
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9535
        "start_memory" => integer 3316808
        "stop_time" => float 1481255247.9535
        "stop_memory" => integer 3317400
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9536
        "start_memory" => integer 3321008
        "stop_time" => float 1481255247.9536
        "stop_memory" => integer 3321624
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9554
        "start_memory" => integer 3357400
        "stop_time" => float 1481255247.9554
        "stop_memory" => integer 3357976
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9555
        "start_memory" => integer 3361536
        "stop_time" => float 1481255247.9556
        "stop_memory" => integer 3362144
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9563
        "start_memory" => integer 3380472
        "stop_time" => float 1481255247.9563
        "stop_memory" => integer 3381008
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9564
        "start_memory" => integer 3384432
        "stop_time" => float 1481255247.9565
        "stop_memory" => integer 3385000
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9574
        "start_memory" => integer 3450824
        "stop_time" => float 1481255247.9575
        "stop_memory" => integer 3451408
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9575
        "start_memory" => integer 3454864
        "stop_time" => float 1481255247.9576
        "stop_memory" => integer 3455440
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9609
        "start_memory" => integer 3469072
        "stop_time" => float 1481255247.9609
        "stop_memory" => integer 3469632
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.961
        "start_memory" => integer 3473064
        "stop_time" => float 1481255247.9611
        "stop_memory" => integer 3473648
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9634
        "start_memory" => integer 3495464
        "stop_time" => float 1481255247.9635
        "stop_memory" => integer 3496024
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9636
        "start_memory" => integer 3499448
        "stop_time" => float 1481255247.9637
        "stop_memory" => integer 3500016
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9643
        "start_memory" => integer 3523096
        "stop_time" => float 1481255247.9644
        "stop_memory" => integer 3523664
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9645
        "start_memory" => integer 3527088
        "stop_time" => float 1481255247.9646
        "stop_memory" => integer 3527656
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9651
        "start_memory" => integer 3545104
        "stop_time" => float 1481255247.9652
        "stop_memory" => integer 3545672
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9652
        "start_memory" => integer 3549096
        "stop_time" => float 1481255247.9653
        "stop_memory" => integer 3549664
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9665
        "start_memory" => integer 3596256
        "stop_time" => float 1481255247.9666
        "stop_memory" => integer 3596824
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9666
        "start_memory" => integer 3600264
        "stop_time" => float 1481255247.9667
        "stop_memory" => integer 3600848
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9685
        "start_memory" => integer 3615360
        "stop_time" => float 1481255247.9686
        "stop_memory" => integer 3615920
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9687
        "start_memory" => integer 3619368
        "stop_time" => float 1481255247.9688
        "stop_memory" => integer 3619936
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9702
        "start_memory" => integer 3632912
        "stop_time" => float 1481255247.9702
        "stop_memory" => integer 3634520
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9703
        "start_memory" => integer 3638000
        "stop_time" => float 1481255247.9704
        "stop_memory" => integer 3638576
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9716
        "start_memory" => integer 3717480
        "stop_time" => float 1481255247.9717
        "stop_memory" => integer 3718056
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9718
        "start_memory" => integer 3721520
        "stop_time" => float 1481255247.9718
        "stop_memory" => integer 3722112
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9732
        "start_memory" => integer 3821096
        "stop_time" => float 1481255247.9733
        "stop_memory" => integer 3821648
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9734
        "start_memory" => integer 3825104
        "stop_time" => float 1481255247.9734
        "stop_memory" => integer 3825688
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9752
        "start_memory" => integer 3858560
        "stop_time" => float 1481255247.9753
        "stop_memory" => integer 3859152
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9753
        "start_memory" => integer 3862648
        "stop_time" => float 1481255247.9754
        "stop_memory" => integer 3863248
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.976
        "start_memory" => integer 3888800
        "stop_time" => float 1481255247.9761
        "stop_memory" => integer 3889392
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9761
        "start_memory" => integer 3892968
        "stop_time" => float 1481255247.9762
        "stop_memory" => integer 3893576
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9772
        "start_memory" => integer 3912280
        "stop_time" => float 1481255247.9772
        "stop_memory" => integer 3912848
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9773
        "start_memory" => integer 3916376
        "stop_time" => float 1481255247.9774
        "stop_memory" => integer 3916976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9789
        "start_memory" => integer 3935696
        "stop_time" => float 1481255247.9789
        "stop_memory" => integer 3936288
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9806
        "start_memory" => integer 3944712
        "stop_time" => float 1481255247.9806
        "stop_memory" => integer 3945304
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9843
        "start_memory" => integer 3971672
        "stop_time" => float 1481255247.9843
        "stop_memory" => integer 3972232
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9844
        "start_memory" => integer 3977896
        "stop_time" => float 1481255247.9845
        "stop_memory" => integer 3978400
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9855
        "start_memory" => integer 3978752
        "stop_time" => float 1481255247.9856
        "stop_memory" => integer 3979328
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9866
        "start_memory" => integer 3983680
        "stop_time" => float 1481255247.9867
        "stop_memory" => integer 3984256
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9875
        "start_memory" => integer 3992744
        "stop_time" => float 1481255247.9875
        "stop_memory" => integer 3993352
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9879
        "start_memory" => integer 4001040
        "stop_time" => float 1481255247.988
        "stop_memory" => integer 4001616
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9883
        "start_memory" => integer 4004008
        "stop_time" => float 1481255247.9884
        "stop_memory" => integer 4004592
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9885
        "start_memory" => integer 4011880
        "stop_time" => float 1481255247.9886
        "stop_memory" => integer 4012464
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9888
        "start_memory" => integer 4019728
        "stop_time" => float 1481255247.9889
        "stop_memory" => integer 4020280
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9889
        "start_memory" => integer 4023712
        "stop_time" => float 1481255247.989
        "stop_memory" => integer 4024296
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9894
        "start_memory" => integer 4030528
        "stop_time" => float 1481255247.9895
        "stop_memory" => integer 4031120
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9896
        "start_memory" => integer 4038296
        "stop_time" => float 1481255247.9896
        "stop_memory" => integer 4038848
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9897
        "start_memory" => integer 4042296
        "stop_time" => float 1481255247.9897
        "stop_memory" => integer 4042880
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.992
        "start_memory" => integer 4257840
        "stop_time" => float 1481255247.992
        "stop_memory" => integer 4258432
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9927
        "start_memory" => integer 4318880
        "stop_time" => float 1481255247.9928
        "stop_memory" => integer 4319464
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9933
        "start_memory" => integer 4351152
        "stop_time" => float 1481255247.9933
        "stop_memory" => integer 4351720
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9938
        "start_memory" => integer 4374992
        "stop_time" => float 1481255247.9938
        "stop_memory" => integer 4375568
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9942
        "start_memory" => integer 4401320
        "stop_time" => float 1481255247.9943
        "stop_memory" => integer 4401912
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9947
        "start_memory" => integer 4425936
        "stop_time" => float 1481255247.9947
        "stop_memory" => integer 4426472
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9948
        "start_memory" => integer 4429880
        "stop_time" => float 1481255247.9949
        "stop_memory" => integer 4430456
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9954
        "start_memory" => integer 4437088
        "stop_time" => float 1481255247.9954
        "stop_memory" => integer 4437672
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9955
        "start_memory" => integer 4441128
        "stop_time" => float 1481255247.9955
        "stop_memory" => integer 4441704
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9962
        "start_memory" => integer 4466584
        "stop_time" => float 1481255247.9962
        "stop_memory" => integer 4467160
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9963
        "start_memory" => integer 4470616
        "stop_time" => float 1481255247.9964
        "stop_memory" => integer 4471208
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9968
        "start_memory" => integer 4481912
        "stop_time" => float 1481255247.9968
        "stop_memory" => integer 4482496
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9969
        "start_memory" => integer 4486000
        "stop_time" => float 1481255247.9969
        "stop_memory" => integer 4486584
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9972
        "start_memory" => integer 4496912
        "stop_time" => float 1481255247.9972
        "stop_memory" => integer 4497496
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9973
        "start_memory" => integer 4501024
        "stop_time" => float 1481255247.9974
        "stop_memory" => integer 4501608
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9977
        "start_memory" => integer 4514064
        "stop_time" => float 1481255247.9977
        "stop_memory" => integer 4514656
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9978
        "start_memory" => integer 4518216
        "stop_time" => float 1481255247.9979
        "stop_memory" => integer 4518824
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.998
        "start_memory" => integer 4524144
        "stop_time" => float 1481255247.9981
        "stop_memory" => integer 4524712
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9982
        "start_memory" => integer 4528224
        "stop_time" => float 1481255247.9982
        "stop_memory" => integer 4528824
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9983
        "start_memory" => integer 4534768
        "stop_time" => float 1481255247.9984
        "stop_memory" => integer 4535344
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9985
        "start_memory" => integer 4538848
        "stop_time" => float 1481255247.9985
        "stop_memory" => integer 4539432
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9995
        "start_memory" => integer 4604560
        "stop_time" => float 1481255247.9995
        "stop_memory" => integer 4605160
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255247.9996
        "start_memory" => integer 4608720
        "stop_time" => float 1481255247.9997
        "stop_memory" => integer 4609328
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0002
        "start_memory" => integer 4625688
        "stop_time" => float 1481255248.0002
        "stop_memory" => integer 4626272
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0003
        "start_memory" => integer 4629848
        "stop_time" => float 1481255248.0004
        "stop_memory" => integer 4630456
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.001
        "start_memory" => integer 4645648
        "stop_time" => float 1481255248.0011
        "stop_memory" => integer 4646216
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0012
        "start_memory" => integer 4649736
        "stop_time" => float 1481255248.0013
        "stop_memory" => integer 4650336
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.002
        "start_memory" => integer 4666520
        "stop_time" => float 1481255248.0021
        "stop_memory" => integer 4667080
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0023
        "start_memory" => integer 4670552
        "stop_time" => float 1481255248.0023
        "stop_memory" => integer 4671144
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0025
        "start_memory" => integer 4676104
        "stop_time" => float 1481255248.0026
        "stop_memory" => integer 4676672
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0027
        "start_memory" => integer 4680168
        "stop_time" => float 1481255248.0028
        "stop_memory" => integer 4680760
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0035
        "start_memory" => integer 4690472
        "stop_time" => float 1481255248.0036
        "stop_memory" => integer 4691056
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0037
        "start_memory" => integer 4694584
        "stop_time" => float 1481255248.0037
        "stop_memory" => integer 4695184
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0041
        "start_memory" => integer 4699504
        "stop_time" => float 1481255248.0041
        "stop_memory" => integer 4700080
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0042
        "start_memory" => integer 4703584
        "stop_time" => float 1481255248.0043
        "stop_memory" => integer 4704184
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0048
        "start_memory" => integer 4714176
        "stop_time" => float 1481255248.0048
        "stop_memory" => integer 4714752
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0049
        "start_memory" => integer 4718256
        "stop_time" => float 1481255248.0049
        "stop_memory" => integer 4718856
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0055
        "start_memory" => integer 4744568
        "stop_time" => float 1481255248.0055
        "stop_memory" => integer 4745160
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0056
        "start_memory" => integer 4748712
        "stop_time" => float 1481255248.0057
        "stop_memory" => integer 4749304
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0068
        "start_memory" => integer 4760376
        "stop_time" => float 1481255248.0068
        "stop_memory" => integer 4760968
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0069
        "start_memory" => integer 4764528
        "stop_time" => float 1481255248.007
        "stop_memory" => integer 4765136
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.008
        "start_memory" => integer 4774664
        "stop_time" => float 1481255248.0081
        "stop_memory" => integer 4775232
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0082
        "start_memory" => integer 4778752
        "stop_time" => float 1481255248.0082
        "stop_memory" => integer 4779352
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0087
        "start_memory" => integer 4797136
        "stop_time" => float 1481255248.0087
        "stop_memory" => integer 4797728
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0088
        "start_memory" => integer 4801288
        "stop_time" => float 1481255248.0088
        "stop_memory" => integer 4801896
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0093
        "start_memory" => integer 4818808
        "stop_time" => float 1481255248.0093
        "stop_memory" => integer 4819392
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0094
        "start_memory" => integer 4822968
        "stop_time" => float 1481255248.0095
        "stop_memory" => integer 4823576
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0099
        "start_memory" => integer 4839144
        "stop_time" => float 1481255248.0099
        "stop_memory" => integer 4839728
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.01
        "start_memory" => integer 4843288
        "stop_time" => float 1481255248.01
        "stop_memory" => integer 4843896
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0104
        "start_memory" => integer 4860592
        "stop_time" => float 1481255248.0105
        "stop_memory" => integer 4861160
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0106
        "start_memory" => integer 4864688
        "stop_time" => float 1481255248.0106
        "stop_memory" => integer 4865288
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0111
        "start_memory" => integer 4882880
        "stop_time" => float 1481255248.0111
        "stop_memory" => integer 4883456
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0112
        "start_memory" => integer 4886960
        "stop_time" => float 1481255248.0112
        "stop_memory" => integer 4887560
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0116
        "start_memory" => integer 4894592
        "stop_time" => float 1481255248.0117
        "stop_memory" => integer 4895168
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0118
        "start_memory" => integer 4898680
        "stop_time" => float 1481255248.0118
        "stop_memory" => integer 4899280
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0122
        "start_memory" => integer 4909528
        "stop_time" => float 1481255248.0123
        "stop_memory" => integer 4910120
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0124
        "start_memory" => integer 4913696
        "stop_time" => float 1481255248.0124
        "stop_memory" => integer 4914304
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0133
        "start_memory" => integer 4922872
        "stop_time" => float 1481255248.0133
        "stop_memory" => integer 4923456
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0134
        "start_memory" => integer 4927032
        "stop_time" => float 1481255248.0135
        "stop_memory" => integer 4927640
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0143
        "start_memory" => integer 4935248
        "stop_time" => float 1481255248.0143
        "stop_memory" => integer 4935816
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0144
        "start_memory" => integer 4939344
        "stop_time" => float 1481255248.0145
        "stop_memory" => integer 4939944
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0149
        "start_memory" => integer 4945488
        "stop_time" => float 1481255248.0149
        "stop_memory" => integer 4946064
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.015
        "start_memory" => integer 4949592
        "stop_time" => float 1481255248.015
        "stop_memory" => integer 4950192
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0164
        "start_memory" => integer 4958688
        "stop_time" => float 1481255248.0164
        "stop_memory" => integer 4959264
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0165
        "start_memory" => integer 4962768
        "stop_time" => float 1481255248.0166
        "stop_memory" => integer 4963368
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0179
        "start_memory" => integer 5009152
        "stop_time" => float 1481255248.018
        "stop_memory" => integer 5009696
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.018
        "start_memory" => integer 5013128
        "stop_time" => float 1481255248.0181
        "stop_memory" => integer 5013712
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.021
        "start_memory" => integer 5028752
        "stop_time" => float 1481255248.0211
        "stop_memory" => integer 5029312
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0212
        "start_memory" => integer 5032776
        "stop_time" => float 1481255248.0212
        "stop_memory" => integer 5033360
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0218
        "start_memory" => integer 5051896
        "stop_time" => float 1481255248.0218
        "stop_memory" => integer 5052456
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0219
        "start_memory" => integer 5055888
        "stop_time" => float 1481255248.022
        "stop_memory" => integer 5056472
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0226
        "start_memory" => integer 5100936
        "stop_time" => float 1481255248.0227
        "stop_memory" => integer 5101512
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0228
        "start_memory" => integer 5104992
        "stop_time" => float 1481255248.0228
        "stop_memory" => integer 5105584
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0233
        "start_memory" => integer 5125944
        "stop_time" => float 1481255248.0234
        "stop_memory" => integer 5126528
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0235
        "start_memory" => integer 5132088
        "stop_time" => float 1481255248.0235
        "stop_memory" => integer 5132688
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0246
        "start_memory" => integer 5183168
        "stop_time" => float 1481255248.0246
        "stop_memory" => integer 5183728
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0247
        "start_memory" => integer 5187224
        "stop_time" => float 1481255248.0248
        "stop_memory" => integer 5187816
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0252
        "start_memory" => integer 5210088
        "stop_time" => float 1481255248.0253
        "stop_memory" => integer 5210640
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0254
        "start_memory" => integer 5214064
        "stop_time" => float 1481255248.0254
        "stop_memory" => integer 5214632
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0265
        "start_memory" => integer 5286960
        "stop_time" => float 1481255248.0265
        "stop_memory" => integer 5287528
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0266
        "start_memory" => integer 5290960
        "stop_time" => float 1481255248.0267
        "stop_memory" => integer 5291544
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0304
        "start_memory" => integer 5314352
        "stop_time" => float 1481255248.0305
        "stop_memory" => integer 5314912
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0306
        "start_memory" => integer 5318360
        "stop_time" => float 1481255248.0307
        "stop_memory" => integer 5318944
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0322
        "start_memory" => integer 5463816
        "stop_time" => float 1481255248.0323
        "stop_memory" => integer 5464392
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0323
        "start_memory" => integer 5467920
        "stop_time" => float 1481255248.0324
        "stop_memory" => integer 5468512
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0331
        "start_memory" => integer 5483944
        "stop_time" => float 1481255248.0331
        "stop_memory" => integer 5484528
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1481255248.0334
        "start_memory" => integer 5452784
        "stop_time" => float 1481255248.0335
        "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'],
	);
}