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 1397780001.2958
        "start_memory" => integer 1984664
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2958
        "start_memory" => integer 1987008
        "stop_time" => float 1397780001.296
        "stop_memory" => integer 1987600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2961
        "start_memory" => integer 1992552
        "stop_time" => float 1397780001.2961
        "stop_memory" => integer 1993144
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2969
        "start_memory" => integer 2118664
        "stop_time" => float 1397780001.297
        "stop_memory" => integer 2119216
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2971
        "start_memory" => integer 2124136
        "stop_time" => float 1397780001.2972
        "stop_memory" => integer 2124720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2973
        "start_memory" => integer 2135808
        "stop_time" => float 1397780001.2975
        "stop_memory" => integer 2136352
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2976
        "start_memory" => integer 2141064
        "stop_time" => float 1397780001.2976
        "stop_memory" => integer 2141640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2978
        "start_memory" => integer 2150920
        "stop_time" => float 1397780001.2978
        "stop_memory" => integer 2151456
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2979
        "start_memory" => integer 2156128
        "stop_time" => float 1397780001.298
        "stop_memory" => integer 2156760
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.299
        "start_memory" => integer 2317688
        "stop_time" => float 1397780001.2991
        "stop_memory" => integer 2318248
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2992
        "start_memory" => integer 2323096
        "stop_time" => float 1397780001.2993
        "stop_memory" => integer 2323672
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2996
        "start_memory" => integer 2337128
        "stop_time" => float 1397780001.2997
        "stop_memory" => integer 2337672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.2998
        "start_memory" => integer 2342320
        "stop_time" => float 1397780001.2998
        "stop_memory" => integer 2342888
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3002
        "start_memory" => integer 2397720
        "stop_time" => float 1397780001.3003
        "stop_memory" => integer 2398312
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3003
        "start_memory" => integer 2399472
        "stop_time" => float 1397780001.3004
        "stop_memory" => integer 2400048
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3006
        "start_memory" => integer 2404920
        "stop_time" => float 1397780001.3006
        "stop_memory" => integer 2405496
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3011
        "start_memory" => integer 2470936
        "stop_time" => float 1397780001.3012
        "stop_memory" => integer 2471552
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3012
        "start_memory" => integer 2472336
        "stop_time" => float 1397780001.3012
        "stop_memory" => integer 2472912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3052
        "start_memory" => integer 3141592
        "stop_time" => float 1397780001.3054
        "stop_memory" => integer 3142120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3056
        "start_memory" => integer 3147816
        "stop_time" => float 1397780001.3057
        "stop_memory" => integer 3148384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3062
        "start_memory" => integer 3181104
        "stop_time" => float 1397780001.3062
        "stop_memory" => integer 3181648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3064
        "start_memory" => integer 3186288
        "stop_time" => float 1397780001.3065
        "stop_memory" => integer 3186856
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3076
        "start_memory" => integer 3349728
        "stop_time" => float 1397780001.3077
        "stop_memory" => integer 3350304
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3079
        "start_memory" => integer 3355184
        "stop_time" => float 1397780001.308
        "stop_memory" => integer 3355768
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3082
        "start_memory" => integer 3358456
        "stop_time" => float 1397780001.3083
        "stop_memory" => integer 3359016
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3085
        "start_memory" => integer 3363888
        "stop_time" => float 1397780001.3086
        "stop_memory" => integer 3364472
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.309
        "start_memory" => integer 3414128
        "stop_time" => float 1397780001.3092
        "stop_memory" => integer 3414672
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3093
        "start_memory" => integer 3419344
        "stop_time" => float 1397780001.3094
        "stop_memory" => integer 3419920
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3101
        "start_memory" => integer 3517960
        "stop_time" => float 1397780001.3102
        "stop_memory" => integer 3518496
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3104
        "start_memory" => integer 3523136
        "stop_time" => float 1397780001.3105
        "stop_memory" => integer 3523704
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.3123
        "start_memory" => integer 3610296
        "stop_time" => float 1397780001.3124
        "stop_memory" => integer 3610888
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4076
        "start_memory" => integer 3653008
        "stop_time" => float 1397780001.4076
        "stop_memory" => integer 3653576
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4079
        "start_memory" => integer 3658240
        "stop_time" => float 1397780001.4079
        "stop_memory" => integer 3659072
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4088
        "start_memory" => integer 3699672
        "stop_time" => float 1397780001.4089
        "stop_memory" => integer 3700224
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.409
        "start_memory" => integer 3705056
        "stop_time" => float 1397780001.409
        "stop_memory" => integer 3705632
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4096
        "start_memory" => integer 3729336
        "stop_time" => float 1397780001.4097
        "stop_memory" => integer 3729888
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4098
        "start_memory" => integer 3734568
        "stop_time" => float 1397780001.4099
        "stop_memory" => integer 3735144
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4107
        "start_memory" => integer 3802312
        "stop_time" => float 1397780001.4108
        "stop_memory" => integer 3802896
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4109
        "start_memory" => integer 3820888
        "stop_time" => float 1397780001.411
        "stop_memory" => integer 3821448
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4111
        "start_memory" => integer 3826312
        "stop_time" => float 1397780001.4112
        "stop_memory" => integer 3826896
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4119
        "start_memory" => integer 3892040
        "stop_time" => float 1397780001.4119
        "stop_memory" => integer 3892616
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4123
        "start_memory" => integer 3912024
        "stop_time" => float 1397780001.4124
        "stop_memory" => integer 3912600
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4129
        "start_memory" => integer 3960640
        "stop_time" => float 1397780001.4129
        "stop_memory" => integer 3961216
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4132
        "start_memory" => integer 3971872
        "stop_time" => float 1397780001.4132
        "stop_memory" => integer 3972448
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4135
        "start_memory" => integer 3990456
        "stop_time" => float 1397780001.4136
        "stop_memory" => integer 3991032
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4138
        "start_memory" => integer 4000704
        "stop_time" => float 1397780001.4139
        "stop_memory" => integer 4001280
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4142
        "start_memory" => integer 4021384
        "stop_time" => float 1397780001.4142
        "stop_memory" => integer 4021960
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4144
        "start_memory" => integer 4042440
        "stop_time" => float 1397780001.4145
        "stop_memory" => integer 4043032
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4148
        "start_memory" => integer 4056256
        "stop_time" => float 1397780001.4149
        "stop_memory" => integer 4056824
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4152
        "start_memory" => integer 4069032
        "stop_time" => float 1397780001.4152
        "stop_memory" => integer 4069608
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4156
        "start_memory" => integer 4117880
        "stop_time" => float 1397780001.4156
        "stop_memory" => integer 4118440
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4161
        "start_memory" => integer 4156912
        "stop_time" => float 1397780001.4161
        "stop_memory" => integer 4157496
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4164
        "start_memory" => integer 4176896
        "stop_time" => float 1397780001.4164
        "stop_memory" => integer 4177472
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4171
        "start_memory" => integer 4208632
        "stop_time" => float 1397780001.4171
        "stop_memory" => integer 4209208
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4174
        "start_memory" => integer 4227928
        "stop_time" => float 1397780001.4175
        "stop_memory" => integer 4228472
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4176
        "start_memory" => integer 4233144
        "stop_time" => float 1397780001.4177
        "stop_memory" => integer 4233720
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4179
        "start_memory" => integer 4264560
        "stop_time" => float 1397780001.4181
        "stop_memory" => integer 4265096
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4182
        "start_memory" => integer 4269760
        "stop_time" => float 1397780001.4183
        "stop_memory" => integer 4270328
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4216
        "start_memory" => integer 4411896
        "stop_time" => float 1397780001.4217
        "stop_memory" => integer 4412472
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.432
        "start_memory" => integer 4465256
        "stop_time" => float 1397780001.432
        "stop_memory" => integer 4465808
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4322
        "start_memory" => integer 4470640
        "stop_time" => float 1397780001.4322
        "stop_memory" => integer 4471216
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4364
        "start_memory" => integer 4496728
        "stop_time" => float 1397780001.4364
        "stop_memory" => integer 4497312
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4366
        "start_memory" => integer 4502264
        "stop_time" => float 1397780001.4366
        "stop_memory" => integer 4502840
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4406
        "start_memory" => integer 4528528
        "stop_time" => float 1397780001.4406
        "stop_memory" => integer 4529088
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4408
        "start_memory" => integer 4533944
        "stop_time" => float 1397780001.4409
        "stop_memory" => integer 4535024
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4414
        "start_memory" => integer 4623752
        "stop_time" => float 1397780001.4415
        "stop_memory" => integer 4624352
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4483
        "start_memory" => integer 4631272
        "stop_time" => float 1397780001.4483
        "stop_memory" => integer 4631824
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4485
        "start_memory" => integer 4636704
        "stop_time" => float 1397780001.4485
        "stop_memory" => integer 4637288
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4701
        "start_memory" => integer 4694224
        "stop_time" => float 1397780001.4702
        "stop_memory" => integer 4694784
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4704
        "start_memory" => integer 4699704
        "stop_time" => float 1397780001.4704
        "stop_memory" => integer 4700288
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4707
        "start_memory" => integer 4724120
        "stop_time" => float 1397780001.4707
        "stop_memory" => integer 4724696
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.472
        "start_memory" => integer 4733784
        "stop_time" => float 1397780001.472
        "stop_memory" => integer 4734344
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4722
        "start_memory" => integer 4739208
        "stop_time" => float 1397780001.4722
        "stop_memory" => integer 4739792
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4736
        "start_memory" => integer 4819280
        "stop_time" => float 1397780001.4737
        "stop_memory" => integer 4819840
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4738
        "start_memory" => integer 4824752
        "stop_time" => float 1397780001.4739
        "stop_memory" => integer 4825328
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.482
        "start_memory" => integer 4851024
        "stop_time" => float 1397780001.4821
        "stop_memory" => integer 4851584
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4823
        "start_memory" => integer 4856448
        "stop_time" => float 1397780001.4823
        "stop_memory" => integer 4857032
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4837
        "start_memory" => integer 4878416
        "stop_time" => float 1397780001.4838
        "stop_memory" => integer 4878944
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.484
        "start_memory" => integer 4883592
        "stop_time" => float 1397780001.4841
        "stop_memory" => integer 4884160
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4865
        "start_memory" => integer 4895016
        "stop_time" => float 1397780001.4866
        "stop_memory" => integer 4895608
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4868
        "start_memory" => integer 4900496
        "stop_time" => float 1397780001.4869
        "stop_memory" => integer 4901072
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.492
        "start_memory" => integer 4946008
        "stop_time" => float 1397780001.4921
        "stop_memory" => integer 4946584
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.493
        "start_memory" => integer 4957720
        "stop_time" => float 1397780001.4931
        "stop_memory" => integer 4958264
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4932
        "start_memory" => integer 4964160
        "stop_time" => float 1397780001.4933
        "stop_memory" => integer 4964736
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.4986
        "start_memory" => integer 4986192
        "stop_time" => float 1397780001.4986
        "stop_memory" => integer 4986760
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5015
        "start_memory" => integer 4992312
        "stop_time" => float 1397780001.5016
        "stop_memory" => integer 4992880
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5019
        "start_memory" => integer 4997728
        "stop_time" => float 1397780001.5019
        "stop_memory" => integer 4998312
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5052
        "start_memory" => integer 5132072
        "stop_time" => float 1397780001.5053
        "stop_memory" => integer 5132648
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5055
        "start_memory" => integer 5137600
        "stop_time" => float 1397780001.5055
        "stop_memory" => integer 5138192
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5065
        "start_memory" => integer 5153056
        "stop_time" => float 1397780001.5065
        "stop_memory" => integer 5153624
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5067
        "start_memory" => integer 5158584
        "stop_time" => float 1397780001.5067
        "stop_memory" => integer 5159176
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.509
        "start_memory" => integer 5165112
        "stop_time" => float 1397780001.5091
        "stop_memory" => integer 5165664
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5093
        "start_memory" => integer 5170528
        "stop_time" => float 1397780001.5094
        "stop_memory" => integer 5171112
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5114
        "start_memory" => integer 5315712
        "stop_time" => float 1397780001.5114
        "stop_memory" => integer 5316288
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5116
        "start_memory" => integer 5321248
        "stop_time" => float 1397780001.5116
        "stop_memory" => integer 5321840
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5119
        "start_memory" => integer 5342520
        "stop_time" => float 1397780001.5119
        "stop_memory" => integer 5343088
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.512
        "start_memory" => integer 5347976
        "stop_time" => float 1397780001.5121
        "stop_memory" => integer 5348552
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5136
        "start_memory" => integer 5410856
        "stop_time" => float 1397780001.5137
        "stop_memory" => integer 5411416
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5139
        "start_memory" => integer 5416288
        "stop_time" => float 1397780001.5139
        "stop_memory" => integer 5416872
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5152
        "start_memory" => integer 5482376
        "stop_time" => float 1397780001.5152
        "stop_memory" => integer 5482936
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5153
        "start_memory" => integer 5487800
        "stop_time" => float 1397780001.5154
        "stop_memory" => integer 5488384
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5164
        "start_memory" => integer 5531040
        "stop_time" => float 1397780001.5167
        "stop_memory" => integer 5531616
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5169
        "start_memory" => integer 5536584
        "stop_time" => float 1397780001.5169
        "stop_memory" => integer 5537176
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5181
        "start_memory" => integer 5596016
        "stop_time" => float 1397780001.5182
        "stop_memory" => integer 5596600
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5183
        "start_memory" => integer 5601664
        "stop_time" => float 1397780001.5183
        "stop_memory" => integer 5602264
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5185
        "start_memory" => integer 5621936
        "stop_time" => float 1397780001.5185
        "stop_memory" => integer 5622512
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5186
        "start_memory" => integer 5627576
        "stop_time" => float 1397780001.5186
        "stop_memory" => integer 5628176
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5201
        "start_memory" => integer 5692616
        "stop_time" => float 1397780001.5202
        "stop_memory" => integer 5693192
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5204
        "start_memory" => integer 5698256
        "stop_time" => float 1397780001.5204
        "stop_memory" => integer 5698856
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5216
        "start_memory" => integer 5747184
        "stop_time" => float 1397780001.5217
        "stop_memory" => integer 5747760
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5218
        "start_memory" => integer 5752816
        "stop_time" => float 1397780001.5219
        "stop_memory" => integer 5753416
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5232
        "start_memory" => integer 5794720
        "stop_time" => float 1397780001.5232
        "stop_memory" => integer 5795296
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5234
        "start_memory" => integer 5800360
        "stop_time" => float 1397780001.5234
        "stop_memory" => integer 5800960
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5248
        "start_memory" => integer 5913888
        "stop_time" => float 1397780001.5249
        "stop_memory" => integer 5914464
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.525
        "start_memory" => integer 5919528
        "stop_time" => float 1397780001.525
        "stop_memory" => integer 5920128
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.528
        "start_memory" => integer 5968760
        "stop_time" => float 1397780001.5281
        "stop_memory" => integer 5969320
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5284
        "start_memory" => integer 5974288
        "stop_time" => float 1397780001.5285
        "stop_memory" => integer 5974880
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5299
        "start_memory" => integer 5998008
        "stop_time" => float 1397780001.53
        "stop_memory" => integer 5998528
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5301
        "start_memory" => integer 6003168
        "stop_time" => float 1397780001.5302
        "stop_memory" => integer 6003736
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5312
        "start_memory" => integer 6121384
        "stop_time" => float 1397780001.5313
        "stop_memory" => integer 6121928
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5325
        "start_memory" => integer 6122984
        "stop_time" => float 1397780001.5325
        "stop_memory" => integer 6123552
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5327
        "start_memory" => integer 6128224
        "stop_time" => float 1397780001.5327
        "stop_memory" => integer 6128808
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5386
        "start_memory" => integer 6149128
        "stop_time" => float 1397780001.5388
        "stop_memory" => integer 6149664
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.539
        "start_memory" => integer 6154312
        "stop_time" => float 1397780001.5391
        "stop_memory" => integer 6154880
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5428
        "start_memory" => integer 6192336
        "stop_time" => float 1397780001.543
        "stop_memory" => integer 6192880
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5431
        "start_memory" => integer 6197520
        "stop_time" => float 1397780001.5433
        "stop_memory" => integer 6198088
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5443
        "start_memory" => integer 6240504
        "stop_time" => float 1397780001.5444
        "stop_memory" => integer 6241048
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5446
        "start_memory" => integer 6245704
        "stop_time" => float 1397780001.5446
        "stop_memory" => integer 6246272
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5459
        "start_memory" => integer 6290448
        "stop_time" => float 1397780001.546
        "stop_memory" => integer 6292016
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5461
        "start_memory" => integer 6296656
        "stop_time" => float 1397780001.5462
        "stop_memory" => integer 6297224
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5482
        "start_memory" => integer 6372736
        "stop_time" => float 1397780001.5483
        "stop_memory" => integer 6373304
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5484
        "start_memory" => integer 6377960
        "stop_time" => float 1397780001.5485
        "stop_memory" => integer 6378528
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.551
        "start_memory" => integer 6400728
        "stop_time" => float 1397780001.5511
        "stop_memory" => integer 6401272
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5513
        "start_memory" => integer 6405912
        "stop_time" => float 1397780001.5513
        "stop_memory" => integer 6406480
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5533
        "start_memory" => integer 6435952
        "stop_time" => float 1397780001.5534
        "stop_memory" => integer 6436512
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5535
        "start_memory" => integer 6441360
        "stop_time" => float 1397780001.5536
        "stop_memory" => integer 6441936
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5545
        "start_memory" => integer 6462224
        "stop_time" => float 1397780001.5546
        "stop_memory" => integer 6462792
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5547
        "start_memory" => integer 6467728
        "stop_time" => float 1397780001.5549
        "stop_memory" => integer 6468312
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5558
        "start_memory" => integer 6483336
        "stop_time" => float 1397780001.5559
        "stop_memory" => integer 6483896
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5561
        "start_memory" => integer 6488832
        "stop_time" => float 1397780001.5562
        "stop_memory" => integer 6489416
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5571
        "start_memory" => integer 6504464
        "stop_time" => float 1397780001.5572
        "stop_memory" => integer 6505024
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5573
        "start_memory" => integer 6509960
        "stop_time" => float 1397780001.5574
        "stop_memory" => integer 6510544
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5583
        "start_memory" => integer 6525592
        "stop_time" => float 1397780001.5584
        "stop_memory" => integer 6526152
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5585
        "start_memory" => integer 6531088
        "stop_time" => float 1397780001.5585
        "stop_memory" => integer 6531672
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5595
        "start_memory" => integer 6546696
        "stop_time" => float 1397780001.5596
        "stop_memory" => integer 6547256
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5598
        "start_memory" => integer 6552192
        "stop_time" => float 1397780001.5599
        "stop_memory" => integer 6552776
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5609
        "start_memory" => integer 6567800
        "stop_time" => float 1397780001.561
        "stop_memory" => integer 6568360
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5611
        "start_memory" => integer 6573296
        "stop_time" => float 1397780001.5612
        "stop_memory" => integer 6573880
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5621
        "start_memory" => integer 6588936
        "stop_time" => float 1397780001.5621
        "stop_memory" => integer 6589496
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5622
        "start_memory" => integer 6594432
        "stop_time" => float 1397780001.5623
        "stop_memory" => integer 6595016
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5632
        "start_memory" => integer 6610040
        "stop_time" => float 1397780001.5633
        "stop_memory" => integer 6610600
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5635
        "start_memory" => integer 6615536
        "stop_time" => float 1397780001.5636
        "stop_memory" => integer 6616120
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5646
        "start_memory" => integer 6631256
        "stop_time" => float 1397780001.5646
        "stop_memory" => integer 6631816
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5648
        "start_memory" => integer 6636752
        "stop_time" => float 1397780001.5649
        "stop_memory" => integer 6637336
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5658
        "start_memory" => integer 6652368
        "stop_time" => float 1397780001.5659
        "stop_memory" => integer 6652928
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.566
        "start_memory" => integer 6657864
        "stop_time" => float 1397780001.5661
        "stop_memory" => integer 6658448
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5671
        "start_memory" => integer 6673488
        "stop_time" => float 1397780001.5672
        "stop_memory" => integer 6674048
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5673
        "start_memory" => integer 6678984
        "stop_time" => float 1397780001.5674
        "stop_memory" => integer 6679568
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5683
        "start_memory" => integer 6694576
        "stop_time" => float 1397780001.5684
        "stop_memory" => integer 6695136
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5685
        "start_memory" => integer 6700072
        "stop_time" => float 1397780001.5686
        "stop_memory" => integer 6700656
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5696
        "start_memory" => integer 6715680
        "stop_time" => float 1397780001.5697
        "stop_memory" => integer 6716240
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5698
        "start_memory" => integer 6721176
        "stop_time" => float 1397780001.5699
        "stop_memory" => integer 6721760
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.571
        "start_memory" => integer 6736824
        "stop_time" => float 1397780001.5711
        "stop_memory" => integer 6737384
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5712
        "start_memory" => integer 6742320
        "stop_time" => float 1397780001.5713
        "stop_memory" => integer 6742904
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5723
        "start_memory" => integer 6757960
        "stop_time" => float 1397780001.5724
        "stop_memory" => integer 6758520
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5725
        "start_memory" => integer 6763456
        "stop_time" => float 1397780001.5726
        "stop_memory" => integer 6764040
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5737
        "start_memory" => integer 6779096
        "stop_time" => float 1397780001.5738
        "stop_memory" => integer 6779656
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5739
        "start_memory" => integer 6784592
        "stop_time" => float 1397780001.574
        "stop_memory" => integer 6785176
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.575
        "start_memory" => integer 6800352
        "stop_time" => float 1397780001.5751
        "stop_memory" => integer 6800912
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5753
        "start_memory" => integer 6805848
        "stop_time" => float 1397780001.5753
        "stop_memory" => integer 6806432
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5763
        "start_memory" => integer 6821488
        "stop_time" => float 1397780001.5764
        "stop_memory" => integer 6822048
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5766
        "start_memory" => integer 6826984
        "stop_time" => float 1397780001.5767
        "stop_memory" => integer 6827568
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5778
        "start_memory" => integer 6842624
        "stop_time" => float 1397780001.578
        "stop_memory" => integer 6843184
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5781
        "start_memory" => integer 6848120
        "stop_time" => float 1397780001.5782
        "stop_memory" => integer 6848704
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5792
        "start_memory" => integer 6863752
        "stop_time" => float 1397780001.5793
        "stop_memory" => integer 6864312
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5794
        "start_memory" => integer 6869248
        "stop_time" => float 1397780001.5795
        "stop_memory" => integer 6869832
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5805
        "start_memory" => integer 6884856
        "stop_time" => float 1397780001.5806
        "stop_memory" => integer 6885416
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5807
        "start_memory" => integer 6890352
        "stop_time" => float 1397780001.5809
        "stop_memory" => integer 6890936
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5819
        "start_memory" => integer 6905960
        "stop_time" => float 1397780001.582
        "stop_memory" => integer 6906520
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5821
        "start_memory" => integer 6911456
        "stop_time" => float 1397780001.5822
        "stop_memory" => integer 6912040
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5832
        "start_memory" => integer 6927096
        "stop_time" => float 1397780001.5833
        "stop_memory" => integer 6927656
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5835
        "start_memory" => integer 6932592
        "stop_time" => float 1397780001.5836
        "stop_memory" => integer 6933176
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5846
        "start_memory" => integer 6948216
        "stop_time" => float 1397780001.5847
        "stop_memory" => integer 6948776
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5849
        "start_memory" => integer 6953712
        "stop_time" => float 1397780001.5849
        "stop_memory" => integer 6954296
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5874
        "start_memory" => integer 6969560
        "stop_time" => float 1397780001.5875
        "stop_memory" => integer 6970120
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5879
        "start_memory" => integer 6975032
        "stop_time" => float 1397780001.588
        "stop_memory" => integer 6975600
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5946
        "start_memory" => integer 7013640
        "stop_time" => float 1397780001.5948
        "stop_memory" => integer 7014192
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.595
        "start_memory" => integer 7018864
        "stop_time" => float 1397780001.595
        "stop_memory" => integer 7019440
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5972
        "start_memory" => integer 7150504
        "stop_time" => float 1397780001.5973
        "stop_memory" => integer 7151056
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.5974
        "start_memory" => integer 7155736
        "stop_time" => float 1397780001.5976
        "stop_memory" => integer 7156312
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6002
        "start_memory" => integer 7325520
        "stop_time" => float 1397780001.6003
        "stop_memory" => integer 7326072
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6006
        "start_memory" => integer 7330760
        "stop_time" => float 1397780001.6007
        "stop_memory" => integer 7331320
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6051
        "start_memory" => integer 7386984
        "stop_time" => float 1397780001.6052
        "stop_memory" => integer 7387560
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6055
        "start_memory" => integer 7392472
        "stop_time" => float 1397780001.6056
        "stop_memory" => integer 7393040
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6069
        "start_memory" => integer 7433072
        "stop_time" => float 1397780001.607
        "stop_memory" => integer 7433648
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6072
        "start_memory" => integer 7438600
        "stop_time" => float 1397780001.6073
        "stop_memory" => integer 7439192
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6092
        "start_memory" => integer 7465136
        "stop_time" => float 1397780001.6093
        "stop_memory" => integer 7465704
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6095
        "start_memory" => integer 7470576
        "stop_time" => float 1397780001.6095
        "stop_memory" => integer 7471152
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6123
        "start_memory" => integer 7497208
        "stop_time" => float 1397780001.6123
        "stop_memory" => integer 7497784
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6177
        "start_memory" => integer 7508688
        "stop_time" => float 1397780001.6179
        "stop_memory" => integer 7509248
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6183
        "start_memory" => integer 7519112
        "stop_time" => float 1397780001.6184
        "stop_memory" => integer 7519680
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6207
        "start_memory" => integer 7530328
        "stop_time" => float 1397780001.6208
        "stop_memory" => integer 7530880
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.621
        "start_memory" => integer 7535592
        "stop_time" => float 1397780001.6211
        "stop_memory" => integer 7536168
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.622
        "start_memory" => integer 7541648
        "stop_time" => float 1397780001.6221
        "stop_memory" => integer 7542200
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6223
        "start_memory" => integer 7546928
        "stop_time" => float 1397780001.6223
        "stop_memory" => integer 7547504
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6233
        "start_memory" => integer 7552952
        "stop_time" => float 1397780001.6234
        "stop_memory" => integer 7553504
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6236
        "start_memory" => integer 7558256
        "stop_time" => float 1397780001.6237
        "stop_memory" => integer 7558832
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6253
        "start_memory" => integer 7570840
        "stop_time" => float 1397780001.6254
        "stop_memory" => integer 7571376
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6256
        "start_memory" => integer 7576040
        "stop_time" => float 1397780001.6257
        "stop_memory" => integer 7576608
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6266
        "start_memory" => integer 7579656
        "stop_time" => float 1397780001.6267
        "stop_memory" => integer 7580232
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6268
        "start_memory" => integer 7589504
        "stop_time" => float 1397780001.6269
        "stop_memory" => integer 7590040
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6271
        "start_memory" => integer 7596760
        "stop_time" => float 1397780001.6271
        "stop_memory" => integer 7597328
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6303
        "start_memory" => integer 7974720
        "stop_time" => float 1397780001.6304
        "stop_memory" => integer 7975296
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6316
        "start_memory" => integer 8049776
        "stop_time" => float 1397780001.6317
        "stop_memory" => integer 8050360
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6323
        "start_memory" => integer 8095592
        "stop_time" => float 1397780001.6323
        "stop_memory" => integer 8096152
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6324
        "start_memory" => integer 8101016
        "stop_time" => float 1397780001.6325
        "stop_memory" => integer 8101600
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6331
        "start_memory" => integer 8110560
        "stop_time" => float 1397780001.6331
        "stop_memory" => integer 8111104
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6337
        "start_memory" => integer 8142576
        "stop_time" => float 1397780001.6337
        "stop_memory" => integer 8143136
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6343
        "start_memory" => integer 8177544
        "stop_time" => float 1397780001.6344
        "stop_memory" => integer 8178120
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.635
        "start_memory" => integer 8210232
        "stop_time" => float 1397780001.6351
        "stop_memory" => integer 8210768
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6352
        "start_memory" => integer 8215424
        "stop_time" => float 1397780001.6353
        "stop_memory" => integer 8215992
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6383
        "start_memory" => integer 8257800
        "stop_time" => float 1397780001.6383
        "stop_memory" => integer 8258392
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6385
        "start_memory" => integer 8263576
        "stop_time" => float 1397780001.6385
        "stop_memory" => integer 8264168
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6419
        "start_memory" => integer 8308272
        "stop_time" => float 1397780001.642
        "stop_memory" => integer 8308824
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6422
        "start_memory" => integer 8313760
        "stop_time" => float 1397780001.6423
        "stop_memory" => integer 8314344
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.647
        "start_memory" => integer 8416032
        "stop_time" => float 1397780001.6471
        "stop_memory" => integer 8416560
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6472
        "start_memory" => integer 8421216
        "stop_time" => float 1397780001.6473
        "stop_memory" => integer 8421784
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.648
        "start_memory" => integer 8436712
        "stop_time" => float 1397780001.6481
        "stop_memory" => integer 8437264
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6482
        "start_memory" => integer 8441912
        "stop_time" => float 1397780001.6482
        "stop_memory" => integer 8442480
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6491
        "start_memory" => integer 8508912
        "stop_time" => float 1397780001.6492
        "stop_memory" => integer 8509472
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6493
        "start_memory" => integer 8514328
        "stop_time" => float 1397780001.6493
        "stop_memory" => integer 8514904
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6499
        "start_memory" => integer 8538344
        "stop_time" => float 1397780001.65
        "stop_memory" => integer 8538952
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6501
        "start_memory" => integer 8543872
        "stop_time" => float 1397780001.6501
        "stop_memory" => integer 8544464
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6517
        "start_memory" => integer 8615456
        "stop_time" => float 1397780001.6517
        "stop_memory" => integer 8615992
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6519
        "start_memory" => integer 8620864
        "stop_time" => float 1397780001.652
        "stop_memory" => integer 8621416
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6526
        "start_memory" => integer 8649120
        "stop_time" => float 1397780001.6527
        "stop_memory" => integer 8649656
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6528
        "start_memory" => integer 8654312
        "stop_time" => float 1397780001.6528
        "stop_memory" => integer 8654880
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.654
        "start_memory" => integer 8776104
        "stop_time" => float 1397780001.6541
        "stop_memory" => integer 8776648
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6542
        "start_memory" => integer 8781320
        "stop_time" => float 1397780001.6542
        "stop_memory" => integer 8781888
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.66
        "start_memory" => integer 8813272
        "stop_time" => float 1397780001.6602
        "stop_memory" => integer 8813816
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6604
        "start_memory" => integer 8818464
        "stop_time" => float 1397780001.6604
        "stop_memory" => integer 8819032
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6615
        "start_memory" => integer 8919320
        "stop_time" => float 1397780001.6617
        "stop_memory" => integer 8919880
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6618
        "start_memory" => integer 8924592
        "stop_time" => float 1397780001.6619
        "stop_memory" => integer 8925168
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6632
        "start_memory" => integer 9032912
        "stop_time" => float 1397780001.6632
        "stop_memory" => integer 9033480
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6633
        "start_memory" => integer 9038400
        "stop_time" => float 1397780001.6634
        "stop_memory" => integer 9038984
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6647
        "start_memory" => integer 9060168
        "stop_time" => float 1397780001.6647
        "stop_memory" => integer 9060744
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6653
        "start_memory" => integer 9025248
        "stop_time" => float 1397780001.6653
        "stop_memory" => integer 9027184
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6663
        "start_memory" => integer 9097904
        "stop_time" => float 1397780001.6664
        "stop_memory" => integer 9099632
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397780001.6664
        "start_memory" => integer 9099392
        "stop_time" => float 1397780001.6665
        "stop_memory" => integer 9101120
    )
)

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