Modules

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/kohana/profiler.php on line 14.

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(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1413927208.481
        "start_memory" => integer 1985648
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4811
        "start_memory" => integer 1987992
        "stop_time" => float 1413927208.4811
        "stop_memory" => integer 1988584
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4815
        "start_memory" => integer 1993536
        "stop_time" => float 1413927208.4819
        "stop_memory" => integer 1994128
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4837
        "start_memory" => integer 2119656
        "stop_time" => float 1413927208.4837
        "stop_memory" => integer 2120208
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4838
        "start_memory" => integer 2125128
        "stop_time" => float 1413927208.4839
        "stop_memory" => integer 2125712
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.484
        "start_memory" => integer 2136800
        "stop_time" => float 1413927208.4841
        "stop_memory" => integer 2137344
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4841
        "start_memory" => integer 2142056
        "stop_time" => float 1413927208.4842
        "stop_memory" => integer 2142632
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4845
        "start_memory" => integer 2151880
        "stop_time" => float 1413927208.4845
        "stop_memory" => integer 2152416
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4848
        "start_memory" => integer 2157112
        "stop_time" => float 1413927208.4849
        "stop_memory" => integer 2157744
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4858
        "start_memory" => integer 2318672
        "stop_time" => float 1413927208.4858
        "stop_memory" => integer 2319232
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.486
        "start_memory" => integer 2324080
        "stop_time" => float 1413927208.486
        "stop_memory" => integer 2324656
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4862
        "start_memory" => integer 2338088
        "stop_time" => float 1413927208.4862
        "stop_memory" => integer 2338632
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4863
        "start_memory" => integer 2343280
        "stop_time" => float 1413927208.4864
        "stop_memory" => integer 2343848
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4869
        "start_memory" => integer 2398656
        "stop_time" => float 1413927208.487
        "stop_memory" => integer 2399248
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.487
        "start_memory" => integer 2400408
        "stop_time" => float 1413927208.487
        "stop_memory" => integer 2400984
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4872
        "start_memory" => integer 2405856
        "stop_time" => float 1413927208.4872
        "stop_memory" => integer 2406432
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4875
        "start_memory" => integer 2471872
        "stop_time" => float 1413927208.4876
        "stop_memory" => integer 2472488
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4876
        "start_memory" => integer 2473272
        "stop_time" => float 1413927208.4876
        "stop_memory" => integer 2473848
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4909
        "start_memory" => integer 3142592
        "stop_time" => float 1413927208.491
        "stop_memory" => integer 3143120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4911
        "start_memory" => integer 3148816
        "stop_time" => float 1413927208.4912
        "stop_memory" => integer 3149384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4914
        "start_memory" => integer 3182136
        "stop_time" => float 1413927208.4915
        "stop_memory" => integer 3182680
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4919
        "start_memory" => integer 3187320
        "stop_time" => float 1413927208.492
        "stop_memory" => integer 3187888
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4933
        "start_memory" => integer 3350760
        "stop_time" => float 1413927208.4933
        "stop_memory" => integer 3351336
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4934
        "start_memory" => integer 3356216
        "stop_time" => float 1413927208.4934
        "stop_memory" => integer 3356800
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4935
        "start_memory" => integer 3359488
        "stop_time" => float 1413927208.4936
        "stop_memory" => integer 3360048
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4936
        "start_memory" => integer 3364920
        "stop_time" => float 1413927208.4937
        "stop_memory" => integer 3365504
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4944
        "start_memory" => integer 3415176
        "stop_time" => float 1413927208.4944
        "stop_memory" => integer 3415720
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4945
        "start_memory" => integer 3420392
        "stop_time" => float 1413927208.4945
        "stop_memory" => integer 3420968
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4954
        "start_memory" => integer 3518544
        "stop_time" => float 1413927208.4954
        "stop_memory" => integer 3519080
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4955
        "start_memory" => integer 3523720
        "stop_time" => float 1413927208.4955
        "stop_memory" => integer 3524288
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.4973
        "start_memory" => integer 3611352
        "stop_time" => float 1413927208.4973
        "stop_memory" => integer 3611944
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.595
        "start_memory" => integer 3654064
        "stop_time" => float 1413927208.595
        "stop_memory" => integer 3654632
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.5952
        "start_memory" => integer 3659296
        "stop_time" => float 1413927208.5952
        "stop_memory" => integer 3660128
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.5967
        "start_memory" => integer 3700752
        "stop_time" => float 1413927208.5967
        "stop_memory" => integer 3701304
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.5968
        "start_memory" => integer 3706136
        "stop_time" => float 1413927208.5969
        "stop_memory" => integer 3706712
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.5979
        "start_memory" => integer 3730408
        "stop_time" => float 1413927208.5979
        "stop_memory" => integer 3730960
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.598
        "start_memory" => integer 3735640
        "stop_time" => float 1413927208.598
        "stop_memory" => integer 3736216
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.5989
        "start_memory" => integer 3803392
        "stop_time" => float 1413927208.5989
        "stop_memory" => integer 3803976
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.599
        "start_memory" => integer 3821968
        "stop_time" => float 1413927208.599
        "stop_memory" => integer 3822528
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.5991
        "start_memory" => integer 3827392
        "stop_time" => float 1413927208.5991
        "stop_memory" => integer 3827976
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.5997
        "start_memory" => integer 3893104
        "stop_time" => float 1413927208.5998
        "stop_memory" => integer 3893680
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6
        "start_memory" => integer 3913104
        "stop_time" => float 1413927208.6
        "stop_memory" => integer 3913680
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6006
        "start_memory" => integer 3961728
        "stop_time" => float 1413927208.6006
        "stop_memory" => integer 3962304
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6009
        "start_memory" => integer 3972960
        "stop_time" => float 1413927208.6009
        "stop_memory" => integer 3973536
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6013
        "start_memory" => integer 3991552
        "stop_time" => float 1413927208.6014
        "stop_memory" => integer 3992128
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6016
        "start_memory" => integer 4001824
        "stop_time" => float 1413927208.6016
        "stop_memory" => integer 4002400
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6019
        "start_memory" => integer 4022504
        "stop_time" => float 1413927208.6019
        "stop_memory" => integer 4023080
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6022
        "start_memory" => integer 4043560
        "stop_time" => float 1413927208.6022
        "stop_memory" => integer 4044152
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6026
        "start_memory" => integer 4057392
        "stop_time" => float 1413927208.6026
        "stop_memory" => integer 4057960
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6029
        "start_memory" => integer 4070176
        "stop_time" => float 1413927208.6029
        "stop_memory" => integer 4070752
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6033
        "start_memory" => integer 4119072
        "stop_time" => float 1413927208.6034
        "stop_memory" => integer 4119632
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6037
        "start_memory" => integer 4158104
        "stop_time" => float 1413927208.6038
        "stop_memory" => integer 4158688
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6041
        "start_memory" => integer 4178088
        "stop_time" => float 1413927208.6041
        "stop_memory" => integer 4178664
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6046
        "start_memory" => integer 4209824
        "stop_time" => float 1413927208.6046
        "stop_memory" => integer 4210400
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6049
        "start_memory" => integer 4229112
        "stop_time" => float 1413927208.6049
        "stop_memory" => integer 4229656
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.605
        "start_memory" => integer 4234328
        "stop_time" => float 1413927208.605
        "stop_memory" => integer 4234904
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6052
        "start_memory" => integer 4265768
        "stop_time" => float 1413927208.6054
        "stop_memory" => integer 4266304
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6055
        "start_memory" => integer 4270968
        "stop_time" => float 1413927208.6056
        "stop_memory" => integer 4271536
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6084
        "start_memory" => integer 4413104
        "stop_time" => float 1413927208.6085
        "stop_memory" => integer 4413680
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6176
        "start_memory" => integer 4466464
        "stop_time" => float 1413927208.6176
        "stop_memory" => integer 4467016
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6177
        "start_memory" => integer 4471848
        "stop_time" => float 1413927208.6178
        "stop_memory" => integer 4472424
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6227
        "start_memory" => integer 4497936
        "stop_time" => float 1413927208.6227
        "stop_memory" => integer 4498520
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6228
        "start_memory" => integer 4503456
        "stop_time" => float 1413927208.6228
        "stop_memory" => integer 4504032
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6277
        "start_memory" => integer 4529680
        "stop_time" => float 1413927208.6277
        "stop_memory" => integer 4530240
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6278
        "start_memory" => integer 4535096
        "stop_time" => float 1413927208.6279
        "stop_memory" => integer 4536176
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6284
        "start_memory" => integer 4624968
        "stop_time" => float 1413927208.6284
        "stop_memory" => integer 4625568
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6335
        "start_memory" => integer 4632488
        "stop_time" => float 1413927208.6336
        "stop_memory" => integer 4633040
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6336
        "start_memory" => integer 4637920
        "stop_time" => float 1413927208.6337
        "stop_memory" => integer 4638504
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6511
        "start_memory" => integer 4695384
        "stop_time" => float 1413927208.6511
        "stop_memory" => integer 4695944
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6514
        "start_memory" => integer 4700864
        "stop_time" => float 1413927208.6514
        "stop_memory" => integer 4701448
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6516
        "start_memory" => integer 4725312
        "stop_time" => float 1413927208.6516
        "stop_memory" => integer 4725888
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6525
        "start_memory" => integer 4734976
        "stop_time" => float 1413927208.6525
        "stop_memory" => integer 4735536
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6526
        "start_memory" => integer 4740400
        "stop_time" => float 1413927208.6526
        "stop_memory" => integer 4740984
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6538
        "start_memory" => integer 4820440
        "stop_time" => float 1413927208.6539
        "stop_memory" => integer 4821000
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.654
        "start_memory" => integer 4825880
        "stop_time" => float 1413927208.654
        "stop_memory" => integer 4826464
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.66
        "start_memory" => integer 4852184
        "stop_time" => float 1413927208.66
        "stop_memory" => integer 4852744
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6601
        "start_memory" => integer 4857608
        "stop_time" => float 1413927208.6601
        "stop_memory" => integer 4858192
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6609
        "start_memory" => integer 4879592
        "stop_time" => float 1413927208.661
        "stop_memory" => integer 4880120
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.661
        "start_memory" => integer 4884768
        "stop_time" => float 1413927208.6611
        "stop_memory" => integer 4885336
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6628
        "start_memory" => integer 4896192
        "stop_time" => float 1413927208.6629
        "stop_memory" => integer 4896784
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.663
        "start_memory" => integer 4901672
        "stop_time" => float 1413927208.663
        "stop_memory" => integer 4902248
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6675
        "start_memory" => integer 4947208
        "stop_time" => float 1413927208.6676
        "stop_memory" => integer 4947784
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6684
        "start_memory" => integer 4958920
        "stop_time" => float 1413927208.6685
        "stop_memory" => integer 4959464
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6686
        "start_memory" => integer 4965360
        "stop_time" => float 1413927208.6687
        "stop_memory" => integer 4965936
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6728
        "start_memory" => integer 4987392
        "stop_time" => float 1413927208.6728
        "stop_memory" => integer 4987976
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6746
        "start_memory" => integer 4993544
        "stop_time" => float 1413927208.6746
        "stop_memory" => integer 4994112
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6747
        "start_memory" => integer 4998960
        "stop_time" => float 1413927208.6748
        "stop_memory" => integer 4999544
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6771
        "start_memory" => integer 5133296
        "stop_time" => float 1413927208.6771
        "stop_memory" => integer 5133872
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6773
        "start_memory" => integer 5138824
        "stop_time" => float 1413927208.6773
        "stop_memory" => integer 5139416
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6778
        "start_memory" => integer 5154288
        "stop_time" => float 1413927208.6778
        "stop_memory" => integer 5154856
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6779
        "start_memory" => integer 5159832
        "stop_time" => float 1413927208.6779
        "stop_memory" => integer 5160424
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6793
        "start_memory" => integer 5166344
        "stop_time" => float 1413927208.6793
        "stop_memory" => integer 5166896
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6794
        "start_memory" => integer 5171760
        "stop_time" => float 1413927208.6795
        "stop_memory" => integer 5172344
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6806
        "start_memory" => integer 5316952
        "stop_time" => float 1413927208.6807
        "stop_memory" => integer 5317528
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6808
        "start_memory" => integer 5322488
        "stop_time" => float 1413927208.6808
        "stop_memory" => integer 5323080
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.681
        "start_memory" => integer 5343760
        "stop_time" => float 1413927208.681
        "stop_memory" => integer 5344328
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6811
        "start_memory" => integer 5349216
        "stop_time" => float 1413927208.6812
        "stop_memory" => integer 5349792
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6824
        "start_memory" => integer 5412096
        "stop_time" => float 1413927208.6825
        "stop_memory" => integer 5412656
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6826
        "start_memory" => integer 5417528
        "stop_time" => float 1413927208.6826
        "stop_memory" => integer 5418112
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6833
        "start_memory" => integer 5483616
        "stop_time" => float 1413927208.6834
        "stop_memory" => integer 5484176
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6834
        "start_memory" => integer 5489040
        "stop_time" => float 1413927208.6835
        "stop_memory" => integer 5489624
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6843
        "start_memory" => integer 5532280
        "stop_time" => float 1413927208.6844
        "stop_memory" => integer 5532856
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6844
        "start_memory" => integer 5537824
        "stop_time" => float 1413927208.6845
        "stop_memory" => integer 5538416
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6853
        "start_memory" => integer 5597256
        "stop_time" => float 1413927208.6854
        "stop_memory" => integer 5597840
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6854
        "start_memory" => integer 5602904
        "stop_time" => float 1413927208.6855
        "stop_memory" => integer 5603504
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6856
        "start_memory" => integer 5623176
        "stop_time" => float 1413927208.6856
        "stop_memory" => integer 5623752
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6857
        "start_memory" => integer 5628816
        "stop_time" => float 1413927208.6857
        "stop_memory" => integer 5629416
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6867
        "start_memory" => integer 5693840
        "stop_time" => float 1413927208.6867
        "stop_memory" => integer 5694416
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6868
        "start_memory" => integer 5699480
        "stop_time" => float 1413927208.6868
        "stop_memory" => integer 5700080
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6876
        "start_memory" => integer 5748408
        "stop_time" => float 1413927208.6877
        "stop_memory" => integer 5748984
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6877
        "start_memory" => integer 5754040
        "stop_time" => float 1413927208.6878
        "stop_memory" => integer 5754640
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6887
        "start_memory" => integer 5795944
        "stop_time" => float 1413927208.6887
        "stop_memory" => integer 5796520
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6888
        "start_memory" => integer 5801584
        "stop_time" => float 1413927208.6888
        "stop_memory" => integer 5802184
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6898
        "start_memory" => integer 5915112
        "stop_time" => float 1413927208.6899
        "stop_memory" => integer 5915688
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6899
        "start_memory" => integer 5920752
        "stop_time" => float 1413927208.69
        "stop_memory" => integer 5921352
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.692
        "start_memory" => integer 5969984
        "stop_time" => float 1413927208.692
        "stop_memory" => integer 5970544
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6922
        "start_memory" => integer 5975512
        "stop_time" => float 1413927208.6923
        "stop_memory" => integer 5976104
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6932
        "start_memory" => integer 5999232
        "stop_time" => float 1413927208.6933
        "stop_memory" => integer 5999752
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6934
        "start_memory" => integer 6004392
        "stop_time" => float 1413927208.6935
        "stop_memory" => integer 6004960
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6941
        "start_memory" => integer 6122608
        "stop_time" => float 1413927208.6942
        "stop_memory" => integer 6123152
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6947
        "start_memory" => integer 6124208
        "stop_time" => float 1413927208.6948
        "stop_memory" => integer 6124776
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.6949
        "start_memory" => integer 6129448
        "stop_time" => float 1413927208.6949
        "stop_memory" => integer 6130032
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7
        "start_memory" => integer 6150352
        "stop_time" => float 1413927208.7001
        "stop_memory" => integer 6150888
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7003
        "start_memory" => integer 6155536
        "stop_time" => float 1413927208.7003
        "stop_memory" => integer 6156104
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7033
        "start_memory" => integer 6193608
        "stop_time" => float 1413927208.7034
        "stop_memory" => integer 6194152
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7035
        "start_memory" => integer 6198792
        "stop_time" => float 1413927208.7035
        "stop_memory" => integer 6199360
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7042
        "start_memory" => integer 6241824
        "stop_time" => float 1413927208.7043
        "stop_memory" => integer 6242368
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7044
        "start_memory" => integer 6247008
        "stop_time" => float 1413927208.7044
        "stop_memory" => integer 6247576
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7051
        "start_memory" => integer 6291768
        "stop_time" => float 1413927208.7053
        "stop_memory" => integer 6293336
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7053
        "start_memory" => integer 6297976
        "stop_time" => float 1413927208.7054
        "stop_memory" => integer 6298544
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7066
        "start_memory" => integer 6374056
        "stop_time" => float 1413927208.7067
        "stop_memory" => integer 6374600
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7068
        "start_memory" => integer 6379264
        "stop_time" => float 1413927208.7068
        "stop_memory" => integer 6379832
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7089
        "start_memory" => integer 6402024
        "stop_time" => float 1413927208.709
        "stop_memory" => integer 6402568
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7091
        "start_memory" => integer 6407208
        "stop_time" => float 1413927208.7091
        "stop_memory" => integer 6407776
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7104
        "start_memory" => integer 6437256
        "stop_time" => float 1413927208.7105
        "stop_memory" => integer 6437816
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7105
        "start_memory" => integer 6442664
        "stop_time" => float 1413927208.7106
        "stop_memory" => integer 6443240
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7114
        "start_memory" => integer 6463544
        "stop_time" => float 1413927208.7114
        "stop_memory" => integer 6464112
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7115
        "start_memory" => integer 6469056
        "stop_time" => float 1413927208.7115
        "stop_memory" => integer 6469640
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7124
        "start_memory" => integer 6484688
        "stop_time" => float 1413927208.7124
        "stop_memory" => integer 6485248
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7125
        "start_memory" => integer 6490184
        "stop_time" => float 1413927208.7126
        "stop_memory" => integer 6490768
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7133
        "start_memory" => integer 6505816
        "stop_time" => float 1413927208.7134
        "stop_memory" => integer 6506376
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7135
        "start_memory" => integer 6511312
        "stop_time" => float 1413927208.7135
        "stop_memory" => integer 6511896
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7143
        "start_memory" => integer 6526944
        "stop_time" => float 1413927208.7143
        "stop_memory" => integer 6527504
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7144
        "start_memory" => integer 6532440
        "stop_time" => float 1413927208.7145
        "stop_memory" => integer 6533024
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7155
        "start_memory" => integer 6548048
        "stop_time" => float 1413927208.7155
        "stop_memory" => integer 6548608
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7156
        "start_memory" => integer 6553544
        "stop_time" => float 1413927208.7156
        "stop_memory" => integer 6554128
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7165
        "start_memory" => integer 6569152
        "stop_time" => float 1413927208.7166
        "stop_memory" => integer 6569712
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7167
        "start_memory" => integer 6574648
        "stop_time" => float 1413927208.7167
        "stop_memory" => integer 6575232
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7176
        "start_memory" => integer 6590288
        "stop_time" => float 1413927208.7177
        "stop_memory" => integer 6590848
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7177
        "start_memory" => integer 6595784
        "stop_time" => float 1413927208.7178
        "stop_memory" => integer 6596368
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7185
        "start_memory" => integer 6611392
        "stop_time" => float 1413927208.7185
        "stop_memory" => integer 6611952
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7186
        "start_memory" => integer 6616888
        "stop_time" => float 1413927208.7187
        "stop_memory" => integer 6617472
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7194
        "start_memory" => integer 6632608
        "stop_time" => float 1413927208.7194
        "stop_memory" => integer 6633168
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7195
        "start_memory" => integer 6638104
        "stop_time" => float 1413927208.7196
        "stop_memory" => integer 6638688
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7202
        "start_memory" => integer 6653720
        "stop_time" => float 1413927208.7203
        "stop_memory" => integer 6654280
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7204
        "start_memory" => integer 6659216
        "stop_time" => float 1413927208.7205
        "stop_memory" => integer 6659800
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7212
        "start_memory" => integer 6674840
        "stop_time" => float 1413927208.7213
        "stop_memory" => integer 6675400
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7213
        "start_memory" => integer 6680336
        "stop_time" => float 1413927208.7214
        "stop_memory" => integer 6680920
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.722
        "start_memory" => integer 6695928
        "stop_time" => float 1413927208.7221
        "stop_memory" => integer 6696488
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7222
        "start_memory" => integer 6701424
        "stop_time" => float 1413927208.7223
        "stop_memory" => integer 6702008
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7229
        "start_memory" => integer 6717032
        "stop_time" => float 1413927208.7229
        "stop_memory" => integer 6717592
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.723
        "start_memory" => integer 6722528
        "stop_time" => float 1413927208.7231
        "stop_memory" => integer 6723112
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7236
        "start_memory" => integer 6738168
        "stop_time" => float 1413927208.7237
        "stop_memory" => integer 6738728
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7238
        "start_memory" => integer 6743664
        "stop_time" => float 1413927208.7238
        "stop_memory" => integer 6744248
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7245
        "start_memory" => integer 6759320
        "stop_time" => float 1413927208.7246
        "stop_memory" => integer 6759880
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7246
        "start_memory" => integer 6764816
        "stop_time" => float 1413927208.7247
        "stop_memory" => integer 6765400
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7254
        "start_memory" => integer 6780456
        "stop_time" => float 1413927208.7254
        "stop_memory" => integer 6781016
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7255
        "start_memory" => integer 6785952
        "stop_time" => float 1413927208.7255
        "stop_memory" => integer 6786536
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7262
        "start_memory" => integer 6801712
        "stop_time" => float 1413927208.7262
        "stop_memory" => integer 6802272
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7263
        "start_memory" => integer 6807208
        "stop_time" => float 1413927208.7263
        "stop_memory" => integer 6807792
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.727
        "start_memory" => integer 6822848
        "stop_time" => float 1413927208.7271
        "stop_memory" => integer 6823408
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7272
        "start_memory" => integer 6828344
        "stop_time" => float 1413927208.7272
        "stop_memory" => integer 6828928
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7278
        "start_memory" => integer 6843984
        "stop_time" => float 1413927208.7278
        "stop_memory" => integer 6844544
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7279
        "start_memory" => integer 6849480
        "stop_time" => float 1413927208.728
        "stop_memory" => integer 6850064
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7286
        "start_memory" => integer 6865112
        "stop_time" => float 1413927208.7286
        "stop_memory" => integer 6865672
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7287
        "start_memory" => integer 6870608
        "stop_time" => float 1413927208.7288
        "stop_memory" => integer 6871192
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7294
        "start_memory" => integer 6886216
        "stop_time" => float 1413927208.7294
        "stop_memory" => integer 6886776
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7295
        "start_memory" => integer 6891712
        "stop_time" => float 1413927208.7296
        "stop_memory" => integer 6892296
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7303
        "start_memory" => integer 6907320
        "stop_time" => float 1413927208.7304
        "stop_memory" => integer 6907880
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7305
        "start_memory" => integer 6912816
        "stop_time" => float 1413927208.7306
        "stop_memory" => integer 6913400
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7314
        "start_memory" => integer 6928456
        "stop_time" => float 1413927208.7315
        "stop_memory" => integer 6929016
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7316
        "start_memory" => integer 6933952
        "stop_time" => float 1413927208.7316
        "stop_memory" => integer 6934536
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7323
        "start_memory" => integer 6949576
        "stop_time" => float 1413927208.7323
        "stop_memory" => integer 6950136
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7324
        "start_memory" => integer 6955072
        "stop_time" => float 1413927208.7325
        "stop_memory" => integer 6955656
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7342
        "start_memory" => integer 6970920
        "stop_time" => float 1413927208.7343
        "stop_memory" => integer 6971480
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7344
        "start_memory" => integer 6976392
        "stop_time" => float 1413927208.7344
        "stop_memory" => integer 6976960
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7374
        "start_memory" => integer 7015008
        "stop_time" => float 1413927208.7375
        "stop_memory" => integer 7015560
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7376
        "start_memory" => integer 7020232
        "stop_time" => float 1413927208.7376
        "stop_memory" => integer 7020808
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7389
        "start_memory" => integer 7151880
        "stop_time" => float 1413927208.7389
        "stop_memory" => integer 7152432
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.739
        "start_memory" => integer 7157112
        "stop_time" => float 1413927208.7391
        "stop_memory" => integer 7157688
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7406
        "start_memory" => integer 7326864
        "stop_time" => float 1413927208.7407
        "stop_memory" => integer 7327416
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7407
        "start_memory" => integer 7332104
        "stop_time" => float 1413927208.7408
        "stop_memory" => integer 7332664
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7433
        "start_memory" => integer 7388328
        "stop_time" => float 1413927208.7434
        "stop_memory" => integer 7388904
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7434
        "start_memory" => integer 7393776
        "stop_time" => float 1413927208.7435
        "stop_memory" => integer 7394360
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7443
        "start_memory" => integer 7434408
        "stop_time" => float 1413927208.7443
        "stop_memory" => integer 7434984
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7444
        "start_memory" => integer 7439936
        "stop_time" => float 1413927208.7445
        "stop_memory" => integer 7440528
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7457
        "start_memory" => integer 7466456
        "stop_time" => float 1413927208.7458
        "stop_memory" => integer 7467024
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7458
        "start_memory" => integer 7471896
        "stop_time" => float 1413927208.7459
        "stop_memory" => integer 7472472
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7479
        "start_memory" => integer 7498528
        "stop_time" => float 1413927208.7479
        "stop_memory" => integer 7499104
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7511
        "start_memory" => integer 7510008
        "stop_time" => float 1413927208.7512
        "stop_memory" => integer 7510568
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7515
        "start_memory" => integer 7520432
        "stop_time" => float 1413927208.7515
        "stop_memory" => integer 7521000
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7528
        "start_memory" => integer 7531600
        "stop_time" => float 1413927208.7528
        "stop_memory" => integer 7532152
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7529
        "start_memory" => integer 7536864
        "stop_time" => float 1413927208.7529
        "stop_memory" => integer 7537440
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7537
        "start_memory" => integer 7542920
        "stop_time" => float 1413927208.7538
        "stop_memory" => integer 7543472
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7539
        "start_memory" => integer 7548200
        "stop_time" => float 1413927208.7539
        "stop_memory" => integer 7548776
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7546
        "start_memory" => integer 7554224
        "stop_time" => float 1413927208.7546
        "stop_memory" => integer 7554776
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7547
        "start_memory" => integer 7559528
        "stop_time" => float 1413927208.7548
        "stop_memory" => integer 7560104
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7558
        "start_memory" => integer 7572112
        "stop_time" => float 1413927208.7559
        "stop_memory" => integer 7572648
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.756
        "start_memory" => integer 7577312
        "stop_time" => float 1413927208.756
        "stop_memory" => integer 7577880
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7566
        "start_memory" => integer 7580928
        "stop_time" => float 1413927208.7567
        "stop_memory" => integer 7581504
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7568
        "start_memory" => integer 7590776
        "stop_time" => float 1413927208.7568
        "stop_memory" => integer 7591312
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7569
        "start_memory" => integer 7598032
        "stop_time" => float 1413927208.757
        "stop_memory" => integer 7598600
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.759
        "start_memory" => integer 7976016
        "stop_time" => float 1413927208.759
        "stop_memory" => integer 7976592
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7596
        "start_memory" => integer 8051064
        "stop_time" => float 1413927208.7597
        "stop_memory" => integer 8051648
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7603
        "start_memory" => integer 8096880
        "stop_time" => float 1413927208.7603
        "stop_memory" => integer 8097440
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7604
        "start_memory" => integer 8102304
        "stop_time" => float 1413927208.7604
        "stop_memory" => integer 8102888
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.761
        "start_memory" => integer 8111848
        "stop_time" => float 1413927208.7611
        "stop_memory" => integer 8112392
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7615
        "start_memory" => integer 8143856
        "stop_time" => float 1413927208.7616
        "stop_memory" => integer 8144416
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7621
        "start_memory" => integer 8178848
        "stop_time" => float 1413927208.7621
        "stop_memory" => integer 8179424
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7626
        "start_memory" => integer 8211536
        "stop_time" => float 1413927208.7626
        "stop_memory" => integer 8212072
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7627
        "start_memory" => integer 8216728
        "stop_time" => float 1413927208.7628
        "stop_memory" => integer 8217296
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7652
        "start_memory" => integer 8259104
        "stop_time" => float 1413927208.7652
        "stop_memory" => integer 8259696
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7653
        "start_memory" => integer 8264880
        "stop_time" => float 1413927208.7654
        "stop_memory" => integer 8265472
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7686
        "start_memory" => integer 8309568
        "stop_time" => float 1413927208.7687
        "stop_memory" => integer 8310120
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7688
        "start_memory" => integer 8315056
        "stop_time" => float 1413927208.7689
        "stop_memory" => integer 8315640
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7729
        "start_memory" => integer 8417328
        "stop_time" => float 1413927208.773
        "stop_memory" => integer 8417856
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7732
        "start_memory" => integer 8422512
        "stop_time" => float 1413927208.7732
        "stop_memory" => integer 8423080
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7738
        "start_memory" => integer 8438008
        "stop_time" => float 1413927208.7739
        "stop_memory" => integer 8438560
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7739
        "start_memory" => integer 8443208
        "stop_time" => float 1413927208.7741
        "stop_memory" => integer 8443776
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7749
        "start_memory" => integer 8510208
        "stop_time" => float 1413927208.7749
        "stop_memory" => integer 8510768
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.775
        "start_memory" => integer 8515624
        "stop_time" => float 1413927208.7751
        "stop_memory" => integer 8516200
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7759
        "start_memory" => integer 8539640
        "stop_time" => float 1413927208.776
        "stop_memory" => integer 8540248
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7762
        "start_memory" => integer 8545168
        "stop_time" => float 1413927208.7763
        "stop_memory" => integer 8545760
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.778
        "start_memory" => integer 8616736
        "stop_time" => float 1413927208.7781
        "stop_memory" => integer 8617272
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7783
        "start_memory" => integer 8622144
        "stop_time" => float 1413927208.7784
        "stop_memory" => integer 8622696
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7792
        "start_memory" => integer 8650432
        "stop_time" => float 1413927208.7793
        "stop_memory" => integer 8650968
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7794
        "start_memory" => integer 8655624
        "stop_time" => float 1413927208.7795
        "stop_memory" => integer 8656192
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.781
        "start_memory" => integer 8777416
        "stop_time" => float 1413927208.781
        "stop_memory" => integer 8777960
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7812
        "start_memory" => integer 8782632
        "stop_time" => float 1413927208.7812
        "stop_memory" => integer 8783200
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7893
        "start_memory" => integer 8814584
        "stop_time" => float 1413927208.7893
        "stop_memory" => integer 8815128
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7894
        "start_memory" => integer 8819776
        "stop_time" => float 1413927208.7895
        "stop_memory" => integer 8820344
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7903
        "start_memory" => integer 8920656
        "stop_time" => float 1413927208.7904
        "stop_memory" => integer 8921216
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7905
        "start_memory" => integer 8925928
        "stop_time" => float 1413927208.7905
        "stop_memory" => integer 8926504
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7916
        "start_memory" => integer 9034248
        "stop_time" => float 1413927208.7917
        "stop_memory" => integer 9034816
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7918
        "start_memory" => integer 9039736
        "stop_time" => float 1413927208.7918
        "stop_memory" => integer 9040320
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7928
        "start_memory" => integer 9061504
        "stop_time" => float 1413927208.7929
        "stop_memory" => integer 9062080
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7934
        "start_memory" => integer 9026584
        "stop_time" => float 1413927208.7935
        "stop_memory" => integer 9028520
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7941
        "start_memory" => integer 9099240
        "stop_time" => float 1413927208.7941
        "stop_memory" => integer 9100968
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1413927208.7941
        "start_memory" => integer 9100728
        "stop_time" => float 1413927208.7942
        "stop_memory" => integer 9102456
    )
)

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