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(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1422311271.9219
        "start_memory" => integer 1989872
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9219
        "start_memory" => integer 1992216
        "stop_time" => float 1422311271.922
        "stop_memory" => integer 1992808
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9221
        "start_memory" => integer 1997760
        "stop_time" => float 1422311271.9222
        "stop_memory" => integer 1998352
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9233
        "start_memory" => integer 2123920
        "stop_time" => float 1422311271.9234
        "stop_memory" => integer 2124472
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9235
        "start_memory" => integer 2129392
        "stop_time" => float 1422311271.9235
        "stop_memory" => integer 2129976
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9237
        "start_memory" => integer 2141064
        "stop_time" => float 1422311271.9238
        "stop_memory" => integer 2141608
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.924
        "start_memory" => integer 2146320
        "stop_time" => float 1422311271.9241
        "stop_memory" => integer 2146896
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9244
        "start_memory" => integer 2156152
        "stop_time" => float 1422311271.9245
        "stop_memory" => integer 2156712
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9246
        "start_memory" => integer 2161368
        "stop_time" => float 1422311271.9247
        "stop_memory" => integer 2161976
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9261
        "start_memory" => integer 2322744
        "stop_time" => float 1422311271.9262
        "stop_memory" => integer 2323304
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9263
        "start_memory" => integer 2328152
        "stop_time" => float 1422311271.9265
        "stop_memory" => integer 2328728
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9267
        "start_memory" => integer 2342200
        "stop_time" => float 1422311271.9268
        "stop_memory" => integer 2342752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.927
        "start_memory" => integer 2347400
        "stop_time" => float 1422311271.9271
        "stop_memory" => integer 2347968
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9276
        "start_memory" => integer 2402760
        "stop_time" => float 1422311271.9277
        "stop_memory" => integer 2403352
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9277
        "start_memory" => integer 2404512
        "stop_time" => float 1422311271.9279
        "stop_memory" => integer 2405088
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.928
        "start_memory" => integer 2409960
        "stop_time" => float 1422311271.9281
        "stop_memory" => integer 2410536
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9286
        "start_memory" => integer 2475944
        "stop_time" => float 1422311271.9288
        "stop_memory" => integer 2476560
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9288
        "start_memory" => integer 2477336
        "stop_time" => float 1422311271.9289
        "stop_memory" => integer 2477912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9341
        "start_memory" => integer 3146616
        "stop_time" => float 1422311271.9342
        "stop_memory" => integer 3147144
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9344
        "start_memory" => integer 3152840
        "stop_time" => float 1422311271.9345
        "stop_memory" => integer 3153408
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9348
        "start_memory" => integer 3186168
        "stop_time" => float 1422311271.9349
        "stop_memory" => integer 3186712
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.935
        "start_memory" => integer 3191352
        "stop_time" => float 1422311271.9351
        "stop_memory" => integer 3191920
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9364
        "start_memory" => integer 3353576
        "stop_time" => float 1422311271.9364
        "stop_memory" => integer 3354152
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9365
        "start_memory" => integer 3359032
        "stop_time" => float 1422311271.9366
        "stop_memory" => integer 3359616
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9367
        "start_memory" => integer 3362304
        "stop_time" => float 1422311271.9369
        "stop_memory" => integer 3362864
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9376
        "start_memory" => integer 3367736
        "stop_time" => float 1422311271.9377
        "stop_memory" => integer 3368320
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9382
        "start_memory" => integer 3417984
        "stop_time" => float 1422311271.9382
        "stop_memory" => integer 3418528
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9383
        "start_memory" => integer 3423200
        "stop_time" => float 1422311271.9384
        "stop_memory" => integer 3423776
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9393
        "start_memory" => integer 3521840
        "stop_time" => float 1422311271.9394
        "stop_memory" => integer 3522376
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9394
        "start_memory" => integer 3527016
        "stop_time" => float 1422311271.9395
        "stop_memory" => integer 3527584
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311271.9429
        "start_memory" => integer 3612200
        "stop_time" => float 1422311271.9431
        "stop_memory" => integer 3612792
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0135
        "start_memory" => integer 3654944
        "stop_time" => float 1422311272.0136
        "stop_memory" => integer 3655504
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0137
        "start_memory" => integer 3660168
        "stop_time" => float 1422311272.0138
        "stop_memory" => integer 3661000
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0148
        "start_memory" => integer 3701616
        "stop_time" => float 1422311272.0148
        "stop_memory" => integer 3702168
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0149
        "start_memory" => integer 3707000
        "stop_time" => float 1422311272.0149
        "stop_memory" => integer 3707576
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0156
        "start_memory" => integer 3731280
        "stop_time" => float 1422311272.0157
        "stop_memory" => integer 3731832
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0158
        "start_memory" => integer 3736512
        "stop_time" => float 1422311272.0159
        "stop_memory" => integer 3737088
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0169
        "start_memory" => integer 3804248
        "stop_time" => float 1422311272.0169
        "stop_memory" => integer 3804832
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0171
        "start_memory" => integer 3822824
        "stop_time" => float 1422311272.0171
        "stop_memory" => integer 3823384
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0172
        "start_memory" => integer 3828256
        "stop_time" => float 1422311272.0172
        "stop_memory" => integer 3828840
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0178
        "start_memory" => integer 3893968
        "stop_time" => float 1422311272.0178
        "stop_memory" => integer 3894544
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0181
        "start_memory" => integer 3913968
        "stop_time" => float 1422311272.0181
        "stop_memory" => integer 3914544
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0186
        "start_memory" => integer 3962616
        "stop_time" => float 1422311272.0187
        "stop_memory" => integer 3963192
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.019
        "start_memory" => integer 3973856
        "stop_time" => float 1422311272.019
        "stop_memory" => integer 3974432
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0194
        "start_memory" => integer 3992440
        "stop_time" => float 1422311272.0195
        "stop_memory" => integer 3993016
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0198
        "start_memory" => integer 4002712
        "stop_time" => float 1422311272.0198
        "stop_memory" => integer 4003288
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0202
        "start_memory" => integer 4023392
        "stop_time" => float 1422311272.0202
        "stop_memory" => integer 4023968
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0205
        "start_memory" => integer 4044472
        "stop_time" => float 1422311272.0206
        "stop_memory" => integer 4045064
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.021
        "start_memory" => integer 4058288
        "stop_time" => float 1422311272.021
        "stop_memory" => integer 4058856
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0213
        "start_memory" => integer 4071072
        "stop_time" => float 1422311272.0213
        "stop_memory" => integer 4071648
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0218
        "start_memory" => integer 4119912
        "stop_time" => float 1422311272.0218
        "stop_memory" => integer 4120472
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0222
        "start_memory" => integer 4158944
        "stop_time" => float 1422311272.0223
        "stop_memory" => integer 4159528
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0226
        "start_memory" => integer 4178928
        "stop_time" => float 1422311272.0226
        "stop_memory" => integer 4179504
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.023
        "start_memory" => integer 4210680
        "stop_time" => float 1422311272.023
        "stop_memory" => integer 4211256
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0233
        "start_memory" => integer 4229968
        "stop_time" => float 1422311272.0233
        "stop_memory" => integer 4230512
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0234
        "start_memory" => integer 4235184
        "stop_time" => float 1422311272.0234
        "stop_memory" => integer 4235760
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0237
        "start_memory" => integer 4266600
        "stop_time" => float 1422311272.0237
        "stop_memory" => integer 4267136
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0238
        "start_memory" => integer 4271800
        "stop_time" => float 1422311272.0239
        "stop_memory" => integer 4272368
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0265
        "start_memory" => integer 4413928
        "stop_time" => float 1422311272.0266
        "stop_memory" => integer 4414504
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0357
        "start_memory" => integer 4467304
        "stop_time" => float 1422311272.0358
        "stop_memory" => integer 4467856
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0361
        "start_memory" => integer 4472688
        "stop_time" => float 1422311272.0361
        "stop_memory" => integer 4473264
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0432
        "start_memory" => integer 4498736
        "stop_time" => float 1422311272.0433
        "stop_memory" => integer 4499320
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0436
        "start_memory" => integer 4504256
        "stop_time" => float 1422311272.0436
        "stop_memory" => integer 4504832
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0509
        "start_memory" => integer 4530440
        "stop_time" => float 1422311272.0509
        "stop_memory" => integer 4531000
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0511
        "start_memory" => integer 4535856
        "stop_time" => float 1422311272.0511
        "stop_memory" => integer 4536936
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0517
        "start_memory" => integer 4625656
        "stop_time" => float 1422311272.0517
        "stop_memory" => integer 4626256
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0569
        "start_memory" => integer 4633176
        "stop_time" => float 1422311272.057
        "stop_memory" => integer 4633728
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0571
        "start_memory" => integer 4638608
        "stop_time" => float 1422311272.0571
        "stop_memory" => integer 4639192
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0737
        "start_memory" => integer 4696088
        "stop_time" => float 1422311272.0738
        "stop_memory" => integer 4696648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.074
        "start_memory" => integer 4701568
        "stop_time" => float 1422311272.074
        "stop_memory" => integer 4702152
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0742
        "start_memory" => integer 4725984
        "stop_time" => float 1422311272.0742
        "stop_memory" => integer 4726560
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0751
        "start_memory" => integer 4735680
        "stop_time" => float 1422311272.0752
        "stop_memory" => integer 4736240
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0753
        "start_memory" => integer 4741104
        "stop_time" => float 1422311272.0753
        "stop_memory" => integer 4741688
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0763
        "start_memory" => integer 4821160
        "stop_time" => float 1422311272.0764
        "stop_memory" => integer 4821720
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0765
        "start_memory" => integer 4826624
        "stop_time" => float 1422311272.0765
        "stop_memory" => integer 4827208
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0834
        "start_memory" => integer 4852880
        "stop_time" => float 1422311272.0835
        "stop_memory" => integer 4853440
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0837
        "start_memory" => integer 4858304
        "stop_time" => float 1422311272.0837
        "stop_memory" => integer 4858888
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0847
        "start_memory" => integer 4880296
        "stop_time" => float 1422311272.0847
        "stop_memory" => integer 4880824
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0849
        "start_memory" => integer 4885472
        "stop_time" => float 1422311272.085
        "stop_memory" => integer 4886040
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0868
        "start_memory" => integer 4896896
        "stop_time" => float 1422311272.0868
        "stop_memory" => integer 4897488
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0869
        "start_memory" => integer 4902376
        "stop_time" => float 1422311272.0869
        "stop_memory" => integer 4902952
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0909
        "start_memory" => integer 4947904
        "stop_time" => float 1422311272.091
        "stop_memory" => integer 4948480
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0917
        "start_memory" => integer 4959616
        "stop_time" => float 1422311272.0918
        "stop_memory" => integer 4960160
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0919
        "start_memory" => integer 4965016
        "stop_time" => float 1422311272.092
        "stop_memory" => integer 4965592
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0957
        "start_memory" => integer 4988088
        "stop_time" => float 1422311272.0958
        "stop_memory" => integer 4988656
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0979
        "start_memory" => integer 4994208
        "stop_time" => float 1422311272.098
        "stop_memory" => integer 4994776
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.0981
        "start_memory" => integer 4999624
        "stop_time" => float 1422311272.0981
        "stop_memory" => integer 5000208
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1005
        "start_memory" => integer 5133936
        "stop_time" => float 1422311272.1005
        "stop_memory" => integer 5134512
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1006
        "start_memory" => integer 5139464
        "stop_time" => float 1422311272.1007
        "stop_memory" => integer 5140056
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1012
        "start_memory" => integer 5154912
        "stop_time" => float 1422311272.1013
        "stop_memory" => integer 5155480
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1014
        "start_memory" => integer 5160440
        "stop_time" => float 1422311272.1014
        "stop_memory" => integer 5161032
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1037
        "start_memory" => integer 5166976
        "stop_time" => float 1422311272.1037
        "stop_memory" => integer 5167528
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1039
        "start_memory" => integer 5172416
        "stop_time" => float 1422311272.104
        "stop_memory" => integer 5173000
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1056
        "start_memory" => integer 5317600
        "stop_time" => float 1422311272.1056
        "stop_memory" => integer 5318176
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1057
        "start_memory" => integer 5323136
        "stop_time" => float 1422311272.1064
        "stop_memory" => integer 5323752
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1067
        "start_memory" => integer 5344432
        "stop_time" => float 1422311272.1067
        "stop_memory" => integer 5345000
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1069
        "start_memory" => integer 5349912
        "stop_time" => float 1422311272.1069
        "stop_memory" => integer 5350488
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1086
        "start_memory" => integer 5412768
        "stop_time" => float 1422311272.1087
        "stop_memory" => integer 5413328
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1088
        "start_memory" => integer 5418200
        "stop_time" => float 1422311272.1089
        "stop_memory" => integer 5418784
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.11
        "start_memory" => integer 5484280
        "stop_time" => float 1422311272.1101
        "stop_memory" => integer 5484840
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1102
        "start_memory" => integer 5489704
        "stop_time" => float 1422311272.1103
        "stop_memory" => integer 5490288
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1113
        "start_memory" => integer 5532944
        "stop_time" => float 1422311272.1114
        "stop_memory" => integer 5533520
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1115
        "start_memory" => integer 5538488
        "stop_time" => float 1422311272.1116
        "stop_memory" => integer 5539080
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1128
        "start_memory" => integer 5597920
        "stop_time" => float 1422311272.1128
        "stop_memory" => integer 5598504
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1129
        "start_memory" => integer 5603568
        "stop_time" => float 1422311272.1129
        "stop_memory" => integer 5604168
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1132
        "start_memory" => integer 5623840
        "stop_time" => float 1422311272.1132
        "stop_memory" => integer 5624416
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1133
        "start_memory" => integer 5629480
        "stop_time" => float 1422311272.1134
        "stop_memory" => integer 5630080
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1145
        "start_memory" => integer 5694520
        "stop_time" => float 1422311272.1145
        "stop_memory" => integer 5695096
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1146
        "start_memory" => integer 5700160
        "stop_time" => float 1422311272.1146
        "stop_memory" => integer 5700760
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1158
        "start_memory" => integer 5749088
        "stop_time" => float 1422311272.1159
        "stop_memory" => integer 5749664
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.116
        "start_memory" => integer 5754720
        "stop_time" => float 1422311272.1161
        "stop_memory" => integer 5755320
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1169
        "start_memory" => integer 5796624
        "stop_time" => float 1422311272.117
        "stop_memory" => integer 5797200
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1171
        "start_memory" => integer 5802264
        "stop_time" => float 1422311272.1171
        "stop_memory" => integer 5802864
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1184
        "start_memory" => integer 5915792
        "stop_time" => float 1422311272.1184
        "stop_memory" => integer 5916368
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1185
        "start_memory" => integer 5921432
        "stop_time" => float 1422311272.1186
        "stop_memory" => integer 5922032
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1206
        "start_memory" => integer 5970664
        "stop_time" => float 1422311272.1206
        "stop_memory" => integer 5971224
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1208
        "start_memory" => integer 5976192
        "stop_time" => float 1422311272.1208
        "stop_memory" => integer 5976784
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1218
        "start_memory" => integer 5999904
        "stop_time" => float 1422311272.1219
        "stop_memory" => integer 6000424
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.122
        "start_memory" => integer 6005064
        "stop_time" => float 1422311272.122
        "stop_memory" => integer 6005632
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1232
        "start_memory" => integer 6120288
        "stop_time" => float 1422311272.1232
        "stop_memory" => integer 6120848
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1233
        "start_memory" => integer 6125520
        "stop_time" => float 1422311272.1233
        "stop_memory" => integer 6126112
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1291
        "start_memory" => integer 6146432
        "stop_time" => float 1422311272.1292
        "stop_memory" => integer 6146968
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1294
        "start_memory" => integer 6151616
        "stop_time" => float 1422311272.1294
        "stop_memory" => integer 6152184
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1324
        "start_memory" => integer 6188864
        "stop_time" => float 1422311272.1325
        "stop_memory" => integer 6189408
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1326
        "start_memory" => integer 6194048
        "stop_time" => float 1422311272.1327
        "stop_memory" => integer 6194616
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1337
        "start_memory" => integer 6237032
        "stop_time" => float 1422311272.1338
        "stop_memory" => integer 6237576
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1339
        "start_memory" => integer 6242224
        "stop_time" => float 1422311272.134
        "stop_memory" => integer 6242792
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1349
        "start_memory" => integer 6286984
        "stop_time" => float 1422311272.135
        "stop_memory" => integer 6287528
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1351
        "start_memory" => integer 6292168
        "stop_time" => float 1422311272.1351
        "stop_memory" => integer 6293760
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1368
        "start_memory" => integer 6369296
        "stop_time" => float 1422311272.1369
        "stop_memory" => integer 6369840
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.137
        "start_memory" => integer 6374496
        "stop_time" => float 1422311272.1371
        "stop_memory" => integer 6375064
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1404
        "start_memory" => integer 6397248
        "stop_time" => float 1422311272.1404
        "stop_memory" => integer 6397808
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1405
        "start_memory" => integer 6402448
        "stop_time" => float 1422311272.1406
        "stop_memory" => integer 6403016
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1426
        "start_memory" => integer 6432168
        "stop_time" => float 1422311272.1426
        "stop_memory" => integer 6432728
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1427
        "start_memory" => integer 6437576
        "stop_time" => float 1422311272.1429
        "stop_memory" => integer 6438152
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1439
        "start_memory" => integer 6458448
        "stop_time" => float 1422311272.144
        "stop_memory" => integer 6459016
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1441
        "start_memory" => integer 6463952
        "stop_time" => float 1422311272.1441
        "stop_memory" => integer 6464536
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.145
        "start_memory" => integer 6479584
        "stop_time" => float 1422311272.1451
        "stop_memory" => integer 6480144
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1452
        "start_memory" => integer 6485080
        "stop_time" => float 1422311272.1453
        "stop_memory" => integer 6485664
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1461
        "start_memory" => integer 6500704
        "stop_time" => float 1422311272.1462
        "stop_memory" => integer 6501264
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1463
        "start_memory" => integer 6506200
        "stop_time" => float 1422311272.1464
        "stop_memory" => integer 6506784
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1474
        "start_memory" => integer 6521832
        "stop_time" => float 1422311272.1474
        "stop_memory" => integer 6522392
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1475
        "start_memory" => integer 6527328
        "stop_time" => float 1422311272.1475
        "stop_memory" => integer 6527912
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1483
        "start_memory" => integer 6542936
        "stop_time" => float 1422311272.1484
        "stop_memory" => integer 6543496
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1485
        "start_memory" => integer 6548432
        "stop_time" => float 1422311272.1486
        "stop_memory" => integer 6549016
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1493
        "start_memory" => integer 6564040
        "stop_time" => float 1422311272.1493
        "stop_memory" => integer 6564600
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1494
        "start_memory" => integer 6569536
        "stop_time" => float 1422311272.1495
        "stop_memory" => integer 6570120
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1502
        "start_memory" => integer 6585176
        "stop_time" => float 1422311272.1502
        "stop_memory" => integer 6585736
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1503
        "start_memory" => integer 6590672
        "stop_time" => float 1422311272.1504
        "stop_memory" => integer 6591256
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1512
        "start_memory" => integer 6606280
        "stop_time" => float 1422311272.1513
        "stop_memory" => integer 6606840
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1514
        "start_memory" => integer 6611776
        "stop_time" => float 1422311272.1514
        "stop_memory" => integer 6612360
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1521
        "start_memory" => integer 6627496
        "stop_time" => float 1422311272.1521
        "stop_memory" => integer 6628056
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1522
        "start_memory" => integer 6632992
        "stop_time" => float 1422311272.1523
        "stop_memory" => integer 6633576
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.153
        "start_memory" => integer 6648608
        "stop_time" => float 1422311272.1531
        "stop_memory" => integer 6649168
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1532
        "start_memory" => integer 6654104
        "stop_time" => float 1422311272.1532
        "stop_memory" => integer 6654688
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1539
        "start_memory" => integer 6669728
        "stop_time" => float 1422311272.154
        "stop_memory" => integer 6670288
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1541
        "start_memory" => integer 6675224
        "stop_time" => float 1422311272.1541
        "stop_memory" => integer 6675808
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1549
        "start_memory" => integer 6690816
        "stop_time" => float 1422311272.1549
        "stop_memory" => integer 6691376
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1551
        "start_memory" => integer 6696312
        "stop_time" => float 1422311272.1551
        "stop_memory" => integer 6696896
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1558
        "start_memory" => integer 6711920
        "stop_time" => float 1422311272.1559
        "stop_memory" => integer 6712480
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.156
        "start_memory" => integer 6717416
        "stop_time" => float 1422311272.156
        "stop_memory" => integer 6718000
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1569
        "start_memory" => integer 6733024
        "stop_time" => float 1422311272.157
        "stop_memory" => integer 6733584
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1571
        "start_memory" => integer 6738520
        "stop_time" => float 1422311272.1572
        "stop_memory" => integer 6739104
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1579
        "start_memory" => integer 6754160
        "stop_time" => float 1422311272.1579
        "stop_memory" => integer 6754720
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.158
        "start_memory" => integer 6759656
        "stop_time" => float 1422311272.158
        "stop_memory" => integer 6760240
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.159
        "start_memory" => integer 6775288
        "stop_time" => float 1422311272.1591
        "stop_memory" => integer 6775848
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1592
        "start_memory" => integer 6780784
        "stop_time" => float 1422311272.1593
        "stop_memory" => integer 6781368
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1603
        "start_memory" => integer 6796552
        "stop_time" => float 1422311272.1604
        "stop_memory" => integer 6797112
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1605
        "start_memory" => integer 6802048
        "stop_time" => float 1422311272.1606
        "stop_memory" => integer 6802632
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1617
        "start_memory" => integer 6817704
        "stop_time" => float 1422311272.1618
        "stop_memory" => integer 6818264
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.162
        "start_memory" => integer 6823200
        "stop_time" => float 1422311272.162
        "stop_memory" => integer 6823784
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.163
        "start_memory" => integer 6838840
        "stop_time" => float 1422311272.1631
        "stop_memory" => integer 6839400
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1631
        "start_memory" => integer 6844336
        "stop_time" => float 1422311272.1632
        "stop_memory" => integer 6844920
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.164
        "start_memory" => integer 6859968
        "stop_time" => float 1422311272.1641
        "stop_memory" => integer 6860528
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1642
        "start_memory" => integer 6865464
        "stop_time" => float 1422311272.1642
        "stop_memory" => integer 6866048
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1653
        "start_memory" => integer 6881072
        "stop_time" => float 1422311272.1653
        "stop_memory" => integer 6881632
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1654
        "start_memory" => integer 6886568
        "stop_time" => float 1422311272.1655
        "stop_memory" => integer 6887152
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1662
        "start_memory" => integer 6902176
        "stop_time" => float 1422311272.1663
        "stop_memory" => integer 6902736
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1664
        "start_memory" => integer 6907672
        "stop_time" => float 1422311272.1665
        "stop_memory" => integer 6908256
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1672
        "start_memory" => integer 6923312
        "stop_time" => float 1422311272.1673
        "stop_memory" => integer 6923872
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1674
        "start_memory" => integer 6928808
        "stop_time" => float 1422311272.1674
        "stop_memory" => integer 6929392
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1682
        "start_memory" => integer 6944432
        "stop_time" => float 1422311272.1682
        "stop_memory" => integer 6944992
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1683
        "start_memory" => integer 6949928
        "stop_time" => float 1422311272.1684
        "stop_memory" => integer 6950512
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1703
        "start_memory" => integer 6965776
        "stop_time" => float 1422311272.1704
        "stop_memory" => integer 6966336
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1705
        "start_memory" => integer 6971248
        "stop_time" => float 1422311272.1706
        "stop_memory" => integer 6971816
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1739
        "start_memory" => integer 7009840
        "stop_time" => float 1422311272.1739
        "stop_memory" => integer 7010392
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1741
        "start_memory" => integer 7015080
        "stop_time" => float 1422311272.1742
        "stop_memory" => integer 7015656
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1759
        "start_memory" => integer 7146720
        "stop_time" => float 1422311272.176
        "stop_memory" => integer 7147272
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1761
        "start_memory" => integer 7151952
        "stop_time" => float 1422311272.1762
        "stop_memory" => integer 7152528
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1785
        "start_memory" => integer 7321720
        "stop_time" => float 1422311272.1786
        "stop_memory" => integer 7322272
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1787
        "start_memory" => integer 7326960
        "stop_time" => float 1422311272.1789
        "stop_memory" => integer 7327520
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1823
        "start_memory" => integer 7383184
        "stop_time" => float 1422311272.1824
        "stop_memory" => integer 7383760
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1825
        "start_memory" => integer 7388672
        "stop_time" => float 1422311272.1825
        "stop_memory" => integer 7389240
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1833
        "start_memory" => integer 7429272
        "stop_time" => float 1422311272.1834
        "stop_memory" => integer 7429848
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1835
        "start_memory" => integer 7434800
        "stop_time" => float 1422311272.1835
        "stop_memory" => integer 7435392
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1848
        "start_memory" => integer 7461336
        "stop_time" => float 1422311272.1848
        "stop_memory" => integer 7461904
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1849
        "start_memory" => integer 7466776
        "stop_time" => float 1422311272.185
        "stop_memory" => integer 7467352
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1876
        "start_memory" => integer 7493408
        "stop_time" => float 1422311272.1877
        "stop_memory" => integer 7493984
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1925
        "start_memory" => integer 7504888
        "stop_time" => float 1422311272.1926
        "stop_memory" => integer 7505448
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1931
        "start_memory" => integer 7515312
        "stop_time" => float 1422311272.1932
        "stop_memory" => integer 7515880
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1949
        "start_memory" => integer 7526528
        "stop_time" => float 1422311272.195
        "stop_memory" => integer 7527080
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1951
        "start_memory" => integer 7531824
        "stop_time" => float 1422311272.1952
        "stop_memory" => integer 7532384
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1958
        "start_memory" => integer 7537832
        "stop_time" => float 1422311272.1959
        "stop_memory" => integer 7538384
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.196
        "start_memory" => integer 7543112
        "stop_time" => float 1422311272.1962
        "stop_memory" => integer 7543688
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1968
        "start_memory" => integer 7549136
        "stop_time" => float 1422311272.1968
        "stop_memory" => integer 7549688
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.197
        "start_memory" => integer 7554440
        "stop_time" => float 1422311272.1971
        "stop_memory" => integer 7555016
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1982
        "start_memory" => integer 7567024
        "stop_time" => float 1422311272.1983
        "stop_memory" => integer 7567560
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1983
        "start_memory" => integer 7572232
        "stop_time" => float 1422311272.1984
        "stop_memory" => integer 7572800
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.199
        "start_memory" => integer 7575840
        "stop_time" => float 1422311272.1991
        "stop_memory" => integer 7576416
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1993
        "start_memory" => integer 7585680
        "stop_time" => float 1422311272.1993
        "stop_memory" => integer 7586216
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.1994
        "start_memory" => integer 7590864
        "stop_time" => float 1422311272.1994
        "stop_memory" => integer 7591432
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2019
        "start_memory" => integer 7966840
        "stop_time" => float 1422311272.202
        "stop_memory" => integer 7967416
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2028
        "start_memory" => integer 8045984
        "stop_time" => float 1422311272.2029
        "stop_memory" => integer 8046568
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2036
        "start_memory" => integer 8091792
        "stop_time" => float 1422311272.2036
        "stop_memory" => integer 8092352
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2037
        "start_memory" => integer 8097216
        "stop_time" => float 1422311272.2038
        "stop_memory" => integer 8097800
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2044
        "start_memory" => integer 8106760
        "stop_time" => float 1422311272.2044
        "stop_memory" => integer 8107304
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.205
        "start_memory" => integer 8138768
        "stop_time" => float 1422311272.2051
        "stop_memory" => integer 8139328
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2056
        "start_memory" => integer 8173736
        "stop_time" => float 1422311272.2057
        "stop_memory" => integer 8174312
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2064
        "start_memory" => integer 8206424
        "stop_time" => float 1422311272.2064
        "stop_memory" => integer 8206960
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2065
        "start_memory" => integer 8211616
        "stop_time" => float 1422311272.2065
        "stop_memory" => integer 8212184
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2091
        "start_memory" => integer 8253992
        "stop_time" => float 1422311272.2092
        "stop_memory" => integer 8254584
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2093
        "start_memory" => integer 8259768
        "stop_time" => float 1422311272.2093
        "stop_memory" => integer 8260360
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2126
        "start_memory" => integer 8304456
        "stop_time" => float 1422311272.2127
        "stop_memory" => integer 8305008
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2129
        "start_memory" => integer 8309944
        "stop_time" => float 1422311272.2129
        "stop_memory" => integer 8310528
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2179
        "start_memory" => integer 8412216
        "stop_time" => float 1422311272.2182
        "stop_memory" => integer 8412744
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2183
        "start_memory" => integer 8417400
        "stop_time" => float 1422311272.2184
        "stop_memory" => integer 8417968
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.219
        "start_memory" => integer 8432896
        "stop_time" => float 1422311272.2191
        "stop_memory" => integer 8433448
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2192
        "start_memory" => integer 8438096
        "stop_time" => float 1422311272.2193
        "stop_memory" => integer 8438664
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2202
        "start_memory" => integer 8505096
        "stop_time" => float 1422311272.2203
        "stop_memory" => integer 8505656
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2204
        "start_memory" => integer 8510512
        "stop_time" => float 1422311272.2205
        "stop_memory" => integer 8511088
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2216
        "start_memory" => integer 8534528
        "stop_time" => float 1422311272.2217
        "stop_memory" => integer 8535136
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2218
        "start_memory" => integer 8540056
        "stop_time" => float 1422311272.2218
        "stop_memory" => integer 8540648
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2238
        "start_memory" => integer 8611656
        "stop_time" => float 1422311272.2239
        "stop_memory" => integer 8612192
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.224
        "start_memory" => integer 8617064
        "stop_time" => float 1422311272.2241
        "stop_memory" => integer 8617616
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2251
        "start_memory" => integer 8645320
        "stop_time" => float 1422311272.2252
        "stop_memory" => integer 8645856
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2254
        "start_memory" => integer 8650512
        "stop_time" => float 1422311272.2255
        "stop_memory" => integer 8651080
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2274
        "start_memory" => integer 8772304
        "stop_time" => float 1422311272.2275
        "stop_memory" => integer 8772848
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2276
        "start_memory" => integer 8777520
        "stop_time" => float 1422311272.2277
        "stop_memory" => integer 8778088
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2362
        "start_memory" => integer 8809472
        "stop_time" => float 1422311272.2363
        "stop_memory" => integer 8810016
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2365
        "start_memory" => integer 8814664
        "stop_time" => float 1422311272.2366
        "stop_memory" => integer 8815232
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2381
        "start_memory" => integer 8915528
        "stop_time" => float 1422311272.2382
        "stop_memory" => integer 8916088
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2383
        "start_memory" => integer 8920800
        "stop_time" => float 1422311272.2383
        "stop_memory" => integer 8921376
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2394
        "start_memory" => integer 9029120
        "stop_time" => float 1422311272.2395
        "stop_memory" => integer 9029688
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2396
        "start_memory" => integer 9034608
        "stop_time" => float 1422311272.2397
        "stop_memory" => integer 9035192
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2406
        "start_memory" => integer 9056376
        "stop_time" => float 1422311272.2407
        "stop_memory" => integer 9056952
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2412
        "start_memory" => integer 9021432
        "stop_time" => float 1422311272.2413
        "stop_memory" => integer 9023368
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.242
        "start_memory" => integer 9094088
        "stop_time" => float 1422311272.2421
        "stop_memory" => integer 9095816
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422311272.2421
        "start_memory" => integer 9095576
        "stop_time" => float 1422311272.2422
        "stop_memory" => integer 9097304
    )
)

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