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 1422808740.7862
        "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 1422808740.7863
        "start_memory" => integer 1992216
        "stop_time" => float 1422808740.7871
        "stop_memory" => integer 1992808
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7875
        "start_memory" => integer 1997760
        "stop_time" => float 1422808740.7875
        "stop_memory" => integer 1998352
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7891
        "start_memory" => integer 2123920
        "stop_time" => float 1422808740.7892
        "stop_memory" => integer 2124472
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7896
        "start_memory" => integer 2129392
        "stop_time" => float 1422808740.7897
        "stop_memory" => integer 2129976
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7901
        "start_memory" => integer 2141064
        "stop_time" => float 1422808740.7902
        "stop_memory" => integer 2141608
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7906
        "start_memory" => integer 2146320
        "stop_time" => float 1422808740.7907
        "stop_memory" => integer 2146896
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7916
        "start_memory" => integer 2156152
        "stop_time" => float 1422808740.7917
        "stop_memory" => integer 2156712
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7921
        "start_memory" => integer 2161368
        "stop_time" => float 1422808740.7923
        "stop_memory" => integer 2161976
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7946
        "start_memory" => integer 2322744
        "stop_time" => float 1422808740.7947
        "stop_memory" => integer 2323304
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7958
        "start_memory" => integer 2328152
        "stop_time" => float 1422808740.7959
        "stop_memory" => integer 2328728
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7966
        "start_memory" => integer 2342200
        "stop_time" => float 1422808740.7967
        "stop_memory" => integer 2342752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7972
        "start_memory" => integer 2347400
        "stop_time" => float 1422808740.7976
        "stop_memory" => integer 2347968
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7985
        "start_memory" => integer 2402760
        "stop_time" => float 1422808740.7985
        "stop_memory" => integer 2403352
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7986
        "start_memory" => integer 2404512
        "stop_time" => float 1422808740.7987
        "stop_memory" => integer 2405088
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7991
        "start_memory" => integer 2409960
        "stop_time" => float 1422808740.7991
        "stop_memory" => integer 2410536
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.7999
        "start_memory" => integer 2475944
        "stop_time" => float 1422808740.8
        "stop_memory" => integer 2476560
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8
        "start_memory" => integer 2477336
        "stop_time" => float 1422808740.8004
        "stop_memory" => integer 2477912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8079
        "start_memory" => integer 3146616
        "stop_time" => float 1422808740.809
        "stop_memory" => integer 3147144
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8095
        "start_memory" => integer 3152840
        "stop_time" => float 1422808740.8097
        "stop_memory" => integer 3153408
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8108
        "start_memory" => integer 3186168
        "stop_time" => float 1422808740.8109
        "stop_memory" => integer 3186712
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8112
        "start_memory" => integer 3191352
        "stop_time" => float 1422808740.8112
        "stop_memory" => integer 3191920
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8127
        "start_memory" => integer 3353576
        "stop_time" => float 1422808740.8128
        "stop_memory" => integer 3354152
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8131
        "start_memory" => integer 3359032
        "stop_time" => float 1422808740.8133
        "stop_memory" => integer 3359616
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8138
        "start_memory" => integer 3362304
        "stop_time" => float 1422808740.8139
        "stop_memory" => integer 3362864
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8155
        "start_memory" => integer 3367736
        "stop_time" => float 1422808740.8157
        "stop_memory" => integer 3368320
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8176
        "start_memory" => integer 3417984
        "stop_time" => float 1422808740.8179
        "stop_memory" => integer 3418528
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8186
        "start_memory" => integer 3423200
        "stop_time" => float 1422808740.8188
        "stop_memory" => integer 3423776
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8206
        "start_memory" => integer 3521840
        "stop_time" => float 1422808740.8207
        "stop_memory" => integer 3522376
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8211
        "start_memory" => integer 3527016
        "stop_time" => float 1422808740.8212
        "stop_memory" => integer 3527584
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.8263
        "start_memory" => integer 3612200
        "stop_time" => float 1422808740.8265
        "stop_memory" => integer 3612792
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9285
        "start_memory" => integer 3654944
        "stop_time" => float 1422808740.9285
        "stop_memory" => integer 3655504
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9288
        "start_memory" => integer 3660168
        "stop_time" => float 1422808740.929
        "stop_memory" => integer 3661000
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9304
        "start_memory" => integer 3701616
        "stop_time" => float 1422808740.9304
        "stop_memory" => integer 3702168
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9307
        "start_memory" => integer 3707000
        "stop_time" => float 1422808740.9307
        "stop_memory" => integer 3707576
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9321
        "start_memory" => integer 3731280
        "stop_time" => float 1422808740.9322
        "stop_memory" => integer 3731832
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9329
        "start_memory" => integer 3736512
        "stop_time" => float 1422808740.933
        "stop_memory" => integer 3737088
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9366
        "start_memory" => integer 3804248
        "stop_time" => float 1422808740.9367
        "stop_memory" => integer 3804832
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.938
        "start_memory" => integer 3822824
        "stop_time" => float 1422808740.9381
        "stop_memory" => integer 3823384
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9386
        "start_memory" => integer 3828256
        "stop_time" => float 1422808740.9387
        "stop_memory" => integer 3828840
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9399
        "start_memory" => integer 3893968
        "stop_time" => float 1422808740.9399
        "stop_memory" => integer 3894544
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9405
        "start_memory" => integer 3913968
        "stop_time" => float 1422808740.9406
        "stop_memory" => integer 3914544
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9416
        "start_memory" => integer 3962616
        "stop_time" => float 1422808740.9417
        "stop_memory" => integer 3963192
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9423
        "start_memory" => integer 3973856
        "stop_time" => float 1422808740.9423
        "stop_memory" => integer 3974432
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9427
        "start_memory" => integer 3992440
        "stop_time" => float 1422808740.9428
        "stop_memory" => integer 3993016
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9434
        "start_memory" => integer 4002712
        "stop_time" => float 1422808740.9434
        "stop_memory" => integer 4003288
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9438
        "start_memory" => integer 4023392
        "stop_time" => float 1422808740.9439
        "stop_memory" => integer 4023968
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9445
        "start_memory" => integer 4044472
        "stop_time" => float 1422808740.9446
        "stop_memory" => integer 4045064
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9452
        "start_memory" => integer 4058288
        "stop_time" => float 1422808740.9453
        "stop_memory" => integer 4058856
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9461
        "start_memory" => integer 4071072
        "stop_time" => float 1422808740.9462
        "stop_memory" => integer 4071648
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9478
        "start_memory" => integer 4119912
        "stop_time" => float 1422808740.9479
        "stop_memory" => integer 4120472
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9486
        "start_memory" => integer 4158944
        "stop_time" => float 1422808740.9486
        "stop_memory" => integer 4159528
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9492
        "start_memory" => integer 4178928
        "stop_time" => float 1422808740.9493
        "stop_memory" => integer 4179504
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9499
        "start_memory" => integer 4210680
        "stop_time" => float 1422808740.9499
        "stop_memory" => integer 4211256
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9512
        "start_memory" => integer 4229968
        "stop_time" => float 1422808740.9512
        "stop_memory" => integer 4230512
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9525
        "start_memory" => integer 4235184
        "stop_time" => float 1422808740.9526
        "stop_memory" => integer 4235760
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9535
        "start_memory" => integer 4266600
        "stop_time" => float 1422808740.9536
        "stop_memory" => integer 4267136
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9539
        "start_memory" => integer 4271800
        "stop_time" => float 1422808740.9539
        "stop_memory" => integer 4272368
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9578
        "start_memory" => integer 4413928
        "stop_time" => float 1422808740.9579
        "stop_memory" => integer 4414504
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9671
        "start_memory" => integer 4467304
        "stop_time" => float 1422808740.9672
        "stop_memory" => integer 4467856
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9677
        "start_memory" => integer 4472688
        "stop_time" => float 1422808740.9679
        "stop_memory" => integer 4473264
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9785
        "start_memory" => integer 4498736
        "stop_time" => float 1422808740.9786
        "stop_memory" => integer 4499320
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.979
        "start_memory" => integer 4504256
        "stop_time" => float 1422808740.9791
        "stop_memory" => integer 4504832
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.985
        "start_memory" => integer 4530440
        "stop_time" => float 1422808740.985
        "stop_memory" => integer 4531000
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9853
        "start_memory" => integer 4535856
        "stop_time" => float 1422808740.9854
        "stop_memory" => integer 4536936
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9864
        "start_memory" => integer 4625656
        "stop_time" => float 1422808740.9864
        "stop_memory" => integer 4626256
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9928
        "start_memory" => integer 4633176
        "stop_time" => float 1422808740.9928
        "stop_memory" => integer 4633728
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808740.9932
        "start_memory" => integer 4638608
        "stop_time" => float 1422808740.9932
        "stop_memory" => integer 4639192
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0101
        "start_memory" => integer 4696088
        "stop_time" => float 1422808741.0101
        "stop_memory" => integer 4696648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0106
        "start_memory" => integer 4701568
        "stop_time" => float 1422808741.0106
        "stop_memory" => integer 4702152
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0111
        "start_memory" => integer 4725984
        "stop_time" => float 1422808741.0111
        "stop_memory" => integer 4726560
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0124
        "start_memory" => integer 4735680
        "stop_time" => float 1422808741.0124
        "stop_memory" => integer 4736240
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0128
        "start_memory" => integer 4741104
        "stop_time" => float 1422808741.0129
        "stop_memory" => integer 4741688
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0144
        "start_memory" => integer 4821160
        "stop_time" => float 1422808741.0145
        "stop_memory" => integer 4821720
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0147
        "start_memory" => integer 4826624
        "stop_time" => float 1422808741.0148
        "stop_memory" => integer 4827208
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0208
        "start_memory" => integer 4852880
        "stop_time" => float 1422808741.0209
        "stop_memory" => integer 4853440
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0212
        "start_memory" => integer 4858304
        "stop_time" => float 1422808741.0212
        "stop_memory" => integer 4858888
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0225
        "start_memory" => integer 4880296
        "stop_time" => float 1422808741.0226
        "stop_memory" => integer 4880824
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.023
        "start_memory" => integer 4885472
        "stop_time" => float 1422808741.023
        "stop_memory" => integer 4886040
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.026
        "start_memory" => integer 4896896
        "stop_time" => float 1422808741.026
        "stop_memory" => integer 4897488
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0263
        "start_memory" => integer 4902376
        "stop_time" => float 1422808741.0264
        "stop_memory" => integer 4902952
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0312
        "start_memory" => integer 4947904
        "stop_time" => float 1422808741.0313
        "stop_memory" => integer 4948480
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0321
        "start_memory" => integer 4959616
        "stop_time" => float 1422808741.0322
        "stop_memory" => integer 4960160
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0324
        "start_memory" => integer 4965016
        "stop_time" => float 1422808741.0325
        "stop_memory" => integer 4965592
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0373
        "start_memory" => integer 4988088
        "stop_time" => float 1422808741.0373
        "stop_memory" => integer 4988656
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0406
        "start_memory" => integer 4994208
        "stop_time" => float 1422808741.0406
        "stop_memory" => integer 4994776
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.041
        "start_memory" => integer 4999624
        "stop_time" => float 1422808741.0411
        "stop_memory" => integer 5000208
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0448
        "start_memory" => integer 5133936
        "stop_time" => float 1422808741.0448
        "stop_memory" => integer 5134512
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0453
        "start_memory" => integer 5139464
        "stop_time" => float 1422808741.0454
        "stop_memory" => integer 5140056
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0464
        "start_memory" => integer 5154912
        "stop_time" => float 1422808741.0465
        "stop_memory" => integer 5155480
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0469
        "start_memory" => integer 5160440
        "stop_time" => float 1422808741.047
        "stop_memory" => integer 5161032
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0496
        "start_memory" => integer 5166976
        "stop_time" => float 1422808741.0497
        "stop_memory" => integer 5167528
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.05
        "start_memory" => integer 5172416
        "stop_time" => float 1422808741.05
        "stop_memory" => integer 5173000
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0526
        "start_memory" => integer 5317600
        "stop_time" => float 1422808741.0527
        "stop_memory" => integer 5318176
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0532
        "start_memory" => integer 5323136
        "stop_time" => float 1422808741.0533
        "stop_memory" => integer 5323752
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0538
        "start_memory" => integer 5344432
        "stop_time" => float 1422808741.0539
        "stop_memory" => integer 5345000
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0549
        "start_memory" => integer 5349912
        "stop_time" => float 1422808741.0549
        "stop_memory" => integer 5350488
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0563
        "start_memory" => integer 5412768
        "stop_time" => float 1422808741.0564
        "stop_memory" => integer 5413328
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0569
        "start_memory" => integer 5418200
        "stop_time" => float 1422808741.057
        "stop_memory" => integer 5418784
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0591
        "start_memory" => integer 5484280
        "stop_time" => float 1422808741.0592
        "stop_memory" => integer 5484840
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0594
        "start_memory" => integer 5489704
        "stop_time" => float 1422808741.0595
        "stop_memory" => integer 5490288
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0613
        "start_memory" => integer 5532944
        "stop_time" => float 1422808741.0613
        "stop_memory" => integer 5533520
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0619
        "start_memory" => integer 5538488
        "stop_time" => float 1422808741.062
        "stop_memory" => integer 5539080
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0638
        "start_memory" => integer 5597920
        "stop_time" => float 1422808741.0639
        "stop_memory" => integer 5598504
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0642
        "start_memory" => integer 5603568
        "stop_time" => float 1422808741.0643
        "stop_memory" => integer 5604168
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0648
        "start_memory" => integer 5623840
        "stop_time" => float 1422808741.0649
        "stop_memory" => integer 5624416
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0652
        "start_memory" => integer 5629480
        "stop_time" => float 1422808741.0654
        "stop_memory" => integer 5630080
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0672
        "start_memory" => integer 5694520
        "stop_time" => float 1422808741.0673
        "stop_memory" => integer 5695096
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0679
        "start_memory" => integer 5700160
        "stop_time" => float 1422808741.068
        "stop_memory" => integer 5700760
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0696
        "start_memory" => integer 5749088
        "stop_time" => float 1422808741.0697
        "stop_memory" => integer 5749664
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0699
        "start_memory" => integer 5754720
        "stop_time" => float 1422808741.07
        "stop_memory" => integer 5755320
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0717
        "start_memory" => integer 5796624
        "stop_time" => float 1422808741.0717
        "stop_memory" => integer 5797200
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0722
        "start_memory" => integer 5802264
        "stop_time" => float 1422808741.0723
        "stop_memory" => integer 5802864
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0755
        "start_memory" => integer 5915792
        "stop_time" => float 1422808741.0757
        "stop_memory" => integer 5916368
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0763
        "start_memory" => integer 5921432
        "stop_time" => float 1422808741.0764
        "stop_memory" => integer 5922032
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0811
        "start_memory" => integer 5970664
        "stop_time" => float 1422808741.0812
        "stop_memory" => integer 5971224
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0815
        "start_memory" => integer 5976192
        "stop_time" => float 1422808741.0816
        "stop_memory" => integer 5976784
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0838
        "start_memory" => integer 5999904
        "stop_time" => float 1422808741.0839
        "stop_memory" => integer 6000424
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0843
        "start_memory" => integer 6005064
        "stop_time" => float 1422808741.0844
        "stop_memory" => integer 6005632
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0858
        "start_memory" => integer 6120288
        "stop_time" => float 1422808741.0859
        "stop_memory" => integer 6120848
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0861
        "start_memory" => integer 6125520
        "stop_time" => float 1422808741.0862
        "stop_memory" => integer 6126112
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0916
        "start_memory" => integer 6146432
        "stop_time" => float 1422808741.0917
        "stop_memory" => integer 6146968
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.092
        "start_memory" => integer 6151616
        "stop_time" => float 1422808741.0921
        "stop_memory" => integer 6152184
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0968
        "start_memory" => integer 6188864
        "stop_time" => float 1422808741.097
        "stop_memory" => integer 6189408
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0973
        "start_memory" => integer 6194048
        "stop_time" => float 1422808741.0974
        "stop_memory" => integer 6194616
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0988
        "start_memory" => integer 6237032
        "stop_time" => float 1422808741.099
        "stop_memory" => integer 6237576
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.0994
        "start_memory" => integer 6242224
        "stop_time" => float 1422808741.0995
        "stop_memory" => integer 6242792
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1009
        "start_memory" => integer 6286984
        "stop_time" => float 1422808741.101
        "stop_memory" => integer 6287528
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1013
        "start_memory" => integer 6292168
        "stop_time" => float 1422808741.1014
        "stop_memory" => integer 6293760
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.104
        "start_memory" => integer 6369296
        "stop_time" => float 1422808741.1041
        "stop_memory" => integer 6369840
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1045
        "start_memory" => integer 6374496
        "stop_time" => float 1422808741.1046
        "stop_memory" => integer 6375064
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1082
        "start_memory" => integer 6397248
        "stop_time" => float 1422808741.1083
        "stop_memory" => integer 6397808
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1086
        "start_memory" => integer 6402448
        "stop_time" => float 1422808741.1087
        "stop_memory" => integer 6403016
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1107
        "start_memory" => integer 6432168
        "stop_time" => float 1422808741.1107
        "stop_memory" => integer 6432728
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1111
        "start_memory" => integer 6437576
        "stop_time" => float 1422808741.1112
        "stop_memory" => integer 6438152
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1123
        "start_memory" => integer 6458448
        "stop_time" => float 1422808741.1123
        "stop_memory" => integer 6459016
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1129
        "start_memory" => integer 6463952
        "stop_time" => float 1422808741.113
        "stop_memory" => integer 6464536
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1142
        "start_memory" => integer 6479584
        "stop_time" => float 1422808741.1142
        "stop_memory" => integer 6480144
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1145
        "start_memory" => integer 6485080
        "stop_time" => float 1422808741.1146
        "stop_memory" => integer 6485664
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1155
        "start_memory" => integer 6500704
        "stop_time" => float 1422808741.1156
        "stop_memory" => integer 6501264
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1159
        "start_memory" => integer 6506200
        "stop_time" => float 1422808741.116
        "stop_memory" => integer 6506784
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1169
        "start_memory" => integer 6521832
        "stop_time" => float 1422808741.1169
        "stop_memory" => integer 6522392
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1174
        "start_memory" => integer 6527328
        "stop_time" => float 1422808741.1174
        "stop_memory" => integer 6527912
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.119
        "start_memory" => integer 6542936
        "stop_time" => float 1422808741.1191
        "stop_memory" => integer 6543496
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1194
        "start_memory" => integer 6548432
        "stop_time" => float 1422808741.1195
        "stop_memory" => integer 6549016
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1216
        "start_memory" => integer 6564040
        "stop_time" => float 1422808741.1216
        "stop_memory" => integer 6564600
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.122
        "start_memory" => integer 6569536
        "stop_time" => float 1422808741.1221
        "stop_memory" => integer 6570120
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1236
        "start_memory" => integer 6585176
        "stop_time" => float 1422808741.1237
        "stop_memory" => integer 6585736
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1241
        "start_memory" => integer 6590672
        "stop_time" => float 1422808741.1242
        "stop_memory" => integer 6591256
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1269
        "start_memory" => integer 6606280
        "stop_time" => float 1422808741.127
        "stop_memory" => integer 6606840
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1274
        "start_memory" => integer 6611776
        "stop_time" => float 1422808741.1275
        "stop_memory" => integer 6612360
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1288
        "start_memory" => integer 6627496
        "stop_time" => float 1422808741.1288
        "stop_memory" => integer 6628056
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1292
        "start_memory" => integer 6632992
        "stop_time" => float 1422808741.1294
        "stop_memory" => integer 6633576
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1317
        "start_memory" => integer 6648608
        "stop_time" => float 1422808741.1317
        "stop_memory" => integer 6649168
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.132
        "start_memory" => integer 6654104
        "stop_time" => float 1422808741.1321
        "stop_memory" => integer 6654688
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1331
        "start_memory" => integer 6669728
        "stop_time" => float 1422808741.1332
        "stop_memory" => integer 6670288
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1335
        "start_memory" => integer 6675224
        "stop_time" => float 1422808741.1336
        "stop_memory" => integer 6675808
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1381
        "start_memory" => integer 6690816
        "stop_time" => float 1422808741.1382
        "stop_memory" => integer 6691376
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1387
        "start_memory" => integer 6696312
        "stop_time" => float 1422808741.1388
        "stop_memory" => integer 6696896
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1398
        "start_memory" => integer 6711920
        "stop_time" => float 1422808741.1399
        "stop_memory" => integer 6712480
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1401
        "start_memory" => integer 6717416
        "stop_time" => float 1422808741.1401
        "stop_memory" => integer 6718000
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1413
        "start_memory" => integer 6733024
        "stop_time" => float 1422808741.1414
        "stop_memory" => integer 6733584
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1417
        "start_memory" => integer 6738520
        "stop_time" => float 1422808741.1417
        "stop_memory" => integer 6739104
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.143
        "start_memory" => integer 6754160
        "stop_time" => float 1422808741.1431
        "stop_memory" => integer 6754720
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1435
        "start_memory" => integer 6759656
        "stop_time" => float 1422808741.1435
        "stop_memory" => integer 6760240
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1448
        "start_memory" => integer 6775288
        "stop_time" => float 1422808741.1448
        "stop_memory" => integer 6775848
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1452
        "start_memory" => integer 6780784
        "stop_time" => float 1422808741.1452
        "stop_memory" => integer 6781368
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1464
        "start_memory" => integer 6796552
        "stop_time" => float 1422808741.1465
        "stop_memory" => integer 6797112
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1468
        "start_memory" => integer 6802048
        "stop_time" => float 1422808741.1468
        "stop_memory" => integer 6802632
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1481
        "start_memory" => integer 6817704
        "stop_time" => float 1422808741.1482
        "stop_memory" => integer 6818264
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1486
        "start_memory" => integer 6823200
        "stop_time" => float 1422808741.1486
        "stop_memory" => integer 6823784
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.15
        "start_memory" => integer 6838840
        "stop_time" => float 1422808741.1501
        "stop_memory" => integer 6839400
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1507
        "start_memory" => integer 6844336
        "stop_time" => float 1422808741.1507
        "stop_memory" => integer 6844920
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1522
        "start_memory" => integer 6859968
        "stop_time" => float 1422808741.1523
        "stop_memory" => integer 6860528
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1527
        "start_memory" => integer 6865464
        "stop_time" => float 1422808741.1528
        "stop_memory" => integer 6866048
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.154
        "start_memory" => integer 6881072
        "stop_time" => float 1422808741.1543
        "stop_memory" => integer 6881632
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1546
        "start_memory" => integer 6886568
        "stop_time" => float 1422808741.1546
        "stop_memory" => integer 6887152
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1556
        "start_memory" => integer 6902176
        "stop_time" => float 1422808741.1557
        "stop_memory" => integer 6902736
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1559
        "start_memory" => integer 6907672
        "stop_time" => float 1422808741.156
        "stop_memory" => integer 6908256
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1574
        "start_memory" => integer 6923312
        "stop_time" => float 1422808741.1575
        "stop_memory" => integer 6923872
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1577
        "start_memory" => integer 6928808
        "stop_time" => float 1422808741.1579
        "stop_memory" => integer 6929392
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1593
        "start_memory" => integer 6944432
        "stop_time" => float 1422808741.1593
        "stop_memory" => integer 6944992
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1596
        "start_memory" => integer 6949928
        "stop_time" => float 1422808741.1596
        "stop_memory" => integer 6950512
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1621
        "start_memory" => integer 6965776
        "stop_time" => float 1422808741.1622
        "stop_memory" => integer 6966336
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1624
        "start_memory" => integer 6971248
        "stop_time" => float 1422808741.1625
        "stop_memory" => integer 6971816
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.166
        "start_memory" => integer 7009840
        "stop_time" => float 1422808741.1661
        "stop_memory" => integer 7010392
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1664
        "start_memory" => integer 7015080
        "stop_time" => float 1422808741.1665
        "stop_memory" => integer 7015656
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1688
        "start_memory" => integer 7146720
        "stop_time" => float 1422808741.1689
        "stop_memory" => integer 7147272
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1693
        "start_memory" => integer 7151952
        "stop_time" => float 1422808741.1693
        "stop_memory" => integer 7152528
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.172
        "start_memory" => integer 7321720
        "stop_time" => float 1422808741.1725
        "stop_memory" => integer 7322272
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1729
        "start_memory" => integer 7326960
        "stop_time" => float 1422808741.1747
        "stop_memory" => integer 7327520
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1813
        "start_memory" => integer 7383184
        "stop_time" => float 1422808741.1814
        "stop_memory" => integer 7383760
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1817
        "start_memory" => integer 7388672
        "stop_time" => float 1422808741.1819
        "stop_memory" => integer 7389240
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1837
        "start_memory" => integer 7429272
        "stop_time" => float 1422808741.1837
        "stop_memory" => integer 7429848
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.184
        "start_memory" => integer 7434800
        "stop_time" => float 1422808741.1841
        "stop_memory" => integer 7435392
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1881
        "start_memory" => integer 7461336
        "stop_time" => float 1422808741.1882
        "stop_memory" => integer 7461904
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1886
        "start_memory" => integer 7466776
        "stop_time" => float 1422808741.1887
        "stop_memory" => integer 7467352
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1917
        "start_memory" => integer 7493408
        "stop_time" => float 1422808741.1918
        "stop_memory" => integer 7493984
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1971
        "start_memory" => integer 7504888
        "stop_time" => float 1422808741.1972
        "stop_memory" => integer 7505448
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.1978
        "start_memory" => integer 7515312
        "stop_time" => float 1422808741.1979
        "stop_memory" => integer 7515880
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2004
        "start_memory" => integer 7526528
        "stop_time" => float 1422808741.2005
        "stop_memory" => integer 7527080
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.201
        "start_memory" => integer 7531824
        "stop_time" => float 1422808741.2011
        "stop_memory" => integer 7532384
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2021
        "start_memory" => integer 7537832
        "stop_time" => float 1422808741.2023
        "stop_memory" => integer 7538384
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2033
        "start_memory" => integer 7543112
        "stop_time" => float 1422808741.2034
        "stop_memory" => integer 7543688
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2051
        "start_memory" => integer 7549136
        "stop_time" => float 1422808741.2052
        "stop_memory" => integer 7549688
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2055
        "start_memory" => integer 7554440
        "stop_time" => float 1422808741.2056
        "stop_memory" => integer 7555016
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2086
        "start_memory" => integer 7567024
        "stop_time" => float 1422808741.2088
        "stop_memory" => integer 7567560
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2092
        "start_memory" => integer 7572232
        "stop_time" => float 1422808741.2092
        "stop_memory" => integer 7572800
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2099
        "start_memory" => integer 7575840
        "stop_time" => float 1422808741.21
        "stop_memory" => integer 7576416
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2102
        "start_memory" => integer 7585680
        "stop_time" => float 1422808741.2103
        "stop_memory" => integer 7586216
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2105
        "start_memory" => integer 7590864
        "stop_time" => float 1422808741.2106
        "stop_memory" => integer 7591432
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.214
        "start_memory" => integer 7966840
        "stop_time" => float 1422808741.214
        "stop_memory" => integer 7967416
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2153
        "start_memory" => integer 8045984
        "stop_time" => float 1422808741.2153
        "stop_memory" => integer 8046568
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2162
        "start_memory" => integer 8091792
        "stop_time" => float 1422808741.2164
        "stop_memory" => integer 8092352
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2167
        "start_memory" => integer 8097216
        "stop_time" => float 1422808741.2168
        "stop_memory" => integer 8097800
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2177
        "start_memory" => integer 8106760
        "stop_time" => float 1422808741.2178
        "stop_memory" => integer 8107304
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2187
        "start_memory" => integer 8138768
        "stop_time" => float 1422808741.2187
        "stop_memory" => integer 8139328
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2198
        "start_memory" => integer 8173736
        "stop_time" => float 1422808741.2199
        "stop_memory" => integer 8174312
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.221
        "start_memory" => integer 8206424
        "stop_time" => float 1422808741.2213
        "stop_memory" => integer 8206960
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2216
        "start_memory" => integer 8211616
        "stop_time" => float 1422808741.2217
        "stop_memory" => integer 8212184
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2259
        "start_memory" => integer 8253992
        "stop_time" => float 1422808741.226
        "stop_memory" => integer 8254584
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2264
        "start_memory" => integer 8259768
        "stop_time" => float 1422808741.2264
        "stop_memory" => integer 8260360
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2308
        "start_memory" => integer 8304456
        "stop_time" => float 1422808741.2309
        "stop_memory" => integer 8305008
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2313
        "start_memory" => integer 8309944
        "stop_time" => float 1422808741.2314
        "stop_memory" => integer 8310528
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2388
        "start_memory" => integer 8412216
        "stop_time" => float 1422808741.239
        "stop_memory" => integer 8412744
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2393
        "start_memory" => integer 8417400
        "stop_time" => float 1422808741.2394
        "stop_memory" => integer 8417968
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2406
        "start_memory" => integer 8432896
        "stop_time" => float 1422808741.2407
        "stop_memory" => integer 8433448
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2795
        "start_memory" => integer 8438096
        "stop_time" => float 1422808741.2797
        "stop_memory" => integer 8438664
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2816
        "start_memory" => integer 8505096
        "stop_time" => float 1422808741.2817
        "stop_memory" => integer 8505656
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2819
        "start_memory" => integer 8510512
        "stop_time" => float 1422808741.282
        "stop_memory" => integer 8511088
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2831
        "start_memory" => integer 8534528
        "stop_time" => float 1422808741.2831
        "stop_memory" => integer 8535136
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2835
        "start_memory" => integer 8540056
        "stop_time" => float 1422808741.2835
        "stop_memory" => integer 8540648
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2864
        "start_memory" => integer 8611656
        "stop_time" => float 1422808741.2865
        "stop_memory" => integer 8612192
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2868
        "start_memory" => integer 8617064
        "stop_time" => float 1422808741.2869
        "stop_memory" => integer 8617616
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2884
        "start_memory" => integer 8645320
        "stop_time" => float 1422808741.2885
        "stop_memory" => integer 8645856
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2891
        "start_memory" => integer 8650512
        "stop_time" => float 1422808741.2892
        "stop_memory" => integer 8651080
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.291
        "start_memory" => integer 8772304
        "stop_time" => float 1422808741.2911
        "stop_memory" => integer 8772848
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.2915
        "start_memory" => integer 8777520
        "stop_time" => float 1422808741.2916
        "stop_memory" => integer 8778088
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3008
        "start_memory" => integer 8809472
        "stop_time" => float 1422808741.3009
        "stop_memory" => integer 8810016
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3014
        "start_memory" => integer 8814664
        "stop_time" => float 1422808741.3015
        "stop_memory" => integer 8815232
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3036
        "start_memory" => integer 8915528
        "stop_time" => float 1422808741.3037
        "stop_memory" => integer 8916088
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3042
        "start_memory" => integer 8920800
        "stop_time" => float 1422808741.3043
        "stop_memory" => integer 8921376
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3066
        "start_memory" => integer 9029120
        "stop_time" => float 1422808741.3066
        "stop_memory" => integer 9029688
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3069
        "start_memory" => integer 9034608
        "stop_time" => float 1422808741.307
        "stop_memory" => integer 9035192
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3083
        "start_memory" => integer 9056376
        "stop_time" => float 1422808741.3083
        "stop_memory" => integer 9056952
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3086
        "start_memory" => integer 9021432
        "stop_time" => float 1422808741.3087
        "stop_memory" => integer 9023368
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3104
        "start_memory" => integer 9094088
        "stop_time" => float 1422808741.3104
        "stop_memory" => integer 9095816
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422808741.3105
        "start_memory" => integer 9095576
        "stop_time" => float 1422808741.3105
        "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'],
	);
}