Modules

Profiler
extends Kohana_Profiler

Provides simple benchmarking and profiling. To display the statistics that have been collected, load the profiler/stats View:

echo View::factory('profiler/stats');
package
Kohana
category
Helpers
author
Kohana Team
copyright
© 2009-2012 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/profiler.php on line 3.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1411315491.0019
        "start_memory" => integer 1985312
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0019
        "start_memory" => integer 1987656
        "stop_time" => float 1411315491.002
        "stop_memory" => integer 1988248
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.002
        "start_memory" => integer 1993200
        "stop_time" => float 1411315491.0021
        "stop_memory" => integer 1993792
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0028
        "start_memory" => integer 2119312
        "stop_time" => float 1411315491.0029
        "stop_memory" => integer 2119864
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.003
        "start_memory" => integer 2124784
        "stop_time" => float 1411315491.003
        "stop_memory" => integer 2125368
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0031
        "start_memory" => integer 2136456
        "stop_time" => float 1411315491.0032
        "stop_memory" => integer 2137000
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0032
        "start_memory" => integer 2141712
        "stop_time" => float 1411315491.0033
        "stop_memory" => integer 2142288
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0035
        "start_memory" => integer 2151568
        "stop_time" => float 1411315491.0035
        "stop_memory" => integer 2152128
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0036
        "start_memory" => integer 2156800
        "stop_time" => float 1411315491.0036
        "stop_memory" => integer 2157408
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0047
        "start_memory" => integer 2318336
        "stop_time" => float 1411315491.0048
        "stop_memory" => integer 2318896
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0049
        "start_memory" => integer 2323744
        "stop_time" => float 1411315491.0049
        "stop_memory" => integer 2324320
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0052
        "start_memory" => integer 2337776
        "stop_time" => float 1411315491.0052
        "stop_memory" => integer 2338320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0054
        "start_memory" => integer 2342968
        "stop_time" => float 1411315491.0055
        "stop_memory" => integer 2343536
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0059
        "start_memory" => integer 2398360
        "stop_time" => float 1411315491.006
        "stop_memory" => integer 2398952
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.006
        "start_memory" => integer 2400112
        "stop_time" => float 1411315491.0061
        "stop_memory" => integer 2400688
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0062
        "start_memory" => integer 2405560
        "stop_time" => float 1411315491.0063
        "stop_memory" => integer 2406136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0068
        "start_memory" => integer 2471600
        "stop_time" => float 1411315491.0068
        "stop_memory" => integer 2472216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0069
        "start_memory" => integer 2473000
        "stop_time" => float 1411315491.0069
        "stop_memory" => integer 2473576
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.011
        "start_memory" => integer 3142272
        "stop_time" => float 1411315491.0111
        "stop_memory" => integer 3142800
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0113
        "start_memory" => integer 3148472
        "stop_time" => float 1411315491.0113
        "stop_memory" => integer 3149040
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0117
        "start_memory" => integer 3181792
        "stop_time" => float 1411315491.0118
        "stop_memory" => integer 3182336
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0119
        "start_memory" => integer 3187000
        "stop_time" => float 1411315491.012
        "stop_memory" => integer 3187568
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0131
        "start_memory" => integer 3350384
        "stop_time" => float 1411315491.0132
        "stop_memory" => integer 3350960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0133
        "start_memory" => integer 3355840
        "stop_time" => float 1411315491.0134
        "stop_memory" => integer 3356424
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0135
        "start_memory" => integer 3359112
        "stop_time" => float 1411315491.0136
        "stop_memory" => integer 3359672
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0136
        "start_memory" => integer 3364544
        "stop_time" => float 1411315491.0137
        "stop_memory" => integer 3365128
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0141
        "start_memory" => integer 3414784
        "stop_time" => float 1411315491.0141
        "stop_memory" => integer 3415328
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0143
        "start_memory" => integer 3420000
        "stop_time" => float 1411315491.0143
        "stop_memory" => integer 3420576
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.015
        "start_memory" => integer 3518616
        "stop_time" => float 1411315491.0151
        "stop_memory" => integer 3519152
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0152
        "start_memory" => integer 3523792
        "stop_time" => float 1411315491.0153
        "stop_memory" => integer 3524360
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.017
        "start_memory" => integer 3610952
        "stop_time" => float 1411315491.0171
        "stop_memory" => integer 3611544
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0779
        "start_memory" => integer 3653704
        "stop_time" => float 1411315491.078
        "stop_memory" => integer 3654272
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0781
        "start_memory" => integer 3658936
        "stop_time" => float 1411315491.0782
        "stop_memory" => integer 3659768
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.079
        "start_memory" => integer 3700368
        "stop_time" => float 1411315491.079
        "stop_memory" => integer 3700920
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0791
        "start_memory" => integer 3705752
        "stop_time" => float 1411315491.0791
        "stop_memory" => integer 3706328
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0797
        "start_memory" => integer 3730032
        "stop_time" => float 1411315491.0797
        "stop_memory" => integer 3730584
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0798
        "start_memory" => integer 3735272
        "stop_time" => float 1411315491.0798
        "stop_memory" => integer 3735848
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0806
        "start_memory" => integer 3803016
        "stop_time" => float 1411315491.0806
        "stop_memory" => integer 3803600
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0807
        "start_memory" => integer 3821592
        "stop_time" => float 1411315491.0808
        "stop_memory" => integer 3822152
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0808
        "start_memory" => integer 3827016
        "stop_time" => float 1411315491.0808
        "stop_memory" => integer 3827600
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0813
        "start_memory" => integer 3892736
        "stop_time" => float 1411315491.0813
        "stop_memory" => integer 3893312
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0816
        "start_memory" => integer 3912736
        "stop_time" => float 1411315491.0817
        "stop_memory" => integer 3913312
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.082
        "start_memory" => integer 3961360
        "stop_time" => float 1411315491.082
        "stop_memory" => integer 3961936
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0823
        "start_memory" => integer 3972592
        "stop_time" => float 1411315491.0823
        "stop_memory" => integer 3973168
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0825
        "start_memory" => integer 3991184
        "stop_time" => float 1411315491.0825
        "stop_memory" => integer 3991760
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0827
        "start_memory" => integer 4001456
        "stop_time" => float 1411315491.0828
        "stop_memory" => integer 4002032
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.083
        "start_memory" => integer 4022136
        "stop_time" => float 1411315491.0831
        "stop_memory" => integer 4022712
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0833
        "start_memory" => integer 4043192
        "stop_time" => float 1411315491.0833
        "stop_memory" => integer 4043784
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0836
        "start_memory" => integer 4057024
        "stop_time" => float 1411315491.0836
        "stop_memory" => integer 4057592
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0839
        "start_memory" => integer 4069808
        "stop_time" => float 1411315491.0839
        "stop_memory" => integer 4070384
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0842
        "start_memory" => integer 4118664
        "stop_time" => float 1411315491.0842
        "stop_memory" => integer 4119224
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0845
        "start_memory" => integer 4157672
        "stop_time" => float 1411315491.0845
        "stop_memory" => integer 4158256
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0848
        "start_memory" => integer 4177656
        "stop_time" => float 1411315491.0848
        "stop_memory" => integer 4178232
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0851
        "start_memory" => integer 4209416
        "stop_time" => float 1411315491.0851
        "stop_memory" => integer 4209992
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0854
        "start_memory" => integer 4228704
        "stop_time" => float 1411315491.0854
        "stop_memory" => integer 4229248
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0854
        "start_memory" => integer 4233920
        "stop_time" => float 1411315491.0855
        "stop_memory" => integer 4234496
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0857
        "start_memory" => integer 4265336
        "stop_time" => float 1411315491.0857
        "stop_memory" => integer 4265872
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0858
        "start_memory" => integer 4270520
        "stop_time" => float 1411315491.0859
        "stop_memory" => integer 4271088
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0885
        "start_memory" => integer 4412656
        "stop_time" => float 1411315491.0886
        "stop_memory" => integer 4413232
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0962
        "start_memory" => integer 4466040
        "stop_time" => float 1411315491.0962
        "stop_memory" => integer 4466592
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.0963
        "start_memory" => integer 4471440
        "stop_time" => float 1411315491.0964
        "stop_memory" => integer 4472016
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1016
        "start_memory" => integer 4497528
        "stop_time" => float 1411315491.1017
        "stop_memory" => integer 4498112
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1018
        "start_memory" => integer 4503048
        "stop_time" => float 1411315491.1018
        "stop_memory" => integer 4503624
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1066
        "start_memory" => integer 4529248
        "stop_time" => float 1411315491.1067
        "stop_memory" => integer 4529808
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1068
        "start_memory" => integer 4534664
        "stop_time" => float 1411315491.1068
        "stop_memory" => integer 4535744
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1073
        "start_memory" => integer 4624512
        "stop_time" => float 1411315491.1074
        "stop_memory" => integer 4625112
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1125
        "start_memory" => integer 4632032
        "stop_time" => float 1411315491.1125
        "stop_memory" => integer 4632584
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1126
        "start_memory" => integer 4637464
        "stop_time" => float 1411315491.1126
        "stop_memory" => integer 4638048
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1271
        "start_memory" => integer 4694952
        "stop_time" => float 1411315491.1271
        "stop_memory" => integer 4695512
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1274
        "start_memory" => integer 4700432
        "stop_time" => float 1411315491.1274
        "stop_memory" => integer 4701016
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1276
        "start_memory" => integer 4724856
        "stop_time" => float 1411315491.1277
        "stop_memory" => integer 4725432
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1286
        "start_memory" => integer 4734544
        "stop_time" => float 1411315491.1287
        "stop_memory" => integer 4735104
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1288
        "start_memory" => integer 4739968
        "stop_time" => float 1411315491.1288
        "stop_memory" => integer 4740552
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.13
        "start_memory" => integer 4820032
        "stop_time" => float 1411315491.13
        "stop_memory" => integer 4820592
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1301
        "start_memory" => integer 4825472
        "stop_time" => float 1411315491.1301
        "stop_memory" => integer 4826056
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1353
        "start_memory" => integer 4851752
        "stop_time" => float 1411315491.1354
        "stop_memory" => integer 4852312
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1355
        "start_memory" => integer 4857176
        "stop_time" => float 1411315491.1356
        "stop_memory" => integer 4857760
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1364
        "start_memory" => integer 4879184
        "stop_time" => float 1411315491.1364
        "stop_memory" => integer 4879712
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1365
        "start_memory" => integer 4884360
        "stop_time" => float 1411315491.1365
        "stop_memory" => integer 4884936
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.138
        "start_memory" => integer 4895792
        "stop_time" => float 1411315491.138
        "stop_memory" => integer 4896384
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1381
        "start_memory" => integer 4901272
        "stop_time" => float 1411315491.1381
        "stop_memory" => integer 4901848
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1419
        "start_memory" => integer 4946856
        "stop_time" => float 1411315491.142
        "stop_memory" => integer 4947432
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1427
        "start_memory" => integer 4958568
        "stop_time" => float 1411315491.1428
        "stop_memory" => integer 4959112
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.143
        "start_memory" => integer 4965008
        "stop_time" => float 1411315491.143
        "stop_memory" => integer 4965584
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1473
        "start_memory" => integer 4987040
        "stop_time" => float 1411315491.1474
        "stop_memory" => integer 4987616
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1493
        "start_memory" => integer 4993168
        "stop_time" => float 1411315491.1493
        "stop_memory" => integer 4993736
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1494
        "start_memory" => integer 4998592
        "stop_time" => float 1411315491.1494
        "stop_memory" => integer 4999176
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1515
        "start_memory" => integer 5132904
        "stop_time" => float 1411315491.1516
        "stop_memory" => integer 5133480
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1516
        "start_memory" => integer 5138432
        "stop_time" => float 1411315491.1517
        "stop_memory" => integer 5139024
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1521
        "start_memory" => integer 5153872
        "stop_time" => float 1411315491.1522
        "stop_memory" => integer 5154440
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1523
        "start_memory" => integer 5159400
        "stop_time" => float 1411315491.1523
        "stop_memory" => integer 5159992
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.154
        "start_memory" => integer 5165928
        "stop_time" => float 1411315491.1542
        "stop_memory" => integer 5166480
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1544
        "start_memory" => integer 5171352
        "stop_time" => float 1411315491.1544
        "stop_memory" => integer 5171936
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1557
        "start_memory" => integer 5316528
        "stop_time" => float 1411315491.1558
        "stop_memory" => integer 5317104
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1558
        "start_memory" => integer 5322064
        "stop_time" => float 1411315491.1559
        "stop_memory" => integer 5322656
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.156
        "start_memory" => integer 5343336
        "stop_time" => float 1411315491.1561
        "stop_memory" => integer 5343904
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1561
        "start_memory" => integer 5348792
        "stop_time" => float 1411315491.1562
        "stop_memory" => integer 5349368
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1572
        "start_memory" => integer 5411688
        "stop_time" => float 1411315491.1573
        "stop_memory" => integer 5412248
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1574
        "start_memory" => integer 5417120
        "stop_time" => float 1411315491.1575
        "stop_memory" => integer 5417704
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1583
        "start_memory" => integer 5483208
        "stop_time" => float 1411315491.1584
        "stop_memory" => integer 5483768
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1585
        "start_memory" => integer 5488632
        "stop_time" => float 1411315491.1585
        "stop_memory" => integer 5489216
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1596
        "start_memory" => integer 5531872
        "stop_time" => float 1411315491.1596
        "stop_memory" => integer 5532448
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1597
        "start_memory" => integer 5537416
        "stop_time" => float 1411315491.1597
        "stop_memory" => integer 5538008
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1608
        "start_memory" => integer 5596848
        "stop_time" => float 1411315491.1608
        "stop_memory" => integer 5597432
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1609
        "start_memory" => integer 5602496
        "stop_time" => float 1411315491.1609
        "stop_memory" => integer 5603096
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.161
        "start_memory" => integer 5622768
        "stop_time" => float 1411315491.1611
        "stop_memory" => integer 5623344
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1611
        "start_memory" => integer 5628408
        "stop_time" => float 1411315491.1612
        "stop_memory" => integer 5629008
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.162
        "start_memory" => integer 5693480
        "stop_time" => float 1411315491.162
        "stop_memory" => integer 5694056
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1621
        "start_memory" => integer 5699120
        "stop_time" => float 1411315491.1621
        "stop_memory" => integer 5699720
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1629
        "start_memory" => integer 5748048
        "stop_time" => float 1411315491.163
        "stop_memory" => integer 5748624
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1631
        "start_memory" => integer 5753680
        "stop_time" => float 1411315491.1631
        "stop_memory" => integer 5754280
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1639
        "start_memory" => integer 5795584
        "stop_time" => float 1411315491.1639
        "stop_memory" => integer 5796160
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.164
        "start_memory" => integer 5801224
        "stop_time" => float 1411315491.164
        "stop_memory" => integer 5801824
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.165
        "start_memory" => integer 5914752
        "stop_time" => float 1411315491.1651
        "stop_memory" => integer 5915328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1651
        "start_memory" => integer 5920392
        "stop_time" => float 1411315491.1652
        "stop_memory" => integer 5920992
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.167
        "start_memory" => integer 5969648
        "stop_time" => float 1411315491.1671
        "stop_memory" => integer 5970208
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1671
        "start_memory" => integer 5975176
        "stop_time" => float 1411315491.1672
        "stop_memory" => integer 5975768
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1679
        "start_memory" => integer 5998888
        "stop_time" => float 1411315491.168
        "stop_memory" => integer 5999408
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1681
        "start_memory" => integer 6004048
        "stop_time" => float 1411315491.1681
        "stop_memory" => integer 6004616
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1687
        "start_memory" => integer 6122264
        "stop_time" => float 1411315491.1688
        "stop_memory" => integer 6122808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1693
        "start_memory" => integer 6123864
        "stop_time" => float 1411315491.1693
        "stop_memory" => integer 6124432
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1695
        "start_memory" => integer 6129104
        "stop_time" => float 1411315491.1695
        "stop_memory" => integer 6129688
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1737
        "start_memory" => integer 6150008
        "stop_time" => float 1411315491.1738
        "stop_memory" => integer 6150544
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1739
        "start_memory" => integer 6155192
        "stop_time" => float 1411315491.174
        "stop_memory" => integer 6155760
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.177
        "start_memory" => integer 6193264
        "stop_time" => float 1411315491.177
        "stop_memory" => integer 6193808
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1771
        "start_memory" => integer 6198448
        "stop_time" => float 1411315491.1772
        "stop_memory" => integer 6199016
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1781
        "start_memory" => integer 6241488
        "stop_time" => float 1411315491.1781
        "stop_memory" => integer 6242032
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1783
        "start_memory" => integer 6246680
        "stop_time" => float 1411315491.1784
        "stop_memory" => integer 6247248
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1792
        "start_memory" => integer 6291464
        "stop_time" => float 1411315491.1794
        "stop_memory" => integer 6293032
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1795
        "start_memory" => integer 6297672
        "stop_time" => float 1411315491.1795
        "stop_memory" => integer 6298240
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1813
        "start_memory" => integer 6373744
        "stop_time" => float 1411315491.1813
        "stop_memory" => integer 6374288
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1814
        "start_memory" => integer 6378952
        "stop_time" => float 1411315491.1815
        "stop_memory" => integer 6379520
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1837
        "start_memory" => integer 6401712
        "stop_time" => float 1411315491.1838
        "stop_memory" => integer 6402256
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1839
        "start_memory" => integer 6406896
        "stop_time" => float 1411315491.1839
        "stop_memory" => integer 6407464
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1857
        "start_memory" => integer 6436944
        "stop_time" => float 1411315491.1857
        "stop_memory" => integer 6437504
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1858
        "start_memory" => integer 6442352
        "stop_time" => float 1411315491.1859
        "stop_memory" => integer 6442928
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1871
        "start_memory" => integer 6463240
        "stop_time" => float 1411315491.1872
        "stop_memory" => integer 6463808
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1873
        "start_memory" => integer 6468744
        "stop_time" => float 1411315491.1874
        "stop_memory" => integer 6469328
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1884
        "start_memory" => integer 6484352
        "stop_time" => float 1411315491.1885
        "stop_memory" => integer 6484912
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1886
        "start_memory" => integer 6489848
        "stop_time" => float 1411315491.1887
        "stop_memory" => integer 6490432
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1896
        "start_memory" => integer 6505480
        "stop_time" => float 1411315491.1897
        "stop_memory" => integer 6506040
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1898
        "start_memory" => integer 6510976
        "stop_time" => float 1411315491.1899
        "stop_memory" => integer 6511560
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1909
        "start_memory" => integer 6526608
        "stop_time" => float 1411315491.1909
        "stop_memory" => integer 6527168
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.191
        "start_memory" => integer 6532104
        "stop_time" => float 1411315491.191
        "stop_memory" => integer 6532688
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1918
        "start_memory" => integer 6547712
        "stop_time" => float 1411315491.1918
        "stop_memory" => integer 6548272
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1919
        "start_memory" => integer 6553208
        "stop_time" => float 1411315491.192
        "stop_memory" => integer 6553792
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1931
        "start_memory" => integer 6568816
        "stop_time" => float 1411315491.1932
        "stop_memory" => integer 6569376
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1933
        "start_memory" => integer 6574312
        "stop_time" => float 1411315491.1934
        "stop_memory" => integer 6574896
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1945
        "start_memory" => integer 6589952
        "stop_time" => float 1411315491.1946
        "stop_memory" => integer 6590512
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1947
        "start_memory" => integer 6595448
        "stop_time" => float 1411315491.1948
        "stop_memory" => integer 6596032
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1958
        "start_memory" => integer 6611056
        "stop_time" => float 1411315491.1959
        "stop_memory" => integer 6611616
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.196
        "start_memory" => integer 6616552
        "stop_time" => float 1411315491.1961
        "stop_memory" => integer 6617136
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1971
        "start_memory" => integer 6632272
        "stop_time" => float 1411315491.1972
        "stop_memory" => integer 6632832
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1973
        "start_memory" => integer 6637768
        "stop_time" => float 1411315491.1974
        "stop_memory" => integer 6638352
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1983
        "start_memory" => integer 6653384
        "stop_time" => float 1411315491.1984
        "stop_memory" => integer 6653944
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1986
        "start_memory" => integer 6658880
        "stop_time" => float 1411315491.1986
        "stop_memory" => integer 6659464
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1996
        "start_memory" => integer 6674504
        "stop_time" => float 1411315491.1997
        "stop_memory" => integer 6675064
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.1998
        "start_memory" => integer 6680000
        "stop_time" => float 1411315491.1999
        "stop_memory" => integer 6680584
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2009
        "start_memory" => integer 6695592
        "stop_time" => float 1411315491.201
        "stop_memory" => integer 6696152
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2011
        "start_memory" => integer 6701088
        "stop_time" => float 1411315491.2012
        "stop_memory" => integer 6701672
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2021
        "start_memory" => integer 6716696
        "stop_time" => float 1411315491.2022
        "stop_memory" => integer 6717256
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2023
        "start_memory" => integer 6722192
        "stop_time" => float 1411315491.2024
        "stop_memory" => integer 6722776
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2037
        "start_memory" => integer 6737824
        "stop_time" => float 1411315491.2038
        "stop_memory" => integer 6738384
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2039
        "start_memory" => integer 6743320
        "stop_time" => float 1411315491.204
        "stop_memory" => integer 6743904
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.205
        "start_memory" => integer 6758960
        "stop_time" => float 1411315491.2051
        "stop_memory" => integer 6759520
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2052
        "start_memory" => integer 6764456
        "stop_time" => float 1411315491.2052
        "stop_memory" => integer 6765040
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2063
        "start_memory" => integer 6780088
        "stop_time" => float 1411315491.2063
        "stop_memory" => integer 6780648
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2064
        "start_memory" => integer 6785584
        "stop_time" => float 1411315491.2065
        "stop_memory" => integer 6786168
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2076
        "start_memory" => integer 6801352
        "stop_time" => float 1411315491.2076
        "stop_memory" => integer 6801912
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2077
        "start_memory" => integer 6806848
        "stop_time" => float 1411315491.2078
        "stop_memory" => integer 6807432
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2089
        "start_memory" => integer 6822504
        "stop_time" => float 1411315491.2089
        "stop_memory" => integer 6823064
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2091
        "start_memory" => integer 6828000
        "stop_time" => float 1411315491.2091
        "stop_memory" => integer 6828584
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2101
        "start_memory" => integer 6843640
        "stop_time" => float 1411315491.2102
        "stop_memory" => integer 6844200
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2103
        "start_memory" => integer 6849136
        "stop_time" => float 1411315491.2104
        "stop_memory" => integer 6849720
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2114
        "start_memory" => integer 6864768
        "stop_time" => float 1411315491.2115
        "stop_memory" => integer 6865328
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2116
        "start_memory" => integer 6870264
        "stop_time" => float 1411315491.2117
        "stop_memory" => integer 6870848
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2126
        "start_memory" => integer 6885872
        "stop_time" => float 1411315491.2127
        "stop_memory" => integer 6886432
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2128
        "start_memory" => integer 6891368
        "stop_time" => float 1411315491.2129
        "stop_memory" => integer 6891952
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2138
        "start_memory" => integer 6906976
        "stop_time" => float 1411315491.2139
        "stop_memory" => integer 6907536
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.214
        "start_memory" => integer 6912472
        "stop_time" => float 1411315491.2141
        "stop_memory" => integer 6913056
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2151
        "start_memory" => integer 6928112
        "stop_time" => float 1411315491.2152
        "stop_memory" => integer 6928672
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2153
        "start_memory" => integer 6933608
        "stop_time" => float 1411315491.2154
        "stop_memory" => integer 6934192
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2164
        "start_memory" => integer 6949232
        "stop_time" => float 1411315491.2165
        "stop_memory" => integer 6949792
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2166
        "start_memory" => integer 6954728
        "stop_time" => float 1411315491.2167
        "stop_memory" => integer 6955312
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2192
        "start_memory" => integer 6970576
        "stop_time" => float 1411315491.2193
        "stop_memory" => integer 6971136
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2194
        "start_memory" => integer 6976048
        "stop_time" => float 1411315491.2195
        "stop_memory" => integer 6976616
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2234
        "start_memory" => integer 7014640
        "stop_time" => float 1411315491.2235
        "stop_memory" => integer 7015192
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2236
        "start_memory" => integer 7019864
        "stop_time" => float 1411315491.2236
        "stop_memory" => integer 7020440
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2248
        "start_memory" => integer 7151504
        "stop_time" => float 1411315491.2248
        "stop_memory" => integer 7152056
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2249
        "start_memory" => integer 7156736
        "stop_time" => float 1411315491.225
        "stop_memory" => integer 7157312
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2263
        "start_memory" => integer 7326480
        "stop_time" => float 1411315491.2263
        "stop_memory" => integer 7327032
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2264
        "start_memory" => integer 7331720
        "stop_time" => float 1411315491.2264
        "stop_memory" => integer 7332280
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.229
        "start_memory" => integer 7387944
        "stop_time" => float 1411315491.229
        "stop_memory" => integer 7388520
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2291
        "start_memory" => integer 7393408
        "stop_time" => float 1411315491.2292
        "stop_memory" => integer 7393976
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2299
        "start_memory" => integer 7434024
        "stop_time" => float 1411315491.2299
        "stop_memory" => integer 7434600
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.23
        "start_memory" => integer 7439552
        "stop_time" => float 1411315491.23
        "stop_memory" => integer 7440144
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2314
        "start_memory" => integer 7466104
        "stop_time" => float 1411315491.2314
        "stop_memory" => integer 7466672
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2315
        "start_memory" => integer 7471544
        "stop_time" => float 1411315491.2315
        "stop_memory" => integer 7472120
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2334
        "start_memory" => integer 7498184
        "stop_time" => float 1411315491.2334
        "stop_memory" => integer 7498760
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2367
        "start_memory" => integer 7509664
        "stop_time" => float 1411315491.2368
        "stop_memory" => integer 7510224
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.237
        "start_memory" => integer 7520096
        "stop_time" => float 1411315491.2371
        "stop_memory" => integer 7520664
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2385
        "start_memory" => integer 7531312
        "stop_time" => float 1411315491.2386
        "stop_memory" => integer 7531864
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2387
        "start_memory" => integer 7536576
        "stop_time" => float 1411315491.2387
        "stop_memory" => integer 7537176
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2393
        "start_memory" => integer 7542640
        "stop_time" => float 1411315491.2394
        "stop_memory" => integer 7543192
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2395
        "start_memory" => integer 7547920
        "stop_time" => float 1411315491.2395
        "stop_memory" => integer 7548496
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2401
        "start_memory" => integer 7553944
        "stop_time" => float 1411315491.2401
        "stop_memory" => integer 7554496
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2402
        "start_memory" => integer 7559248
        "stop_time" => float 1411315491.2403
        "stop_memory" => integer 7559824
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2413
        "start_memory" => integer 7571832
        "stop_time" => float 1411315491.2414
        "stop_memory" => integer 7572368
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2415
        "start_memory" => integer 7577016
        "stop_time" => float 1411315491.2416
        "stop_memory" => integer 7577584
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2421
        "start_memory" => integer 7580648
        "stop_time" => float 1411315491.2422
        "stop_memory" => integer 7581224
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2422
        "start_memory" => integer 7590512
        "stop_time" => float 1411315491.2423
        "stop_memory" => integer 7591048
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2424
        "start_memory" => integer 7597768
        "stop_time" => float 1411315491.2425
        "stop_memory" => integer 7598336
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2446
        "start_memory" => integer 7975760
        "stop_time" => float 1411315491.2447
        "stop_memory" => integer 7976336
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2456
        "start_memory" => integer 8050784
        "stop_time" => float 1411315491.2457
        "stop_memory" => integer 8051368
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2464
        "start_memory" => integer 8096600
        "stop_time" => float 1411315491.2464
        "stop_memory" => integer 8097160
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2465
        "start_memory" => integer 8102024
        "stop_time" => float 1411315491.2466
        "stop_memory" => integer 8102608
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2472
        "start_memory" => integer 8111568
        "stop_time" => float 1411315491.2473
        "stop_memory" => integer 8112112
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.248
        "start_memory" => integer 8143576
        "stop_time" => float 1411315491.248
        "stop_memory" => integer 8144136
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2487
        "start_memory" => integer 8178568
        "stop_time" => float 1411315491.2488
        "stop_memory" => integer 8179144
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2495
        "start_memory" => integer 8211256
        "stop_time" => float 1411315491.2496
        "stop_memory" => integer 8211792
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2498
        "start_memory" => integer 8216448
        "stop_time" => float 1411315491.2499
        "stop_memory" => integer 8217016
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2532
        "start_memory" => integer 8258824
        "stop_time" => float 1411315491.2533
        "stop_memory" => integer 8259416
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2535
        "start_memory" => integer 8264600
        "stop_time" => float 1411315491.2536
        "stop_memory" => integer 8265192
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2574
        "start_memory" => integer 8309296
        "stop_time" => float 1411315491.2574
        "stop_memory" => integer 8309848
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2575
        "start_memory" => integer 8314784
        "stop_time" => float 1411315491.2576
        "stop_memory" => integer 8315368
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2622
        "start_memory" => integer 8417056
        "stop_time" => float 1411315491.2623
        "stop_memory" => integer 8417584
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2625
        "start_memory" => integer 8422240
        "stop_time" => float 1411315491.2626
        "stop_memory" => integer 8422808
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2632
        "start_memory" => integer 8437736
        "stop_time" => float 1411315491.2633
        "stop_memory" => integer 8438288
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2634
        "start_memory" => integer 8442936
        "stop_time" => float 1411315491.2635
        "stop_memory" => integer 8443504
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2644
        "start_memory" => integer 8509936
        "stop_time" => float 1411315491.2645
        "stop_memory" => integer 8510496
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2646
        "start_memory" => integer 8515352
        "stop_time" => float 1411315491.2646
        "stop_memory" => integer 8515928
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2654
        "start_memory" => integer 8539368
        "stop_time" => float 1411315491.2654
        "stop_memory" => integer 8539976
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2655
        "start_memory" => integer 8544896
        "stop_time" => float 1411315491.2656
        "stop_memory" => integer 8545488
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2673
        "start_memory" => integer 8616480
        "stop_time" => float 1411315491.2673
        "stop_memory" => integer 8617016
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2675
        "start_memory" => integer 8621888
        "stop_time" => float 1411315491.2675
        "stop_memory" => integer 8622440
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2683
        "start_memory" => integer 8650144
        "stop_time" => float 1411315491.2684
        "stop_memory" => integer 8650680
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2685
        "start_memory" => integer 8655336
        "stop_time" => float 1411315491.2686
        "stop_memory" => integer 8655904
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2699
        "start_memory" => integer 8777128
        "stop_time" => float 1411315491.27
        "stop_memory" => integer 8777672
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2701
        "start_memory" => integer 8782344
        "stop_time" => float 1411315491.2701
        "stop_memory" => integer 8782912
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2785
        "start_memory" => integer 8814296
        "stop_time" => float 1411315491.2786
        "stop_memory" => integer 8814840
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2789
        "start_memory" => integer 8819488
        "stop_time" => float 1411315491.279
        "stop_memory" => integer 8820056
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2806
        "start_memory" => integer 8920384
        "stop_time" => float 1411315491.2807
        "stop_memory" => integer 8920944
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2808
        "start_memory" => integer 8925656
        "stop_time" => float 1411315491.2808
        "stop_memory" => integer 8926232
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2821
        "start_memory" => integer 9034000
        "stop_time" => float 1411315491.2822
        "stop_memory" => integer 9034568
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2822
        "start_memory" => integer 9039488
        "stop_time" => float 1411315491.2823
        "stop_memory" => integer 9040072
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2833
        "start_memory" => integer 9061264
        "stop_time" => float 1411315491.2834
        "stop_memory" => integer 9061840
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2837
        "start_memory" => integer 9026304
        "stop_time" => float 1411315491.2838
        "stop_memory" => integer 9028240
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2845
        "start_memory" => integer 9098960
        "stop_time" => float 1411315491.2845
        "stop_memory" => integer 9100688
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1411315491.2845
        "start_memory" => integer 9100448
        "stop_time" => float 1411315491.2846
        "stop_memory" => integer 9102176
    )
)

