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(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1422436289.8209
        "start_memory" => integer 1990264
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8209
        "start_memory" => integer 1992600
        "stop_time" => float 1422436289.8209
        "stop_memory" => integer 1993192
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.821
        "start_memory" => integer 1998144
        "stop_time" => float 1422436289.8211
        "stop_memory" => integer 1998736
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8218
        "start_memory" => integer 2124264
        "stop_time" => float 1422436289.8219
        "stop_memory" => integer 2124816
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8219
        "start_memory" => integer 2129736
        "stop_time" => float 1422436289.822
        "stop_memory" => integer 2130320
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8222
        "start_memory" => integer 2141408
        "stop_time" => float 1422436289.8223
        "stop_memory" => integer 2141952
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8224
        "start_memory" => integer 2146664
        "stop_time" => float 1422436289.8225
        "stop_memory" => integer 2147240
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8227
        "start_memory" => integer 2156496
        "stop_time" => float 1422436289.8228
        "stop_memory" => integer 2157056
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8229
        "start_memory" => integer 2161712
        "stop_time" => float 1422436289.8229
        "stop_memory" => integer 2162320
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8239
        "start_memory" => integer 2323064
        "stop_time" => float 1422436289.824
        "stop_memory" => integer 2323624
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8241
        "start_memory" => integer 2328472
        "stop_time" => float 1422436289.8242
        "stop_memory" => integer 2329048
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8244
        "start_memory" => integer 2342520
        "stop_time" => float 1422436289.8245
        "stop_memory" => integer 2343064
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8245
        "start_memory" => integer 2347704
        "stop_time" => float 1422436289.8246
        "stop_memory" => integer 2348272
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8249
        "start_memory" => integer 2403088
        "stop_time" => float 1422436289.8249
        "stop_memory" => integer 2403680
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8249
        "start_memory" => integer 2404840
        "stop_time" => float 1422436289.825
        "stop_memory" => integer 2405416
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8251
        "start_memory" => integer 2410288
        "stop_time" => float 1422436289.8252
        "stop_memory" => integer 2410864
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8256
        "start_memory" => integer 2476328
        "stop_time" => float 1422436289.8257
        "stop_memory" => integer 2476944
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8257
        "start_memory" => integer 2477728
        "stop_time" => float 1422436289.8259
        "stop_memory" => integer 2478304
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8287
        "start_memory" => integer 3147016
        "stop_time" => float 1422436289.8288
        "stop_memory" => integer 3147544
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.829
        "start_memory" => integer 3153240
        "stop_time" => float 1422436289.8291
        "stop_memory" => integer 3153808
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8294
        "start_memory" => integer 3186528
        "stop_time" => float 1422436289.8295
        "stop_memory" => integer 3187072
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8295
        "start_memory" => integer 3191712
        "stop_time" => float 1422436289.8296
        "stop_memory" => integer 3192280
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8303
        "start_memory" => integer 3353928
        "stop_time" => float 1422436289.8304
        "stop_memory" => integer 3354504
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8305
        "start_memory" => integer 3359384
        "stop_time" => float 1422436289.8305
        "stop_memory" => integer 3359968
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8306
        "start_memory" => integer 3362656
        "stop_time" => float 1422436289.8308
        "stop_memory" => integer 3363216
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8309
        "start_memory" => integer 3368088
        "stop_time" => float 1422436289.831
        "stop_memory" => integer 3368672
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8315
        "start_memory" => integer 3418328
        "stop_time" => float 1422436289.8315
        "stop_memory" => integer 3418872
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8317
        "start_memory" => integer 3423544
        "stop_time" => float 1422436289.8317
        "stop_memory" => integer 3424120
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8325
        "start_memory" => integer 3521720
        "stop_time" => float 1422436289.8326
        "stop_memory" => integer 3522256
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8327
        "start_memory" => integer 3526896
        "stop_time" => float 1422436289.8328
        "stop_memory" => integer 3527464
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.8348
        "start_memory" => integer 3612552
        "stop_time" => float 1422436289.8349
        "stop_memory" => integer 3613144
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9206
        "start_memory" => integer 3655272
        "stop_time" => float 1422436289.9206
        "stop_memory" => integer 3655832
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9208
        "start_memory" => integer 3660496
        "stop_time" => float 1422436289.9211
        "stop_memory" => integer 3661328
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9224
        "start_memory" => integer 3701928
        "stop_time" => float 1422436289.9224
        "stop_memory" => integer 3702480
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9225
        "start_memory" => integer 3707312
        "stop_time" => float 1422436289.9225
        "stop_memory" => integer 3707888
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9232
        "start_memory" => integer 3731584
        "stop_time" => float 1422436289.9232
        "stop_memory" => integer 3732136
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9234
        "start_memory" => integer 3736840
        "stop_time" => float 1422436289.9234
        "stop_memory" => integer 3737416
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9243
        "start_memory" => integer 3804616
        "stop_time" => float 1422436289.9244
        "stop_memory" => integer 3805200
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9245
        "start_memory" => integer 3823192
        "stop_time" => float 1422436289.9245
        "stop_memory" => integer 3823752
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9246
        "start_memory" => integer 3828616
        "stop_time" => float 1422436289.9246
        "stop_memory" => integer 3829200
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9252
        "start_memory" => integer 3894344
        "stop_time" => float 1422436289.9252
        "stop_memory" => integer 3894920
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9255
        "start_memory" => integer 3914344
        "stop_time" => float 1422436289.9255
        "stop_memory" => integer 3914920
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9259
        "start_memory" => integer 3962968
        "stop_time" => float 1422436289.9259
        "stop_memory" => integer 3963544
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9262
        "start_memory" => integer 3974200
        "stop_time" => float 1422436289.9263
        "stop_memory" => integer 3974776
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9265
        "start_memory" => integer 3992792
        "stop_time" => float 1422436289.9265
        "stop_memory" => integer 3993368
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9268
        "start_memory" => integer 4003064
        "stop_time" => float 1422436289.9269
        "stop_memory" => integer 4003640
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9272
        "start_memory" => integer 4023744
        "stop_time" => float 1422436289.9272
        "stop_memory" => integer 4024320
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9275
        "start_memory" => integer 4044800
        "stop_time" => float 1422436289.9275
        "stop_memory" => integer 4045392
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9277
        "start_memory" => integer 4058616
        "stop_time" => float 1422436289.9278
        "stop_memory" => integer 4059184
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.928
        "start_memory" => integer 4071392
        "stop_time" => float 1422436289.928
        "stop_memory" => integer 4071968
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9284
        "start_memory" => integer 4120296
        "stop_time" => float 1422436289.9285
        "stop_memory" => integer 4120856
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9289
        "start_memory" => integer 4159328
        "stop_time" => float 1422436289.9289
        "stop_memory" => integer 4159912
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9292
        "start_memory" => integer 4179344
        "stop_time" => float 1422436289.9292
        "stop_memory" => integer 4179920
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9296
        "start_memory" => integer 4211080
        "stop_time" => float 1422436289.9296
        "stop_memory" => integer 4211656
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9299
        "start_memory" => integer 4230376
        "stop_time" => float 1422436289.9299
        "stop_memory" => integer 4230920
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.93
        "start_memory" => integer 4235592
        "stop_time" => float 1422436289.9301
        "stop_memory" => integer 4236168
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9304
        "start_memory" => integer 4267032
        "stop_time" => float 1422436289.9304
        "stop_memory" => integer 4267568
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9305
        "start_memory" => integer 4272232
        "stop_time" => float 1422436289.9306
        "stop_memory" => integer 4272800
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9333
        "start_memory" => integer 4414368
        "stop_time" => float 1422436289.9334
        "stop_memory" => integer 4414944
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.941
        "start_memory" => integer 4467728
        "stop_time" => float 1422436289.9411
        "stop_memory" => integer 4468280
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9412
        "start_memory" => integer 4473112
        "stop_time" => float 1422436289.9412
        "stop_memory" => integer 4473688
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9456
        "start_memory" => integer 4499200
        "stop_time" => float 1422436289.9456
        "stop_memory" => integer 4499784
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9458
        "start_memory" => integer 4504720
        "stop_time" => float 1422436289.9458
        "stop_memory" => integer 4505296
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9498
        "start_memory" => integer 4530936
        "stop_time" => float 1422436289.9498
        "stop_memory" => integer 4531496
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9499
        "start_memory" => integer 4536352
        "stop_time" => float 1422436289.95
        "stop_memory" => integer 4537432
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9505
        "start_memory" => integer 4626192
        "stop_time" => float 1422436289.9505
        "stop_memory" => integer 4626792
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.955
        "start_memory" => integer 4633712
        "stop_time" => float 1422436289.9551
        "stop_memory" => integer 4634264
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9552
        "start_memory" => integer 4639144
        "stop_time" => float 1422436289.9552
        "stop_memory" => integer 4639728
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9712
        "start_memory" => integer 4696624
        "stop_time" => float 1422436289.9713
        "stop_memory" => integer 4697184
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9715
        "start_memory" => integer 4702104
        "stop_time" => float 1422436289.9715
        "stop_memory" => integer 4702688
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9717
        "start_memory" => integer 4726504
        "stop_time" => float 1422436289.9718
        "stop_memory" => integer 4727080
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9727
        "start_memory" => integer 4736216
        "stop_time" => float 1422436289.9727
        "stop_memory" => integer 4736776
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9729
        "start_memory" => integer 4741640
        "stop_time" => float 1422436289.9729
        "stop_memory" => integer 4742224
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9741
        "start_memory" => integer 4821704
        "stop_time" => float 1422436289.9742
        "stop_memory" => integer 4822264
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9743
        "start_memory" => integer 4827144
        "stop_time" => float 1422436289.9743
        "stop_memory" => integer 4827728
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.981
        "start_memory" => integer 4853448
        "stop_time" => float 1422436289.9811
        "stop_memory" => integer 4854008
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9813
        "start_memory" => integer 4858872
        "stop_time" => float 1422436289.9813
        "stop_memory" => integer 4859456
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9822
        "start_memory" => integer 4880896
        "stop_time" => float 1422436289.9823
        "stop_memory" => integer 4881424
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9824
        "start_memory" => integer 4886072
        "stop_time" => float 1422436289.9825
        "stop_memory" => integer 4886648
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9844
        "start_memory" => integer 4897504
        "stop_time" => float 1422436289.9845
        "stop_memory" => integer 4898096
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9846
        "start_memory" => integer 4902984
        "stop_time" => float 1422436289.9847
        "stop_memory" => integer 4903560
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9891
        "start_memory" => integer 4948512
        "stop_time" => float 1422436289.9892
        "stop_memory" => integer 4949088
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9898
        "start_memory" => integer 4960240
        "stop_time" => float 1422436289.9899
        "stop_memory" => integer 4960784
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.99
        "start_memory" => integer 4965640
        "stop_time" => float 1422436289.9901
        "stop_memory" => integer 4966216
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9951
        "start_memory" => integer 4988712
        "stop_time" => float 1422436289.9951
        "stop_memory" => integer 4989296
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9972
        "start_memory" => integer 4994864
        "stop_time" => float 1422436289.9972
        "stop_memory" => integer 4995432
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9973
        "start_memory" => integer 5000280
        "stop_time" => float 1422436289.9974
        "stop_memory" => integer 5000864
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436289.9999
        "start_memory" => integer 5134624
        "stop_time" => float 1422436290
        "stop_memory" => integer 5135200
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0001
        "start_memory" => integer 5140152
        "stop_time" => float 1422436290.0001
        "stop_memory" => integer 5140744
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0007
        "start_memory" => integer 5155616
        "stop_time" => float 1422436290.0007
        "stop_memory" => integer 5156184
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0008
        "start_memory" => integer 5161160
        "stop_time" => float 1422436290.0009
        "stop_memory" => integer 5161752
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0028
        "start_memory" => integer 5167688
        "stop_time" => float 1422436290.0028
        "stop_memory" => integer 5168240
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0029
        "start_memory" => integer 5173112
        "stop_time" => float 1422436290.0029
        "stop_memory" => integer 5173696
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0043
        "start_memory" => integer 5318272
        "stop_time" => float 1422436290.0043
        "stop_memory" => integer 5318848
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0044
        "start_memory" => integer 5323808
        "stop_time" => float 1422436290.0045
        "stop_memory" => integer 5324400
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0047
        "start_memory" => integer 5345080
        "stop_time" => float 1422436290.0047
        "stop_memory" => integer 5345648
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0048
        "start_memory" => integer 5350536
        "stop_time" => float 1422436290.0048
        "stop_memory" => integer 5351112
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0059
        "start_memory" => integer 5413424
        "stop_time" => float 1422436290.006
        "stop_memory" => integer 5413984
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0061
        "start_memory" => integer 5418856
        "stop_time" => float 1422436290.0061
        "stop_memory" => integer 5419440
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0071
        "start_memory" => integer 5484944
        "stop_time" => float 1422436290.0072
        "stop_memory" => integer 5485504
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0073
        "start_memory" => integer 5490368
        "stop_time" => float 1422436290.0073
        "stop_memory" => integer 5490952
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0083
        "start_memory" => integer 5533608
        "stop_time" => float 1422436290.0084
        "stop_memory" => integer 5534184
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0085
        "start_memory" => integer 5539152
        "stop_time" => float 1422436290.0085
        "stop_memory" => integer 5539744
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0095
        "start_memory" => integer 5598584
        "stop_time" => float 1422436290.0095
        "stop_memory" => integer 5599168
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0096
        "start_memory" => integer 5604232
        "stop_time" => float 1422436290.0096
        "stop_memory" => integer 5604832
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0098
        "start_memory" => integer 5624504
        "stop_time" => float 1422436290.0099
        "stop_memory" => integer 5625080
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.01
        "start_memory" => integer 5630144
        "stop_time" => float 1422436290.0101
        "stop_memory" => integer 5630744
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0112
        "start_memory" => integer 5695208
        "stop_time" => float 1422436290.0113
        "stop_memory" => integer 5695784
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0114
        "start_memory" => integer 5700848
        "stop_time" => float 1422436290.0115
        "stop_memory" => integer 5701448
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0126
        "start_memory" => integer 5749776
        "stop_time" => float 1422436290.0126
        "stop_memory" => integer 5750352
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0127
        "start_memory" => integer 5755408
        "stop_time" => float 1422436290.0127
        "stop_memory" => integer 5756008
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0138
        "start_memory" => integer 5797312
        "stop_time" => float 1422436290.0139
        "stop_memory" => integer 5797888
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.014
        "start_memory" => integer 5802952
        "stop_time" => float 1422436290.014
        "stop_memory" => integer 5803552
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0154
        "start_memory" => integer 5916480
        "stop_time" => float 1422436290.0155
        "stop_memory" => integer 5917056
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0156
        "start_memory" => integer 5922120
        "stop_time" => float 1422436290.0156
        "stop_memory" => integer 5922720
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0182
        "start_memory" => integer 5971368
        "stop_time" => float 1422436290.0183
        "stop_memory" => integer 5971928
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0184
        "start_memory" => integer 5976896
        "stop_time" => float 1422436290.0184
        "stop_memory" => integer 5977488
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0194
        "start_memory" => integer 6000600
        "stop_time" => float 1422436290.0194
        "stop_memory" => integer 6001120
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0195
        "start_memory" => integer 6005760
        "stop_time" => float 1422436290.0196
        "stop_memory" => integer 6006328
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0209
        "start_memory" => integer 6121000
        "stop_time" => float 1422436290.0209
        "stop_memory" => integer 6121560
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.021
        "start_memory" => integer 6126232
        "stop_time" => float 1422436290.021
        "stop_memory" => integer 6126824
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0255
        "start_memory" => integer 6147144
        "stop_time" => float 1422436290.0256
        "stop_memory" => integer 6147680
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0257
        "start_memory" => integer 6152328
        "stop_time" => float 1422436290.0258
        "stop_memory" => integer 6152896
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0292
        "start_memory" => integer 6189576
        "stop_time" => float 1422436290.0292
        "stop_memory" => integer 6190120
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0293
        "start_memory" => integer 6194760
        "stop_time" => float 1422436290.0293
        "stop_memory" => integer 6195328
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0301
        "start_memory" => integer 6237728
        "stop_time" => float 1422436290.0301
        "stop_memory" => integer 6238272
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0302
        "start_memory" => integer 6242912
        "stop_time" => float 1422436290.0303
        "stop_memory" => integer 6243480
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0309
        "start_memory" => integer 6287680
        "stop_time" => float 1422436290.031
        "stop_memory" => integer 6288224
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0311
        "start_memory" => integer 6292872
        "stop_time" => float 1422436290.0312
        "stop_memory" => integer 6294464
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0329
        "start_memory" => integer 6369968
        "stop_time" => float 1422436290.033
        "stop_memory" => integer 6370512
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0331
        "start_memory" => integer 6375168
        "stop_time" => float 1422436290.0332
        "stop_memory" => integer 6375736
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0369
        "start_memory" => integer 6397920
        "stop_time" => float 1422436290.037
        "stop_memory" => integer 6398464
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0372
        "start_memory" => integer 6403104
        "stop_time" => float 1422436290.0372
        "stop_memory" => integer 6403672
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0395
        "start_memory" => integer 6432856
        "stop_time" => float 1422436290.0396
        "stop_memory" => integer 6433416
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0397
        "start_memory" => integer 6438264
        "stop_time" => float 1422436290.0399
        "stop_memory" => integer 6438840
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0407
        "start_memory" => integer 6459136
        "stop_time" => float 1422436290.0408
        "stop_memory" => integer 6459704
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.041
        "start_memory" => integer 6464640
        "stop_time" => float 1422436290.041
        "stop_memory" => integer 6465224
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0421
        "start_memory" => integer 6480264
        "stop_time" => float 1422436290.0422
        "stop_memory" => integer 6480824
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0423
        "start_memory" => integer 6485760
        "stop_time" => float 1422436290.0423
        "stop_memory" => integer 6486344
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0435
        "start_memory" => integer 6501384
        "stop_time" => float 1422436290.0435
        "stop_memory" => integer 6501944
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0437
        "start_memory" => integer 6506880
        "stop_time" => float 1422436290.0438
        "stop_memory" => integer 6507464
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0447
        "start_memory" => integer 6522512
        "stop_time" => float 1422436290.0448
        "stop_memory" => integer 6523072
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.045
        "start_memory" => integer 6528008
        "stop_time" => float 1422436290.045
        "stop_memory" => integer 6528592
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0461
        "start_memory" => integer 6543616
        "stop_time" => float 1422436290.0462
        "stop_memory" => integer 6544176
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0463
        "start_memory" => integer 6549112
        "stop_time" => float 1422436290.0464
        "stop_memory" => integer 6549696
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0474
        "start_memory" => integer 6564720
        "stop_time" => float 1422436290.0475
        "stop_memory" => integer 6565280
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0476
        "start_memory" => integer 6570216
        "stop_time" => float 1422436290.0477
        "stop_memory" => integer 6570800
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0487
        "start_memory" => integer 6585856
        "stop_time" => float 1422436290.0488
        "stop_memory" => integer 6586416
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.049
        "start_memory" => integer 6591352
        "stop_time" => float 1422436290.0491
        "stop_memory" => integer 6591936
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0501
        "start_memory" => integer 6606960
        "stop_time" => float 1422436290.0502
        "stop_memory" => integer 6607520
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0503
        "start_memory" => integer 6612456
        "stop_time" => float 1422436290.0504
        "stop_memory" => integer 6613040
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0514
        "start_memory" => integer 6628176
        "stop_time" => float 1422436290.0515
        "stop_memory" => integer 6628736
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0516
        "start_memory" => integer 6633672
        "stop_time" => float 1422436290.0517
        "stop_memory" => integer 6634256
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0527
        "start_memory" => integer 6649288
        "stop_time" => float 1422436290.0528
        "stop_memory" => integer 6649848
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.053
        "start_memory" => integer 6654784
        "stop_time" => float 1422436290.053
        "stop_memory" => integer 6655368
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.054
        "start_memory" => integer 6670408
        "stop_time" => float 1422436290.0542
        "stop_memory" => integer 6670968
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0543
        "start_memory" => integer 6675904
        "stop_time" => float 1422436290.0544
        "stop_memory" => integer 6676488
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0551
        "start_memory" => integer 6691496
        "stop_time" => float 1422436290.0552
        "stop_memory" => integer 6692056
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0553
        "start_memory" => integer 6696992
        "stop_time" => float 1422436290.0554
        "stop_memory" => integer 6697576
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0561
        "start_memory" => integer 6712600
        "stop_time" => float 1422436290.0562
        "stop_memory" => integer 6713160
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0562
        "start_memory" => integer 6718096
        "stop_time" => float 1422436290.0563
        "stop_memory" => integer 6718680
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0569
        "start_memory" => integer 6733704
        "stop_time" => float 1422436290.057
        "stop_memory" => integer 6734264
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0571
        "start_memory" => integer 6739200
        "stop_time" => float 1422436290.0572
        "stop_memory" => integer 6739784
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.058
        "start_memory" => integer 6754840
        "stop_time" => float 1422436290.0581
        "stop_memory" => integer 6755400
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0582
        "start_memory" => integer 6760336
        "stop_time" => float 1422436290.0583
        "stop_memory" => integer 6760920
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0589
        "start_memory" => integer 6775968
        "stop_time" => float 1422436290.059
        "stop_memory" => integer 6776528
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0591
        "start_memory" => integer 6781464
        "stop_time" => float 1422436290.0591
        "stop_memory" => integer 6782048
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0598
        "start_memory" => integer 6797232
        "stop_time" => float 1422436290.0599
        "stop_memory" => integer 6797792
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.06
        "start_memory" => integer 6802728
        "stop_time" => float 1422436290.0601
        "stop_memory" => integer 6803312
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0608
        "start_memory" => integer 6818384
        "stop_time" => float 1422436290.0608
        "stop_memory" => integer 6818944
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0609
        "start_memory" => integer 6823880
        "stop_time" => float 1422436290.0609
        "stop_memory" => integer 6824464
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0617
        "start_memory" => integer 6839520
        "stop_time" => float 1422436290.0617
        "stop_memory" => integer 6840080
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0618
        "start_memory" => integer 6845016
        "stop_time" => float 1422436290.0619
        "stop_memory" => integer 6845600
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0625
        "start_memory" => integer 6860648
        "stop_time" => float 1422436290.0625
        "stop_memory" => integer 6861208
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0626
        "start_memory" => integer 6866144
        "stop_time" => float 1422436290.0627
        "stop_memory" => integer 6866728
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0634
        "start_memory" => integer 6881752
        "stop_time" => float 1422436290.0635
        "stop_memory" => integer 6882312
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0636
        "start_memory" => integer 6887248
        "stop_time" => float 1422436290.0637
        "stop_memory" => integer 6887832
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0645
        "start_memory" => integer 6902856
        "stop_time" => float 1422436290.0646
        "stop_memory" => integer 6903416
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0647
        "start_memory" => integer 6908352
        "stop_time" => float 1422436290.0647
        "stop_memory" => integer 6908936
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0653
        "start_memory" => integer 6923992
        "stop_time" => float 1422436290.0653
        "stop_memory" => integer 6924552
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0654
        "start_memory" => integer 6929488
        "stop_time" => float 1422436290.0655
        "stop_memory" => integer 6930072
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0662
        "start_memory" => integer 6945112
        "stop_time" => float 1422436290.0662
        "stop_memory" => integer 6945672
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0664
        "start_memory" => integer 6950608
        "stop_time" => float 1422436290.0664
        "stop_memory" => integer 6951192
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0681
        "start_memory" => integer 6966456
        "stop_time" => float 1422436290.0682
        "stop_memory" => integer 6967016
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0683
        "start_memory" => integer 6971928
        "stop_time" => float 1422436290.0684
        "stop_memory" => integer 6972496
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0712
        "start_memory" => integer 7010544
        "stop_time" => float 1422436290.0712
        "stop_memory" => integer 7011096
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0714
        "start_memory" => integer 7015768
        "stop_time" => float 1422436290.0714
        "stop_memory" => integer 7016344
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0726
        "start_memory" => integer 7147416
        "stop_time" => float 1422436290.0726
        "stop_memory" => integer 7147968
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0728
        "start_memory" => integer 7152648
        "stop_time" => float 1422436290.0728
        "stop_memory" => integer 7153224
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0746
        "start_memory" => integer 7322392
        "stop_time" => float 1422436290.0746
        "stop_memory" => integer 7322944
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0747
        "start_memory" => integer 7327632
        "stop_time" => float 1422436290.0748
        "stop_memory" => integer 7328192
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0774
        "start_memory" => integer 7383856
        "stop_time" => float 1422436290.0774
        "stop_memory" => integer 7384432
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0775
        "start_memory" => integer 7389344
        "stop_time" => float 1422436290.0776
        "stop_memory" => integer 7389912
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0784
        "start_memory" => integer 7429936
        "stop_time" => float 1422436290.0784
        "stop_memory" => integer 7430512
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0785
        "start_memory" => integer 7435464
        "stop_time" => float 1422436290.0786
        "stop_memory" => integer 7436056
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0799
        "start_memory" => integer 7462000
        "stop_time" => float 1422436290.0799
        "stop_memory" => integer 7462568
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.08
        "start_memory" => integer 7467440
        "stop_time" => float 1422436290.0801
        "stop_memory" => integer 7468016
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0827
        "start_memory" => integer 7494072
        "stop_time" => float 1422436290.0827
        "stop_memory" => integer 7494648
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0876
        "start_memory" => integer 7505552
        "stop_time" => float 1422436290.0877
        "stop_memory" => integer 7506112
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0881
        "start_memory" => integer 7516000
        "stop_time" => float 1422436290.0882
        "stop_memory" => integer 7516568
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0902
        "start_memory" => integer 7527216
        "stop_time" => float 1422436290.0902
        "stop_memory" => integer 7527768
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0904
        "start_memory" => integer 7532480
        "stop_time" => float 1422436290.0904
        "stop_memory" => integer 7533056
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.091
        "start_memory" => integer 7538520
        "stop_time" => float 1422436290.0912
        "stop_memory" => integer 7539072
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0913
        "start_memory" => integer 7543784
        "stop_time" => float 1422436290.0914
        "stop_memory" => integer 7544360
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0921
        "start_memory" => integer 7549824
        "stop_time" => float 1422436290.0922
        "stop_memory" => integer 7550376
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0923
        "start_memory" => integer 7555112
        "stop_time" => float 1422436290.0924
        "stop_memory" => integer 7555688
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0937
        "start_memory" => integer 7567696
        "stop_time" => float 1422436290.0937
        "stop_memory" => integer 7568232
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0938
        "start_memory" => integer 7572888
        "stop_time" => float 1422436290.0939
        "stop_memory" => integer 7573448
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0945
        "start_memory" => integer 7576512
        "stop_time" => float 1422436290.0945
        "stop_memory" => integer 7577088
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0947
        "start_memory" => integer 7586352
        "stop_time" => float 1422436290.0947
        "stop_memory" => integer 7586888
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0948
        "start_memory" => integer 7591536
        "stop_time" => float 1422436290.0948
        "stop_memory" => integer 7592104
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0972
        "start_memory" => integer 7967488
        "stop_time" => float 1422436290.0973
        "stop_memory" => integer 7968064
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0983
        "start_memory" => integer 8046656
        "stop_time" => float 1422436290.0983
        "stop_memory" => integer 8047240
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0989
        "start_memory" => integer 8092464
        "stop_time" => float 1422436290.0989
        "stop_memory" => integer 8093024
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0991
        "start_memory" => integer 8097888
        "stop_time" => float 1422436290.0991
        "stop_memory" => integer 8098472
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.0996
        "start_memory" => integer 8107448
        "stop_time" => float 1422436290.0997
        "stop_memory" => integer 8107992
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1003
        "start_memory" => integer 8139432
        "stop_time" => float 1422436290.1004
        "stop_memory" => integer 8139992
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1009
        "start_memory" => integer 8174400
        "stop_time" => float 1422436290.101
        "stop_memory" => integer 8174976
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1015
        "start_memory" => integer 8207088
        "stop_time" => float 1422436290.1016
        "stop_memory" => integer 8207624
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1017
        "start_memory" => integer 8212280
        "stop_time" => float 1422436290.1017
        "stop_memory" => integer 8212848
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1038
        "start_memory" => integer 8254656
        "stop_time" => float 1422436290.1039
        "stop_memory" => integer 8255248
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.104
        "start_memory" => integer 8260432
        "stop_time" => float 1422436290.104
        "stop_memory" => integer 8261024
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.107
        "start_memory" => integer 8305144
        "stop_time" => float 1422436290.1071
        "stop_memory" => integer 8305696
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1072
        "start_memory" => integer 8310632
        "stop_time" => float 1422436290.1073
        "stop_memory" => integer 8311216
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1117
        "start_memory" => integer 8412904
        "stop_time" => float 1422436290.1118
        "stop_memory" => integer 8413432
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1119
        "start_memory" => integer 8418088
        "stop_time" => float 1422436290.1119
        "stop_memory" => integer 8418656
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1125
        "start_memory" => integer 8433584
        "stop_time" => float 1422436290.1125
        "stop_memory" => integer 8434136
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1126
        "start_memory" => integer 8438784
        "stop_time" => float 1422436290.1127
        "stop_memory" => integer 8439352
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1136
        "start_memory" => integer 8505784
        "stop_time" => float 1422436290.1137
        "stop_memory" => integer 8506344
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1138
        "start_memory" => integer 8511200
        "stop_time" => float 1422436290.1139
        "stop_memory" => integer 8511776
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1145
        "start_memory" => integer 8535216
        "stop_time" => float 1422436290.1146
        "stop_memory" => integer 8535824
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1147
        "start_memory" => integer 8540744
        "stop_time" => float 1422436290.1147
        "stop_memory" => integer 8541336
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1164
        "start_memory" => integer 8612344
        "stop_time" => float 1422436290.1165
        "stop_memory" => integer 8612880
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1165
        "start_memory" => integer 8617752
        "stop_time" => float 1422436290.1166
        "stop_memory" => integer 8618304
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1172
        "start_memory" => integer 8646040
        "stop_time" => float 1422436290.1173
        "stop_memory" => integer 8646576
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1174
        "start_memory" => integer 8651232
        "stop_time" => float 1422436290.1174
        "stop_memory" => integer 8651800
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1189
        "start_memory" => integer 8773024
        "stop_time" => float 1422436290.1189
        "stop_memory" => integer 8773568
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.119
        "start_memory" => integer 8778240
        "stop_time" => float 1422436290.1191
        "stop_memory" => integer 8778808
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1252
        "start_memory" => integer 8810192
        "stop_time" => float 1422436290.1254
        "stop_memory" => integer 8810736
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1255
        "start_memory" => integer 8815384
        "stop_time" => float 1422436290.1256
        "stop_memory" => integer 8815952
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1276
        "start_memory" => integer 8916240
        "stop_time" => float 1422436290.1277
        "stop_memory" => integer 8916800
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1279
        "start_memory" => integer 8921512
        "stop_time" => float 1422436290.128
        "stop_memory" => integer 8922088
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1297
        "start_memory" => integer 9029832
        "stop_time" => float 1422436290.1298
        "stop_memory" => integer 9030400
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1299
        "start_memory" => integer 9035320
        "stop_time" => float 1422436290.1302
        "stop_memory" => integer 9035904
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1315
        "start_memory" => integer 9057088
        "stop_time" => float 1422436290.1316
        "stop_memory" => integer 9057664
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1321
        "start_memory" => integer 9022168
        "stop_time" => float 1422436290.1322
        "stop_memory" => integer 9024104
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1336
        "start_memory" => integer 9094824
        "stop_time" => float 1422436290.1337
        "stop_memory" => integer 9096552
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422436290.1338
        "start_memory" => integer 9096312
        "stop_time" => float 1422436290.1338
        "stop_memory" => integer 9098040
    )
)

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