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 1413827729.3892
        "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 1413827729.3892
        "start_memory" => integer 1987656
        "stop_time" => float 1413827729.3893
        "stop_memory" => integer 1988248
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3895
        "start_memory" => integer 1993200
        "stop_time" => float 1413827729.3896
        "stop_memory" => integer 1993792
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3905
        "start_memory" => integer 2119312
        "stop_time" => float 1413827729.3907
        "stop_memory" => integer 2119864
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3908
        "start_memory" => integer 2124784
        "stop_time" => float 1413827729.3909
        "stop_memory" => integer 2125368
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3911
        "start_memory" => integer 2136456
        "stop_time" => float 1413827729.3912
        "stop_memory" => integer 2137000
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3913
        "start_memory" => integer 2141712
        "stop_time" => float 1413827729.3914
        "stop_memory" => integer 2142288
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3917
        "start_memory" => integer 2151568
        "stop_time" => float 1413827729.3917
        "stop_memory" => integer 2152128
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3919
        "start_memory" => integer 2156800
        "stop_time" => float 1413827729.392
        "stop_memory" => integer 2157408
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3934
        "start_memory" => integer 2318336
        "stop_time" => float 1413827729.3935
        "stop_memory" => integer 2318896
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3937
        "start_memory" => integer 2323744
        "stop_time" => float 1413827729.3937
        "stop_memory" => integer 2324320
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3939
        "start_memory" => integer 2337776
        "stop_time" => float 1413827729.394
        "stop_memory" => integer 2338320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3941
        "start_memory" => integer 2342968
        "stop_time" => float 1413827729.3941
        "stop_memory" => integer 2343536
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3947
        "start_memory" => integer 2398360
        "stop_time" => float 1413827729.3948
        "stop_memory" => integer 2398952
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3948
        "start_memory" => integer 2400112
        "stop_time" => float 1413827729.3948
        "stop_memory" => integer 2400688
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3949
        "start_memory" => integer 2405560
        "stop_time" => float 1413827729.395
        "stop_memory" => integer 2406136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3953
        "start_memory" => integer 2471600
        "stop_time" => float 1413827729.3954
        "stop_memory" => integer 2472216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3954
        "start_memory" => integer 2473000
        "stop_time" => float 1413827729.3955
        "stop_memory" => integer 2473576
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3995
        "start_memory" => integer 3142272
        "stop_time" => float 1413827729.3996
        "stop_memory" => integer 3142800
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.3999
        "start_memory" => integer 3148472
        "stop_time" => float 1413827729.4
        "stop_memory" => integer 3149040
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4003
        "start_memory" => integer 3181792
        "stop_time" => float 1413827729.4004
        "stop_memory" => integer 3182336
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4006
        "start_memory" => integer 3187000
        "stop_time" => float 1413827729.4007
        "stop_memory" => integer 3187568
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4019
        "start_memory" => integer 3350384
        "stop_time" => float 1413827729.4019
        "stop_memory" => integer 3350960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.402
        "start_memory" => integer 3355840
        "stop_time" => float 1413827729.4021
        "stop_memory" => integer 3356424
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4022
        "start_memory" => integer 3359112
        "stop_time" => float 1413827729.4022
        "stop_memory" => integer 3359672
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4023
        "start_memory" => integer 3364544
        "stop_time" => float 1413827729.4024
        "stop_memory" => integer 3365128
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.403
        "start_memory" => integer 3414784
        "stop_time" => float 1413827729.4031
        "stop_memory" => integer 3415328
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4032
        "start_memory" => integer 3420000
        "stop_time" => float 1413827729.4033
        "stop_memory" => integer 3420576
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.404
        "start_memory" => integer 3518616
        "stop_time" => float 1413827729.4041
        "stop_memory" => integer 3519152
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4042
        "start_memory" => integer 3523792
        "stop_time" => float 1413827729.4043
        "stop_memory" => integer 3524360
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4057
        "start_memory" => integer 3610952
        "stop_time" => float 1413827729.4058
        "stop_memory" => integer 3611544
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4827
        "start_memory" => integer 3653688
        "stop_time" => float 1413827729.4827
        "stop_memory" => integer 3654256
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4828
        "start_memory" => integer 3658920
        "stop_time" => float 1413827729.4829
        "stop_memory" => integer 3659752
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4836
        "start_memory" => integer 3700352
        "stop_time" => float 1413827729.4837
        "stop_memory" => integer 3700904
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4837
        "start_memory" => integer 3705736
        "stop_time" => float 1413827729.4838
        "stop_memory" => integer 3706312
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4844
        "start_memory" => integer 3730008
        "stop_time" => float 1413827729.4844
        "stop_memory" => integer 3730560
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4845
        "start_memory" => integer 3735240
        "stop_time" => float 1413827729.4846
        "stop_memory" => integer 3735816
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4853
        "start_memory" => integer 3802976
        "stop_time" => float 1413827729.4853
        "stop_memory" => integer 3803560
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4855
        "start_memory" => integer 3821552
        "stop_time" => float 1413827729.4855
        "stop_memory" => integer 3822112
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4856
        "start_memory" => integer 3826976
        "stop_time" => float 1413827729.4856
        "stop_memory" => integer 3827560
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4861
        "start_memory" => integer 3892688
        "stop_time" => float 1413827729.4861
        "stop_memory" => integer 3893264
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4864
        "start_memory" => integer 3912688
        "stop_time" => float 1413827729.4864
        "stop_memory" => integer 3913264
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4869
        "start_memory" => integer 3961336
        "stop_time" => float 1413827729.4869
        "stop_memory" => integer 3961912
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4871
        "start_memory" => integer 3972576
        "stop_time" => float 1413827729.4872
        "stop_memory" => integer 3973152
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4874
        "start_memory" => integer 3991160
        "stop_time" => float 1413827729.4874
        "stop_memory" => integer 3991736
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4876
        "start_memory" => integer 4001432
        "stop_time" => float 1413827729.4877
        "stop_memory" => integer 4002008
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.488
        "start_memory" => integer 4022112
        "stop_time" => float 1413827729.488
        "stop_memory" => integer 4022688
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4884
        "start_memory" => integer 4043192
        "stop_time" => float 1413827729.4884
        "stop_memory" => integer 4043784
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4886
        "start_memory" => integer 4057008
        "stop_time" => float 1413827729.4887
        "stop_memory" => integer 4057576
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4889
        "start_memory" => integer 4069792
        "stop_time" => float 1413827729.4889
        "stop_memory" => integer 4070368
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4894
        "start_memory" => integer 4118656
        "stop_time" => float 1413827729.4894
        "stop_memory" => integer 4119216
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4898
        "start_memory" => integer 4157688
        "stop_time" => float 1413827729.4899
        "stop_memory" => integer 4158272
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4902
        "start_memory" => integer 4177672
        "stop_time" => float 1413827729.4902
        "stop_memory" => integer 4178248
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4905
        "start_memory" => integer 4209408
        "stop_time" => float 1413827729.4906
        "stop_memory" => integer 4209984
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4909
        "start_memory" => integer 4228696
        "stop_time" => float 1413827729.4909
        "stop_memory" => integer 4229240
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.491
        "start_memory" => integer 4233912
        "stop_time" => float 1413827729.4911
        "stop_memory" => integer 4234488
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4913
        "start_memory" => integer 4265352
        "stop_time" => float 1413827729.4914
        "stop_memory" => integer 4265888
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.4914
        "start_memory" => integer 4270552
        "stop_time" => float 1413827729.4915
        "stop_memory" => integer 4271120
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.494
        "start_memory" => integer 4412688
        "stop_time" => float 1413827729.4941
        "stop_memory" => integer 4413264
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5021
        "start_memory" => integer 4466064
        "stop_time" => float 1413827729.5022
        "stop_memory" => integer 4466616
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5023
        "start_memory" => integer 4471448
        "stop_time" => float 1413827729.5023
        "stop_memory" => integer 4472024
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5069
        "start_memory" => integer 4497536
        "stop_time" => float 1413827729.507
        "stop_memory" => integer 4498120
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5071
        "start_memory" => integer 4503072
        "stop_time" => float 1413827729.5071
        "stop_memory" => integer 4503648
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5124
        "start_memory" => integer 4529264
        "stop_time" => float 1413827729.5124
        "stop_memory" => integer 4529824
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5126
        "start_memory" => integer 4534680
        "stop_time" => float 1413827729.5126
        "stop_memory" => integer 4535760
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5133
        "start_memory" => integer 4624480
        "stop_time" => float 1413827729.5133
        "stop_memory" => integer 4625080
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5187
        "start_memory" => integer 4632000
        "stop_time" => float 1413827729.5188
        "stop_memory" => integer 4632552
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5188
        "start_memory" => integer 4637432
        "stop_time" => float 1413827729.5189
        "stop_memory" => integer 4638016
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5333
        "start_memory" => integer 4694888
        "stop_time" => float 1413827729.5333
        "stop_memory" => integer 4695448
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5334
        "start_memory" => integer 4700368
        "stop_time" => float 1413827729.5334
        "stop_memory" => integer 4700952
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5337
        "start_memory" => integer 4724800
        "stop_time" => float 1413827729.5337
        "stop_memory" => integer 4725376
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5344
        "start_memory" => integer 4734464
        "stop_time" => float 1413827729.5344
        "stop_memory" => integer 4735024
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5345
        "start_memory" => integer 4739888
        "stop_time" => float 1413827729.5345
        "stop_memory" => integer 4740472
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5356
        "start_memory" => integer 4819976
        "stop_time" => float 1413827729.5356
        "stop_memory" => integer 4820560
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5357
        "start_memory" => integer 4825440
        "stop_time" => float 1413827729.5357
        "stop_memory" => integer 4826024
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5413
        "start_memory" => integer 4851744
        "stop_time" => float 1413827729.5413
        "stop_memory" => integer 4852304
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5414
        "start_memory" => integer 4857168
        "stop_time" => float 1413827729.5415
        "stop_memory" => integer 4857752
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5423
        "start_memory" => integer 4879168
        "stop_time" => float 1413827729.5423
        "stop_memory" => integer 4879696
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5424
        "start_memory" => integer 4884344
        "stop_time" => float 1413827729.5425
        "stop_memory" => integer 4884912
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5443
        "start_memory" => integer 4895768
        "stop_time" => float 1413827729.5443
        "stop_memory" => integer 4896360
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5444
        "start_memory" => integer 4901248
        "stop_time" => float 1413827729.5444
        "stop_memory" => integer 4901824
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5478
        "start_memory" => integer 4946784
        "stop_time" => float 1413827729.5478
        "stop_memory" => integer 4947360
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5485
        "start_memory" => integer 4958496
        "stop_time" => float 1413827729.5486
        "stop_memory" => integer 4959040
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5488
        "start_memory" => integer 4964936
        "stop_time" => float 1413827729.5488
        "stop_memory" => integer 4965512
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.553
        "start_memory" => integer 4986968
        "stop_time" => float 1413827729.553
        "stop_memory" => integer 4987552
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5551
        "start_memory" => integer 4993104
        "stop_time" => float 1413827729.5551
        "stop_memory" => integer 4993672
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5552
        "start_memory" => integer 4998520
        "stop_time" => float 1413827729.5553
        "stop_memory" => integer 4999104
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5579
        "start_memory" => integer 5132888
        "stop_time" => float 1413827729.5579
        "stop_memory" => integer 5133464
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.558
        "start_memory" => integer 5138416
        "stop_time" => float 1413827729.5581
        "stop_memory" => integer 5139008
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5587
        "start_memory" => integer 5153856
        "stop_time" => float 1413827729.5588
        "stop_memory" => integer 5154424
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5589
        "start_memory" => integer 5159384
        "stop_time" => float 1413827729.5589
        "stop_memory" => integer 5159976
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5603
        "start_memory" => integer 5165912
        "stop_time" => float 1413827729.5604
        "stop_memory" => integer 5166464
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5605
        "start_memory" => integer 5171328
        "stop_time" => float 1413827729.5606
        "stop_memory" => integer 5171912
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5621
        "start_memory" => integer 5316512
        "stop_time" => float 1413827729.5622
        "stop_memory" => integer 5317088
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5623
        "start_memory" => integer 5322048
        "stop_time" => float 1413827729.5623
        "stop_memory" => integer 5322640
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5627
        "start_memory" => integer 5343320
        "stop_time" => float 1413827729.5628
        "stop_memory" => integer 5343888
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5629
        "start_memory" => integer 5348776
        "stop_time" => float 1413827729.5629
        "stop_memory" => integer 5349352
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.564
        "start_memory" => integer 5411656
        "stop_time" => float 1413827729.564
        "stop_memory" => integer 5412216
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5641
        "start_memory" => integer 5417088
        "stop_time" => float 1413827729.5641
        "stop_memory" => integer 5417672
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5649
        "start_memory" => integer 5483176
        "stop_time" => float 1413827729.5649
        "stop_memory" => integer 5483736
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.565
        "start_memory" => integer 5488600
        "stop_time" => float 1413827729.565
        "stop_memory" => integer 5489184
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5661
        "start_memory" => integer 5531840
        "stop_time" => float 1413827729.5661
        "stop_memory" => integer 5532416
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5662
        "start_memory" => integer 5537384
        "stop_time" => float 1413827729.5663
        "stop_memory" => integer 5537976
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5674
        "start_memory" => integer 5596816
        "stop_time" => float 1413827729.5675
        "stop_memory" => integer 5597400
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5676
        "start_memory" => integer 5602464
        "stop_time" => float 1413827729.5677
        "stop_memory" => integer 5603064
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5678
        "start_memory" => integer 5622736
        "stop_time" => float 1413827729.5679
        "stop_memory" => integer 5623312
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.568
        "start_memory" => integer 5628376
        "stop_time" => float 1413827729.568
        "stop_memory" => integer 5628976
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5689
        "start_memory" => integer 5693416
        "stop_time" => float 1413827729.5689
        "stop_memory" => integer 5693992
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5691
        "start_memory" => integer 5699056
        "stop_time" => float 1413827729.5691
        "stop_memory" => integer 5699656
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.57
        "start_memory" => integer 5747984
        "stop_time" => float 1413827729.5701
        "stop_memory" => integer 5748560
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5702
        "start_memory" => integer 5753616
        "stop_time" => float 1413827729.5702
        "stop_memory" => integer 5754216
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5711
        "start_memory" => integer 5795520
        "stop_time" => float 1413827729.5712
        "stop_memory" => integer 5796096
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5712
        "start_memory" => integer 5801160
        "stop_time" => float 1413827729.5713
        "stop_memory" => integer 5801760
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5724
        "start_memory" => integer 5914688
        "stop_time" => float 1413827729.5725
        "stop_memory" => integer 5915264
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5726
        "start_memory" => integer 5920328
        "stop_time" => float 1413827729.5726
        "stop_memory" => integer 5920928
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5749
        "start_memory" => integer 5969576
        "stop_time" => float 1413827729.5749
        "stop_memory" => integer 5970136
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5751
        "start_memory" => integer 5975104
        "stop_time" => float 1413827729.5751
        "stop_memory" => integer 5975696
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5759
        "start_memory" => integer 5998824
        "stop_time" => float 1413827729.576
        "stop_memory" => integer 5999344
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5761
        "start_memory" => integer 6003984
        "stop_time" => float 1413827729.5762
        "stop_memory" => integer 6004552
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.577
        "start_memory" => integer 6122184
        "stop_time" => float 1413827729.5771
        "stop_memory" => integer 6122728
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5775
        "start_memory" => integer 6123784
        "stop_time" => float 1413827729.5776
        "stop_memory" => integer 6124352
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5777
        "start_memory" => integer 6129024
        "stop_time" => float 1413827729.5778
        "stop_memory" => integer 6129608
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5821
        "start_memory" => integer 6149928
        "stop_time" => float 1413827729.5821
        "stop_memory" => integer 6150464
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5822
        "start_memory" => integer 6155112
        "stop_time" => float 1413827729.5823
        "stop_memory" => integer 6155680
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5849
        "start_memory" => integer 6193128
        "stop_time" => float 1413827729.585
        "stop_memory" => integer 6193672
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5852
        "start_memory" => integer 6198312
        "stop_time" => float 1413827729.5853
        "stop_memory" => integer 6198880
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5861
        "start_memory" => integer 6241320
        "stop_time" => float 1413827729.5861
        "stop_memory" => integer 6241864
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5862
        "start_memory" => integer 6246528
        "stop_time" => float 1413827729.5862
        "stop_memory" => integer 6247096
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5869
        "start_memory" => integer 6291296
        "stop_time" => float 1413827729.5869
        "stop_memory" => integer 6292864
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5871
        "start_memory" => integer 6297504
        "stop_time" => float 1413827729.5871
        "stop_memory" => integer 6298072
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5886
        "start_memory" => integer 6373576
        "stop_time" => float 1413827729.5886
        "stop_memory" => integer 6374120
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5887
        "start_memory" => integer 6378784
        "stop_time" => float 1413827729.5888
        "stop_memory" => integer 6379352
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5916
        "start_memory" => integer 6401544
        "stop_time" => float 1413827729.5916
        "stop_memory" => integer 6402088
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5918
        "start_memory" => integer 6406728
        "stop_time" => float 1413827729.5919
        "stop_memory" => integer 6407296
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5938
        "start_memory" => integer 6436776
        "stop_time" => float 1413827729.5939
        "stop_memory" => integer 6437336
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.594
        "start_memory" => integer 6442184
        "stop_time" => float 1413827729.5941
        "stop_memory" => integer 6442760
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5951
        "start_memory" => integer 6463056
        "stop_time" => float 1413827729.5952
        "stop_memory" => integer 6463624
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5954
        "start_memory" => integer 6468560
        "stop_time" => float 1413827729.5954
        "stop_memory" => integer 6469144
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5963
        "start_memory" => integer 6484168
        "stop_time" => float 1413827729.5963
        "stop_memory" => integer 6484728
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5964
        "start_memory" => integer 6489664
        "stop_time" => float 1413827729.5965
        "stop_memory" => integer 6490248
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5974
        "start_memory" => integer 6505296
        "stop_time" => float 1413827729.5975
        "stop_memory" => integer 6505856
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5976
        "start_memory" => integer 6510792
        "stop_time" => float 1413827729.5977
        "stop_memory" => integer 6511376
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5988
        "start_memory" => integer 6526424
        "stop_time" => float 1413827729.5989
        "stop_memory" => integer 6526984
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.5991
        "start_memory" => integer 6531920
        "stop_time" => float 1413827729.5991
        "stop_memory" => integer 6532504
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6001
        "start_memory" => integer 6547528
        "stop_time" => float 1413827729.6002
        "stop_memory" => integer 6548088
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6003
        "start_memory" => integer 6553024
        "stop_time" => float 1413827729.6004
        "stop_memory" => integer 6553608
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6013
        "start_memory" => integer 6568632
        "stop_time" => float 1413827729.6014
        "stop_memory" => integer 6569192
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6016
        "start_memory" => integer 6574128
        "stop_time" => float 1413827729.6016
        "stop_memory" => integer 6574712
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6026
        "start_memory" => integer 6589768
        "stop_time" => float 1413827729.6027
        "stop_memory" => integer 6590328
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6028
        "start_memory" => integer 6595264
        "stop_time" => float 1413827729.6031
        "stop_memory" => integer 6595848
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6042
        "start_memory" => integer 6610872
        "stop_time" => float 1413827729.6043
        "stop_memory" => integer 6611432
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6044
        "start_memory" => integer 6616368
        "stop_time" => float 1413827729.6045
        "stop_memory" => integer 6616952
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6055
        "start_memory" => integer 6632088
        "stop_time" => float 1413827729.6055
        "stop_memory" => integer 6632648
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6057
        "start_memory" => integer 6637584
        "stop_time" => float 1413827729.6057
        "stop_memory" => integer 6638168
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6065
        "start_memory" => integer 6653200
        "stop_time" => float 1413827729.6066
        "stop_memory" => integer 6653760
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6067
        "start_memory" => integer 6658696
        "stop_time" => float 1413827729.6068
        "stop_memory" => integer 6659280
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6077
        "start_memory" => integer 6674320
        "stop_time" => float 1413827729.6077
        "stop_memory" => integer 6674880
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6078
        "start_memory" => integer 6679816
        "stop_time" => float 1413827729.6079
        "stop_memory" => integer 6680400
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6086
        "start_memory" => integer 6695408
        "stop_time" => float 1413827729.6087
        "stop_memory" => integer 6695968
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6089
        "start_memory" => integer 6700904
        "stop_time" => float 1413827729.6089
        "stop_memory" => integer 6701488
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6097
        "start_memory" => integer 6716512
        "stop_time" => float 1413827729.6097
        "stop_memory" => integer 6717072
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6098
        "start_memory" => integer 6722008
        "stop_time" => float 1413827729.61
        "stop_memory" => integer 6722592
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6107
        "start_memory" => integer 6737640
        "stop_time" => float 1413827729.6108
        "stop_memory" => integer 6738200
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6109
        "start_memory" => integer 6743136
        "stop_time" => float 1413827729.611
        "stop_memory" => integer 6743720
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6116
        "start_memory" => integer 6758792
        "stop_time" => float 1413827729.6117
        "stop_memory" => integer 6759352
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6117
        "start_memory" => integer 6764288
        "stop_time" => float 1413827729.6118
        "stop_memory" => integer 6764872
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6127
        "start_memory" => integer 6779928
        "stop_time" => float 1413827729.6129
        "stop_memory" => integer 6780488
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.613
        "start_memory" => integer 6785424
        "stop_time" => float 1413827729.6131
        "stop_memory" => integer 6786008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6142
        "start_memory" => integer 6801184
        "stop_time" => float 1413827729.6143
        "stop_memory" => integer 6801744
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6144
        "start_memory" => integer 6806680
        "stop_time" => float 1413827729.6145
        "stop_memory" => integer 6807264
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6155
        "start_memory" => integer 6822320
        "stop_time" => float 1413827729.6156
        "stop_memory" => integer 6822880
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6158
        "start_memory" => integer 6827816
        "stop_time" => float 1413827729.6158
        "stop_memory" => integer 6828400
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6168
        "start_memory" => integer 6843456
        "stop_time" => float 1413827729.6168
        "stop_memory" => integer 6844016
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6169
        "start_memory" => integer 6848952
        "stop_time" => float 1413827729.6171
        "stop_memory" => integer 6849536
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6178
        "start_memory" => integer 6864584
        "stop_time" => float 1413827729.6178
        "stop_memory" => integer 6865144
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6179
        "start_memory" => integer 6870080
        "stop_time" => float 1413827729.618
        "stop_memory" => integer 6870664
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6187
        "start_memory" => integer 6885688
        "stop_time" => float 1413827729.6188
        "stop_memory" => integer 6886248
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6189
        "start_memory" => integer 6891184
        "stop_time" => float 1413827729.619
        "stop_memory" => integer 6891768
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6198
        "start_memory" => integer 6906792
        "stop_time" => float 1413827729.6199
        "stop_memory" => integer 6907352
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.62
        "start_memory" => integer 6912288
        "stop_time" => float 1413827729.62
        "stop_memory" => integer 6912872
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6207
        "start_memory" => integer 6927928
        "stop_time" => float 1413827729.6208
        "stop_memory" => integer 6928488
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6208
        "start_memory" => integer 6933424
        "stop_time" => float 1413827729.6209
        "stop_memory" => integer 6934008
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6216
        "start_memory" => integer 6949048
        "stop_time" => float 1413827729.6216
        "stop_memory" => integer 6949608
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6217
        "start_memory" => integer 6954544
        "stop_time" => float 1413827729.6218
        "stop_memory" => integer 6955128
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6234
        "start_memory" => integer 6970392
        "stop_time" => float 1413827729.6235
        "stop_memory" => integer 6970952
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6236
        "start_memory" => integer 6975864
        "stop_time" => float 1413827729.6236
        "stop_memory" => integer 6976432
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6266
        "start_memory" => integer 7014464
        "stop_time" => float 1413827729.6267
        "stop_memory" => integer 7015016
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6269
        "start_memory" => integer 7019688
        "stop_time" => float 1413827729.6269
        "stop_memory" => integer 7020264
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6283
        "start_memory" => integer 7151328
        "stop_time" => float 1413827729.6284
        "stop_memory" => integer 7151880
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6284
        "start_memory" => integer 7156560
        "stop_time" => float 1413827729.6285
        "stop_memory" => integer 7157136
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6301
        "start_memory" => integer 7326288
        "stop_time" => float 1413827729.6302
        "stop_memory" => integer 7326840
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6303
        "start_memory" => integer 7331528
        "stop_time" => float 1413827729.6303
        "stop_memory" => integer 7332088
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6327
        "start_memory" => integer 7387752
        "stop_time" => float 1413827729.6327
        "stop_memory" => integer 7388328
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6328
        "start_memory" => integer 7393240
        "stop_time" => float 1413827729.6329
        "stop_memory" => integer 7393808
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6336
        "start_memory" => integer 7433848
        "stop_time" => float 1413827729.6336
        "stop_memory" => integer 7434424
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6337
        "start_memory" => integer 7439376
        "stop_time" => float 1413827729.6338
        "stop_memory" => integer 7439968
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6352
        "start_memory" => integer 7465912
        "stop_time" => float 1413827729.6353
        "stop_memory" => integer 7466480
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6354
        "start_memory" => integer 7471352
        "stop_time" => float 1413827729.6354
        "stop_memory" => integer 7471928
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6377
        "start_memory" => integer 7497984
        "stop_time" => float 1413827729.6377
        "stop_memory" => integer 7498560
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6412
        "start_memory" => integer 7509464
        "stop_time" => float 1413827729.6413
        "stop_memory" => integer 7510024
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6418
        "start_memory" => integer 7519896
        "stop_time" => float 1413827729.6418
        "stop_memory" => integer 7520464
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6435
        "start_memory" => integer 7531112
        "stop_time" => float 1413827729.6436
        "stop_memory" => integer 7531664
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6437
        "start_memory" => integer 7536376
        "stop_time" => float 1413827729.6437
        "stop_memory" => integer 7536976
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6444
        "start_memory" => integer 7542440
        "stop_time" => float 1413827729.6444
        "stop_memory" => integer 7542992
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6445
        "start_memory" => integer 7547720
        "stop_time" => float 1413827729.6446
        "stop_memory" => integer 7548296
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6453
        "start_memory" => integer 7553744
        "stop_time" => float 1413827729.6453
        "stop_memory" => integer 7554296
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6454
        "start_memory" => integer 7559048
        "stop_time" => float 1413827729.6454
        "stop_memory" => integer 7559624
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6469
        "start_memory" => integer 7571632
        "stop_time" => float 1413827729.6471
        "stop_memory" => integer 7572168
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6472
        "start_memory" => integer 7576816
        "stop_time" => float 1413827729.6472
        "stop_memory" => integer 7577384
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6478
        "start_memory" => integer 7580448
        "stop_time" => float 1413827729.6478
        "stop_memory" => integer 7581024
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.648
        "start_memory" => integer 7590312
        "stop_time" => float 1413827729.6481
        "stop_memory" => integer 7590848
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6482
        "start_memory" => integer 7597568
        "stop_time" => float 1413827729.6483
        "stop_memory" => integer 7598136
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6508
        "start_memory" => integer 7975552
        "stop_time" => float 1413827729.6509
        "stop_memory" => integer 7976128
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6517
        "start_memory" => integer 8050608
        "stop_time" => float 1413827729.6518
        "stop_memory" => integer 8051192
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6526
        "start_memory" => integer 8096432
        "stop_time" => float 1413827729.6526
        "stop_memory" => integer 8096992
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6528
        "start_memory" => integer 8101856
        "stop_time" => float 1413827729.6528
        "stop_memory" => integer 8102440
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6534
        "start_memory" => integer 8111416
        "stop_time" => float 1413827729.6535
        "stop_memory" => integer 8111960
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6541
        "start_memory" => integer 8143400
        "stop_time" => float 1413827729.6542
        "stop_memory" => integer 8143960
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6547
        "start_memory" => integer 8178368
        "stop_time" => float 1413827729.6547
        "stop_memory" => integer 8178944
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6552
        "start_memory" => integer 8211056
        "stop_time" => float 1413827729.6553
        "stop_memory" => integer 8211592
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6554
        "start_memory" => integer 8216248
        "stop_time" => float 1413827729.6554
        "stop_memory" => integer 8216816
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6577
        "start_memory" => integer 8258624
        "stop_time" => float 1413827729.6578
        "stop_memory" => integer 8259216
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6579
        "start_memory" => integer 8264400
        "stop_time" => float 1413827729.6579
        "stop_memory" => integer 8264992
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6607
        "start_memory" => integer 8309088
        "stop_time" => float 1413827729.6607
        "stop_memory" => integer 8309640
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6609
        "start_memory" => integer 8314576
        "stop_time" => float 1413827729.6609
        "stop_memory" => integer 8315160
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6655
        "start_memory" => integer 8416848
        "stop_time" => float 1413827729.6656
        "stop_memory" => integer 8417376
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6656
        "start_memory" => integer 8422032
        "stop_time" => float 1413827729.6657
        "stop_memory" => integer 8422600
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6665
        "start_memory" => integer 8437528
        "stop_time" => float 1413827729.6666
        "stop_memory" => integer 8438080
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6666
        "start_memory" => integer 8442728
        "stop_time" => float 1413827729.6667
        "stop_memory" => integer 8443296
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6676
        "start_memory" => integer 8509728
        "stop_time" => float 1413827729.6676
        "stop_memory" => integer 8510288
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6677
        "start_memory" => integer 8515144
        "stop_time" => float 1413827729.6678
        "stop_memory" => integer 8515720
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6685
        "start_memory" => integer 8539160
        "stop_time" => float 1413827729.6685
        "stop_memory" => integer 8539768
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6687
        "start_memory" => integer 8544688
        "stop_time" => float 1413827729.6687
        "stop_memory" => integer 8545280
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6701
        "start_memory" => integer 8616248
        "stop_time" => float 1413827729.6702
        "stop_memory" => integer 8616784
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6703
        "start_memory" => integer 8621656
        "stop_time" => float 1413827729.6704
        "stop_memory" => integer 8622208
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6711
        "start_memory" => integer 8649944
        "stop_time" => float 1413827729.6712
        "stop_memory" => integer 8650480
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6713
        "start_memory" => integer 8655136
        "stop_time" => float 1413827729.6714
        "stop_memory" => integer 8655704
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6728
        "start_memory" => integer 8776928
        "stop_time" => float 1413827729.6729
        "stop_memory" => integer 8777472
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.673
        "start_memory" => integer 8782144
        "stop_time" => float 1413827729.6731
        "stop_memory" => integer 8782712
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6788
        "start_memory" => integer 8814096
        "stop_time" => float 1413827729.6788
        "stop_memory" => integer 8814640
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6789
        "start_memory" => integer 8819288
        "stop_time" => float 1413827729.679
        "stop_memory" => integer 8819856
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6798
        "start_memory" => integer 8920144
        "stop_time" => float 1413827729.6799
        "stop_memory" => integer 8920704
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.68
        "start_memory" => integer 8925416
        "stop_time" => float 1413827729.68
        "stop_memory" => integer 8925992
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6812
        "start_memory" => integer 9033736
        "stop_time" => float 1413827729.6813
        "stop_memory" => integer 9034304
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6814
        "start_memory" => integer 9039224
        "stop_time" => float 1413827729.6814
        "stop_memory" => integer 9039808
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6825
        "start_memory" => integer 9060992
        "stop_time" => float 1413827729.6826
        "stop_memory" => integer 9061568
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6829
        "start_memory" => integer 9026048
        "stop_time" => float 1413827729.6831
        "stop_memory" => integer 9027984
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6838
        "start_memory" => integer 9098704
        "stop_time" => float 1413827729.6838
        "stop_memory" => integer 9100432
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413827729.6839
        "start_memory" => integer 9100192
        "stop_time" => float 1413827729.6839
        "stop_memory" => integer 9101920
    )
)

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