Methods

public static application( ) (defined in Kohana_Profiler)

Gets the total application run time and memory usage. Caches the result so that it can be compared between requests.

list($time, $memory) = Profiler::application();

Tags

Return Values

  • array - Execution time, memory

Source Code

public static function application()
{
	// Load the stats from cache, which is valid for 1 day
	$stats = Kohana::cache('profiler_application_stats', NULL, 3600 * 24);

	if ( ! is_array($stats) OR $stats['count'] > Profiler::$rollover)
	{
		// Initialize the stats array
		$stats = array(
			'min'   => array(
				'time'   => NULL,
				'memory' => NULL),
			'max'   => array(
				'time'   => NULL,
				'memory' => NULL),
			'total' => array(
				'time'   => NULL,
				'memory' => NULL),
			'count' => 0);
	}

	// Get the application run time
	$time = microtime(TRUE) - KOHANA_START_TIME;

	// Get the total memory usage
	$memory = memory_get_usage() - KOHANA_START_MEMORY;

	// Calculate max time
	if ($stats['max']['time'] === NULL OR $time > $stats['max']['time'])
	{
		$stats['max']['time'] = $time;
	}

	// Calculate min time
	if ($stats['min']['time'] === NULL OR $time < $stats['min']['time'])
	{
		$stats['min']['time'] = $time;
	}

	// Add to total time
	$stats['total']['time'] += $time;

	// Calculate max memory
	if ($stats['max']['memory'] === NULL OR $memory > $stats['max']['memory'])
	{
		$stats['max']['memory'] = $memory;
	}

	// Calculate min memory
	if ($stats['min']['memory'] === NULL OR $memory < $stats['min']['memory'])
	{
		$stats['min']['memory'] = $memory;
	}

	// Add to total memory
	$stats['total']['memory'] += $memory;

	// Another mark has been added to the stats
	$stats['count']++;

	// Determine the averages
	$stats['average'] = array(
		'time'   => $stats['total']['time'] / $stats['count'],
		'memory' => $stats['total']['memory'] / $stats['count']);

	// Cache the new stats
	Kohana::cache('profiler_application_stats', $stats);

	// Set the current application execution time and memory
	// Do NOT cache these, they are specific to the current request only
	$stats['current']['time']   = $time;
	$stats['current']['memory'] = $memory;

	// Return the total application run time and memory usage
	return $stats;
}

public static delete( string $token ) (defined in Kohana_Profiler)

Deletes a benchmark. If an error occurs during the benchmark, it is recommended to delete the benchmark to prevent statistics from being adversely affected.

Profiler::delete($token);

Parameters

  • string $token required - $token

Return Values

  • void

Source Code

public static function delete($token)
{
	// Remove the benchmark
	unset(Profiler::$_marks[$token]);
}

public static group_stats( [ mixed $groups = NULL ] ) (defined in Kohana_Profiler)

Gets the min, max, average and total of profiler groups as an array.

$stats = Profiler::group_stats('test');

Parameters

  • mixed $groups = NULL - Single group name string, or array with group names; all groups by default

Tags

Return Values

  • array - Min, max, average, total

Source Code

public static function group_stats($groups = NULL)
{
	// Which groups do we need to calculate stats for?
	$groups = ($groups === NULL)
		? Profiler::groups()
		: array_intersect_key(Profiler::groups(), array_flip( (array) $groups));

	// All statistics
	$stats = array();

	foreach ($groups as $group => $names)
	{
		foreach ($names as $name => $tokens)
		{
			// Store the stats for each subgroup.
			// We only need the values for "total".
			$_stats = Profiler::stats($tokens);
			$stats[$group][$name] = $_stats['total'];
		}
	}

	// Group stats
	$groups = array();

	foreach ($stats as $group => $names)
	{
		// Min and max are unknown by default
		$groups[$group]['min'] = $groups[$group]['max'] = array(
			'time' => NULL,
			'memory' => NULL);

		// Total values are always integers
		$groups[$group]['total'] = array(
			'time' => 0,
			'memory' => 0);

		foreach ($names as $total)
		{
			if ( ! isset($groups[$group]['min']['time']) OR $groups[$group]['min']['time'] > $total['time'])
			{
				// Set the minimum time
				$groups[$group]['min']['time'] = $total['time'];
			}
			if ( ! isset($groups[$group]['min']['memory']) OR $groups[$group]['min']['memory'] > $total['memory'])
			{
				// Set the minimum memory
				$groups[$group]['min']['memory'] = $total['memory'];
			}

			if ( ! isset($groups[$group]['max']['time']) OR $groups[$group]['max']['time'] < $total['time'])
			{
				// Set the maximum time
				$groups[$group]['max']['time'] = $total['time'];
			}
			if ( ! isset($groups[$group]['max']['memory']) OR $groups[$group]['max']['memory'] < $total['memory'])
			{
				// Set the maximum memory
				$groups[$group]['max']['memory'] = $total['memory'];
			}

			// Increase the total time and memory
			$groups[$group]['total']['time']   += $total['time'];
			$groups[$group]['total']['memory'] += $total['memory'];
		}

		// Determine the number of names (subgroups)
		$count = count($names);

		// Determine the averages
		$groups[$group]['average']['time']   = $groups[$group]['total']['time'] / $count;
		$groups[$group]['average']['memory'] = $groups[$group]['total']['memory'] / $count;
	}

	return $groups;
}

public static groups( ) (defined in Kohana_Profiler)

Returns all the benchmark tokens by group and name as an array.

$groups = Profiler::groups();

Return Values

  • array

Source Code

public static function groups()
{
	$groups = array();

	foreach (Profiler::$_marks as $token => $mark)
	{
		// Sort the tokens by the group and name
		$groups[$mark['group']][$mark['name']][] = $token;
	}

	return $groups;
}

public static start( string $group , string $name ) (defined in Kohana_Profiler)

Starts a new benchmark and returns a unique token. The returned token must be used when stopping the benchmark.

$token = Profiler::start('test', 'profiler');

Parameters

  • string $group required - Group name
  • string $name required - Benchmark name

Return Values

  • string

Source Code

public static function start($group, $name)
{
	static $counter = 0;

	// Create a unique token based on the counter
	$token = 'kp/'.base_convert($counter++, 10, 32);

	Profiler::$_marks[$token] = array
	(
		'group' => strtolower($group),
		'name'  => (string) $name,

		// Start the benchmark
		'start_time'   => microtime(TRUE),
		'start_memory' => memory_get_usage(),

		// Set the stop keys without values
		'stop_time'    => FALSE,
		'stop_memory'  => FALSE,
	);

	return $token;
}

public static stats( array $tokens ) (defined in Kohana_Profiler)

Gets the min, max, average and total of a set of tokens as an array.

$stats = Profiler::stats($tokens);

Parameters

  • array $tokens required - Profiler tokens

Tags

Return Values

  • array - Min, max, average, total

Source Code

public static function stats(array $tokens)
{
	// Min and max are unknown by default
	$min = $max = array(
		'time' => NULL,
		'memory' => NULL);

	// Total values are always integers
	$total = array(
		'time' => 0,
		'memory' => 0);

	foreach ($tokens as $token)
	{
		// Get the total time and memory for this benchmark
		list($time, $memory) = Profiler::total($token);

		if ($max['time'] === NULL OR $time > $max['time'])
		{
			// Set the maximum time
			$max['time'] = $time;
		}

		if ($min['time'] === NULL OR $time < $min['time'])
		{
			// Set the minimum time
			$min['time'] = $time;
		}

		// Increase the total time
		$total['time'] += $time;

		if ($max['memory'] === NULL OR $memory > $max['memory'])
		{
			// Set the maximum memory
			$max['memory'] = $memory;
		}

		if ($min['memory'] === NULL OR $memory < $min['memory'])
		{
			// Set the minimum memory
			$min['memory'] = $memory;
		}

		// Increase the total memory
		$total['memory'] += $memory;
	}

	// Determine the number of tokens
	$count = count($tokens);

	// Determine the averages
	$average = array(
		'time' => $total['time'] / $count,
		'memory' => $total['memory'] / $count);

	return array(
		'min' => $min,
		'max' => $max,
		'total' => $total,
		'average' => $average);
}

public static stop( string $token ) (defined in Kohana_Profiler)

Stops a benchmark.

Profiler::stop($token);

Parameters

  • string $token required - $token

Return Values

  • void

Source Code

public static function stop($token)
{
	// Stop the benchmark
	Profiler::$_marks[$token]['stop_time']   = microtime(TRUE);
	Profiler::$_marks[$token]['stop_memory'] = memory_get_usage();
}

public static total( string $token ) (defined in Kohana_Profiler)

Gets the total execution time and memory usage of a benchmark as a list.

list($time, $memory) = Profiler::total($token);

Parameters

  • string $token required - $token

Return Values

  • array - Execution time, memory

Source Code

public static function total($token)
{
	// Import the benchmark data
	$mark = Profiler::$_marks[$token];

	if ($mark['stop_time'] === FALSE)
	{
		// The benchmark has not been stopped yet
		$mark['stop_time']   = microtime(TRUE);
		$mark['stop_memory'] = memory_get_usage();
	}

	return array
	(
		// Total time in seconds
		$mark['stop_time'] - $mark['start_time'],

		// Amount of memory in bytes
		$mark['stop_memory'] - $mark['start_memory'],
	);
}