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 1414243272.0606
        "start_memory" => integer 1988816
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0606
        "start_memory" => integer 1991160
        "stop_time" => float 1414243272.0607
        "stop_memory" => integer 1991752
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0607
        "start_memory" => integer 1996704
        "stop_time" => float 1414243272.0608
        "stop_memory" => integer 1997296
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0613
        "start_memory" => integer 2122840
        "stop_time" => float 1414243272.0614
        "stop_memory" => integer 2123392
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0615
        "start_memory" => integer 2128312
        "stop_time" => float 1414243272.0615
        "stop_memory" => integer 2128920
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0616
        "start_memory" => integer 2140008
        "stop_time" => float 1414243272.0617
        "stop_memory" => integer 2140552
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0617
        "start_memory" => integer 2145264
        "stop_time" => float 1414243272.0618
        "stop_memory" => integer 2145840
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0619
        "start_memory" => integer 2155120
        "stop_time" => float 1414243272.062
        "stop_memory" => integer 2155656
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0621
        "start_memory" => integer 2160312
        "stop_time" => float 1414243272.0621
        "stop_memory" => integer 2160960
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.063
        "start_memory" => integer 2321712
        "stop_time" => float 1414243272.063
        "stop_memory" => integer 2322272
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0631
        "start_memory" => integer 2327120
        "stop_time" => float 1414243272.0631
        "stop_memory" => integer 2327696
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0634
        "start_memory" => integer 2341168
        "stop_time" => float 1414243272.0634
        "stop_memory" => integer 2341720
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0635
        "start_memory" => integer 2346352
        "stop_time" => float 1414243272.0636
        "stop_memory" => integer 2346920
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0638
        "start_memory" => integer 2401744
        "stop_time" => float 1414243272.0639
        "stop_memory" => integer 2402336
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0639
        "start_memory" => integer 2403496
        "stop_time" => float 1414243272.0639
        "stop_memory" => integer 2404072
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.064
        "start_memory" => integer 2408944
        "stop_time" => float 1414243272.064
        "stop_memory" => integer 2409520
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0644
        "start_memory" => integer 2474968
        "stop_time" => float 1414243272.0644
        "stop_memory" => integer 2475584
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0644
        "start_memory" => integer 2476368
        "stop_time" => float 1414243272.0645
        "stop_memory" => integer 2476944
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0674
        "start_memory" => integer 3145592
        "stop_time" => float 1414243272.0675
        "stop_memory" => integer 3146120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0676
        "start_memory" => integer 3151800
        "stop_time" => float 1414243272.0676
        "stop_memory" => integer 3152368
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0679
        "start_memory" => integer 3185112
        "stop_time" => float 1414243272.068
        "stop_memory" => integer 3185656
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.068
        "start_memory" => integer 3190296
        "stop_time" => float 1414243272.0681
        "stop_memory" => integer 3190864
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.069
        "start_memory" => integer 3352496
        "stop_time" => float 1414243272.069
        "stop_memory" => integer 3353072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0691
        "start_memory" => integer 3357952
        "stop_time" => float 1414243272.0691
        "stop_memory" => integer 3358536
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0692
        "start_memory" => integer 3361224
        "stop_time" => float 1414243272.0693
        "stop_memory" => integer 3361784
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.07
        "start_memory" => integer 3366656
        "stop_time" => float 1414243272.07
        "stop_memory" => integer 3367240
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0703
        "start_memory" => integer 3416904
        "stop_time" => float 1414243272.0703
        "stop_memory" => integer 3417448
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0704
        "start_memory" => integer 3422120
        "stop_time" => float 1414243272.0704
        "stop_memory" => integer 3422696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0711
        "start_memory" => integer 3520768
        "stop_time" => float 1414243272.0711
        "stop_memory" => integer 3521304
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0712
        "start_memory" => integer 3525944
        "stop_time" => float 1414243272.0712
        "stop_memory" => integer 3526512
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.0732
        "start_memory" => integer 3611128
        "stop_time" => float 1414243272.0732
        "stop_memory" => integer 3611720
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2794
        "start_memory" => integer 3653872
        "stop_time" => float 1414243272.2794
        "stop_memory" => integer 3654432
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2798
        "start_memory" => integer 3659096
        "stop_time" => float 1414243272.2798
        "stop_memory" => integer 3659928
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2808
        "start_memory" => integer 3700544
        "stop_time" => float 1414243272.2808
        "stop_memory" => integer 3701096
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2811
        "start_memory" => integer 3705928
        "stop_time" => float 1414243272.2811
        "stop_memory" => integer 3706504
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2824
        "start_memory" => integer 3730216
        "stop_time" => float 1414243272.2825
        "stop_memory" => integer 3730768
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2827
        "start_memory" => integer 3735448
        "stop_time" => float 1414243272.2828
        "stop_memory" => integer 3736024
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2891
        "start_memory" => integer 3803176
        "stop_time" => float 1414243272.2891
        "stop_memory" => integer 3803760
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2898
        "start_memory" => integer 3821752
        "stop_time" => float 1414243272.2898
        "stop_memory" => integer 3822312
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2904
        "start_memory" => integer 3827176
        "stop_time" => float 1414243272.2905
        "stop_memory" => integer 3827760
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2914
        "start_memory" => integer 3892888
        "stop_time" => float 1414243272.2915
        "stop_memory" => integer 3893464
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2925
        "start_memory" => integer 3912880
        "stop_time" => float 1414243272.2926
        "stop_memory" => integer 3913456
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2935
        "start_memory" => integer 3961512
        "stop_time" => float 1414243272.2936
        "stop_memory" => integer 3962088
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.294
        "start_memory" => integer 3972744
        "stop_time" => float 1414243272.294
        "stop_memory" => integer 3973320
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2947
        "start_memory" => integer 3991328
        "stop_time" => float 1414243272.2948
        "stop_memory" => integer 3991904
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2951
        "start_memory" => integer 4001568
        "stop_time" => float 1414243272.2952
        "stop_memory" => integer 4002144
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2958
        "start_memory" => integer 4022248
        "stop_time" => float 1414243272.2959
        "stop_memory" => integer 4022824
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2967
        "start_memory" => integer 4043312
        "stop_time" => float 1414243272.2967
        "stop_memory" => integer 4043904
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2973
        "start_memory" => integer 4057128
        "stop_time" => float 1414243272.2973
        "stop_memory" => integer 4057696
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2979
        "start_memory" => integer 4069912
        "stop_time" => float 1414243272.2979
        "stop_memory" => integer 4070488
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2984
        "start_memory" => integer 4118776
        "stop_time" => float 1414243272.2984
        "stop_memory" => integer 4119336
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.299
        "start_memory" => integer 4157808
        "stop_time" => float 1414243272.299
        "stop_memory" => integer 4158392
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.2995
        "start_memory" => integer 4177792
        "stop_time" => float 1414243272.2996
        "stop_memory" => integer 4178368
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3
        "start_memory" => integer 4209528
        "stop_time" => float 1414243272.3
        "stop_memory" => integer 4210104
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3004
        "start_memory" => integer 4228816
        "stop_time" => float 1414243272.3004
        "stop_memory" => integer 4229360
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3008
        "start_memory" => integer 4234032
        "stop_time" => float 1414243272.3008
        "stop_memory" => integer 4234608
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3013
        "start_memory" => integer 4265448
        "stop_time" => float 1414243272.3013
        "stop_memory" => integer 4265984
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3014
        "start_memory" => integer 4270648
        "stop_time" => float 1414243272.3015
        "stop_memory" => integer 4271216
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3048
        "start_memory" => integer 4412776
        "stop_time" => float 1414243272.3049
        "stop_memory" => integer 4413352
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3157
        "start_memory" => integer 4466152
        "stop_time" => float 1414243272.3158
        "stop_memory" => integer 4466704
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3163
        "start_memory" => integer 4471536
        "stop_time" => float 1414243272.3164
        "stop_memory" => integer 4472112
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3208
        "start_memory" => integer 4497576
        "stop_time" => float 1414243272.3208
        "stop_memory" => integer 4498160
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3213
        "start_memory" => integer 4503096
        "stop_time" => float 1414243272.3213
        "stop_memory" => integer 4503672
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3259
        "start_memory" => integer 4529304
        "stop_time" => float 1414243272.3259
        "stop_memory" => integer 4529864
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3267
        "start_memory" => integer 4534720
        "stop_time" => float 1414243272.3267
        "stop_memory" => integer 4535800
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3281
        "start_memory" => integer 4624528
        "stop_time" => float 1414243272.3281
        "stop_memory" => integer 4625128
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3344
        "start_memory" => integer 4632048
        "stop_time" => float 1414243272.3344
        "stop_memory" => integer 4632600
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3346
        "start_memory" => integer 4637480
        "stop_time" => float 1414243272.3347
        "stop_memory" => integer 4638064
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.352
        "start_memory" => integer 4694968
        "stop_time" => float 1414243272.3521
        "stop_memory" => integer 4695528
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3528
        "start_memory" => integer 4700448
        "stop_time" => float 1414243272.3528
        "stop_memory" => integer 4701032
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3536
        "start_memory" => integer 4724840
        "stop_time" => float 1414243272.3536
        "stop_memory" => integer 4725416
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3552
        "start_memory" => integer 4734496
        "stop_time" => float 1414243272.3552
        "stop_memory" => integer 4735056
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3557
        "start_memory" => integer 4739920
        "stop_time" => float 1414243272.3558
        "stop_memory" => integer 4740504
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3579
        "start_memory" => integer 4819976
        "stop_time" => float 1414243272.3579
        "stop_memory" => integer 4820536
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3582
        "start_memory" => integer 4825416
        "stop_time" => float 1414243272.3583
        "stop_memory" => integer 4826000
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3647
        "start_memory" => integer 4851696
        "stop_time" => float 1414243272.3647
        "stop_memory" => integer 4852256
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3652
        "start_memory" => integer 4857120
        "stop_time" => float 1414243272.3652
        "stop_memory" => integer 4857704
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3673
        "start_memory" => integer 4879096
        "stop_time" => float 1414243272.3675
        "stop_memory" => integer 4879624
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3677
        "start_memory" => integer 4884272
        "stop_time" => float 1414243272.3678
        "stop_memory" => integer 4884840
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3696
        "start_memory" => integer 4895696
        "stop_time" => float 1414243272.3696
        "stop_memory" => integer 4896288
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3702
        "start_memory" => integer 4901176
        "stop_time" => float 1414243272.3702
        "stop_memory" => integer 4901752
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3768
        "start_memory" => integer 4946704
        "stop_time" => float 1414243272.3768
        "stop_memory" => integer 4947280
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3791
        "start_memory" => integer 4958416
        "stop_time" => float 1414243272.3792
        "stop_memory" => integer 4958960
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.38
        "start_memory" => integer 4963816
        "stop_time" => float 1414243272.38
        "stop_memory" => integer 4964392
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3838
        "start_memory" => integer 4986888
        "stop_time" => float 1414243272.3838
        "stop_memory" => integer 4987456
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3859
        "start_memory" => integer 4993008
        "stop_time" => float 1414243272.386
        "stop_memory" => integer 4993576
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3901
        "start_memory" => integer 4998424
        "stop_time" => float 1414243272.3902
        "stop_memory" => integer 4999008
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3946
        "start_memory" => integer 5132736
        "stop_time" => float 1414243272.3947
        "stop_memory" => integer 5133312
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3984
        "start_memory" => integer 5138264
        "stop_time" => float 1414243272.3984
        "stop_memory" => integer 5138856
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.3996
        "start_memory" => integer 5153720
        "stop_time" => float 1414243272.3996
        "stop_memory" => integer 5154288
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4072
        "start_memory" => integer 5159248
        "stop_time" => float 1414243272.4073
        "stop_memory" => integer 5159840
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4108
        "start_memory" => integer 5165784
        "stop_time" => float 1414243272.4108
        "stop_memory" => integer 5166336
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4111
        "start_memory" => integer 5171200
        "stop_time" => float 1414243272.4111
        "stop_memory" => integer 5171784
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4159
        "start_memory" => integer 5316384
        "stop_time" => float 1414243272.416
        "stop_memory" => integer 5316960
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4162
        "start_memory" => integer 5321920
        "stop_time" => float 1414243272.4163
        "stop_memory" => integer 5322512
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4167
        "start_memory" => integer 5343192
        "stop_time" => float 1414243272.4167
        "stop_memory" => integer 5343760
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.417
        "start_memory" => integer 5348648
        "stop_time" => float 1414243272.417
        "stop_memory" => integer 5349224
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4247
        "start_memory" => integer 5411528
        "stop_time" => float 1414243272.4248
        "stop_memory" => integer 5412088
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4251
        "start_memory" => integer 5416960
        "stop_time" => float 1414243272.4251
        "stop_memory" => integer 5417544
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.426
        "start_memory" => integer 5483048
        "stop_time" => float 1414243272.4261
        "stop_memory" => integer 5483608
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4264
        "start_memory" => integer 5488472
        "stop_time" => float 1414243272.4264
        "stop_memory" => integer 5489056
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4277
        "start_memory" => integer 5531712
        "stop_time" => float 1414243272.4277
        "stop_memory" => integer 5532288
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4279
        "start_memory" => integer 5537256
        "stop_time" => float 1414243272.4279
        "stop_memory" => integer 5537848
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4293
        "start_memory" => integer 5596680
        "stop_time" => float 1414243272.4294
        "stop_memory" => integer 5597264
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4317
        "start_memory" => integer 5602328
        "stop_time" => float 1414243272.4318
        "stop_memory" => integer 5602928
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4323
        "start_memory" => integer 5622600
        "stop_time" => float 1414243272.4324
        "stop_memory" => integer 5623176
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4328
        "start_memory" => integer 5628240
        "stop_time" => float 1414243272.4328
        "stop_memory" => integer 5628840
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4345
        "start_memory" => integer 5693280
        "stop_time" => float 1414243272.4345
        "stop_memory" => integer 5693856
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4357
        "start_memory" => integer 5698920
        "stop_time" => float 1414243272.4358
        "stop_memory" => integer 5699520
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4378
        "start_memory" => integer 5747848
        "stop_time" => float 1414243272.4378
        "stop_memory" => integer 5748424
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4381
        "start_memory" => integer 5753480
        "stop_time" => float 1414243272.4383
        "stop_memory" => integer 5754080
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4401
        "start_memory" => integer 5795384
        "stop_time" => float 1414243272.4401
        "stop_memory" => integer 5795960
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4406
        "start_memory" => integer 5801024
        "stop_time" => float 1414243272.4407
        "stop_memory" => integer 5801624
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4435
        "start_memory" => integer 5914552
        "stop_time" => float 1414243272.4439
        "stop_memory" => integer 5915128
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4444
        "start_memory" => integer 5920192
        "stop_time" => float 1414243272.4444
        "stop_memory" => integer 5920792
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.451
        "start_memory" => integer 5969448
        "stop_time" => float 1414243272.4512
        "stop_memory" => integer 5970008
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4516
        "start_memory" => integer 5974976
        "stop_time" => float 1414243272.4517
        "stop_memory" => integer 5975568
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4533
        "start_memory" => integer 5998696
        "stop_time" => float 1414243272.4534
        "stop_memory" => integer 5999216
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4538
        "start_memory" => integer 6003856
        "stop_time" => float 1414243272.454
        "stop_memory" => integer 6004424
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4567
        "start_memory" => integer 6119096
        "stop_time" => float 1414243272.4568
        "stop_memory" => integer 6119656
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.457
        "start_memory" => integer 6124328
        "stop_time" => float 1414243272.4571
        "stop_memory" => integer 6124920
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4658
        "start_memory" => integer 6145240
        "stop_time" => float 1414243272.4659
        "stop_memory" => integer 6145776
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4663
        "start_memory" => integer 6150424
        "stop_time" => float 1414243272.4669
        "stop_memory" => integer 6150992
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4759
        "start_memory" => integer 6187672
        "stop_time" => float 1414243272.4761
        "stop_memory" => integer 6188216
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4802
        "start_memory" => integer 6192856
        "stop_time" => float 1414243272.4803
        "stop_memory" => integer 6193424
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4844
        "start_memory" => integer 6235840
        "stop_time" => float 1414243272.4844
        "stop_memory" => integer 6236384
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4845
        "start_memory" => integer 6241024
        "stop_time" => float 1414243272.4846
        "stop_memory" => integer 6241592
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4853
        "start_memory" => integer 6285784
        "stop_time" => float 1414243272.4854
        "stop_memory" => integer 6286328
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4856
        "start_memory" => integer 6290968
        "stop_time" => float 1414243272.4857
        "stop_memory" => integer 6292560
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4899
        "start_memory" => integer 6368096
        "stop_time" => float 1414243272.4899
        "stop_memory" => integer 6368640
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4902
        "start_memory" => integer 6373296
        "stop_time" => float 1414243272.4902
        "stop_memory" => integer 6373864
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4927
        "start_memory" => integer 6396048
        "stop_time" => float 1414243272.4927
        "stop_memory" => integer 6396592
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4929
        "start_memory" => integer 6401232
        "stop_time" => float 1414243272.4929
        "stop_memory" => integer 6401800
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4947
        "start_memory" => integer 6430944
        "stop_time" => float 1414243272.4947
        "stop_memory" => integer 6431504
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.495
        "start_memory" => integer 6436352
        "stop_time" => float 1414243272.495
        "stop_memory" => integer 6436928
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.496
        "start_memory" => integer 6457224
        "stop_time" => float 1414243272.496
        "stop_memory" => integer 6457808
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4964
        "start_memory" => integer 6462744
        "stop_time" => float 1414243272.4965
        "stop_memory" => integer 6463328
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4974
        "start_memory" => integer 6478368
        "stop_time" => float 1414243272.4975
        "stop_memory" => integer 6478928
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.4979
        "start_memory" => integer 6483864
        "stop_time" => float 1414243272.498
        "stop_memory" => integer 6484448
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5001
        "start_memory" => integer 6499488
        "stop_time" => float 1414243272.5002
        "stop_memory" => integer 6500048
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5006
        "start_memory" => integer 6504984
        "stop_time" => float 1414243272.5006
        "stop_memory" => integer 6505568
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5014
        "start_memory" => integer 6520616
        "stop_time" => float 1414243272.5014
        "stop_memory" => integer 6521176
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5017
        "start_memory" => integer 6526112
        "stop_time" => float 1414243272.5018
        "stop_memory" => integer 6526696
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5025
        "start_memory" => integer 6541720
        "stop_time" => float 1414243272.5026
        "stop_memory" => integer 6542280
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5031
        "start_memory" => integer 6547216
        "stop_time" => float 1414243272.5031
        "stop_memory" => integer 6547800
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5042
        "start_memory" => integer 6562824
        "stop_time" => float 1414243272.5042
        "stop_memory" => integer 6563384
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5044
        "start_memory" => integer 6568320
        "stop_time" => float 1414243272.5045
        "stop_memory" => integer 6568904
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5052
        "start_memory" => integer 6583960
        "stop_time" => float 1414243272.5053
        "stop_memory" => integer 6584520
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5056
        "start_memory" => integer 6589456
        "stop_time" => float 1414243272.5057
        "stop_memory" => integer 6590040
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5066
        "start_memory" => integer 6605064
        "stop_time" => float 1414243272.5067
        "stop_memory" => integer 6605624
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5069
        "start_memory" => integer 6610560
        "stop_time" => float 1414243272.5069
        "stop_memory" => integer 6611144
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5078
        "start_memory" => integer 6626280
        "stop_time" => float 1414243272.5078
        "stop_memory" => integer 6626840
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5084
        "start_memory" => integer 6631776
        "stop_time" => float 1414243272.5085
        "stop_memory" => integer 6632360
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5092
        "start_memory" => integer 6647392
        "stop_time" => float 1414243272.5093
        "stop_memory" => integer 6647952
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5098
        "start_memory" => integer 6652888
        "stop_time" => float 1414243272.5099
        "stop_memory" => integer 6653472
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5108
        "start_memory" => integer 6668512
        "stop_time" => float 1414243272.5109
        "stop_memory" => integer 6669072
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5159
        "start_memory" => integer 6674008
        "stop_time" => float 1414243272.5161
        "stop_memory" => integer 6674592
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5174
        "start_memory" => integer 6689600
        "stop_time" => float 1414243272.5174
        "stop_memory" => integer 6690160
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5181
        "start_memory" => integer 6695096
        "stop_time" => float 1414243272.5182
        "stop_memory" => integer 6695680
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5191
        "start_memory" => integer 6710704
        "stop_time" => float 1414243272.5191
        "stop_memory" => integer 6711264
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5194
        "start_memory" => integer 6716200
        "stop_time" => float 1414243272.5195
        "stop_memory" => integer 6716784
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5205
        "start_memory" => integer 6731808
        "stop_time" => float 1414243272.5208
        "stop_memory" => integer 6732368
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.521
        "start_memory" => integer 6737304
        "stop_time" => float 1414243272.5211
        "stop_memory" => integer 6737888
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5243
        "start_memory" => integer 6752944
        "stop_time" => float 1414243272.5243
        "stop_memory" => integer 6753504
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5245
        "start_memory" => integer 6758440
        "stop_time" => float 1414243272.5246
        "stop_memory" => integer 6759024
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5254
        "start_memory" => integer 6774072
        "stop_time" => float 1414243272.5254
        "stop_memory" => integer 6774632
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5256
        "start_memory" => integer 6779568
        "stop_time" => float 1414243272.5257
        "stop_memory" => integer 6780152
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5263
        "start_memory" => integer 6795336
        "stop_time" => float 1414243272.5264
        "stop_memory" => integer 6795896
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5266
        "start_memory" => integer 6800832
        "stop_time" => float 1414243272.5266
        "stop_memory" => integer 6801416
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5274
        "start_memory" => integer 6816488
        "stop_time" => float 1414243272.5274
        "stop_memory" => integer 6817048
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5276
        "start_memory" => integer 6821984
        "stop_time" => float 1414243272.5277
        "stop_memory" => integer 6822568
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5287
        "start_memory" => integer 6837624
        "stop_time" => float 1414243272.5287
        "stop_memory" => integer 6838184
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5289
        "start_memory" => integer 6843120
        "stop_time" => float 1414243272.529
        "stop_memory" => integer 6843704
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.53
        "start_memory" => integer 6858752
        "stop_time" => float 1414243272.53
        "stop_memory" => integer 6859312
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5303
        "start_memory" => integer 6864248
        "stop_time" => float 1414243272.5303
        "stop_memory" => integer 6864832
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5316
        "start_memory" => integer 6879856
        "stop_time" => float 1414243272.5316
        "stop_memory" => integer 6880416
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5321
        "start_memory" => integer 6885352
        "stop_time" => float 1414243272.5321
        "stop_memory" => integer 6885936
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.533
        "start_memory" => integer 6900960
        "stop_time" => float 1414243272.5331
        "stop_memory" => integer 6901520
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5333
        "start_memory" => integer 6906456
        "stop_time" => float 1414243272.5333
        "stop_memory" => integer 6907040
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5341
        "start_memory" => integer 6922096
        "stop_time" => float 1414243272.5343
        "stop_memory" => integer 6922656
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5345
        "start_memory" => integer 6927592
        "stop_time" => float 1414243272.5346
        "stop_memory" => integer 6928176
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5354
        "start_memory" => integer 6943216
        "stop_time" => float 1414243272.5354
        "stop_memory" => integer 6943776
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.536
        "start_memory" => integer 6948712
        "stop_time" => float 1414243272.536
        "stop_memory" => integer 6949296
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5383
        "start_memory" => integer 6964560
        "stop_time" => float 1414243272.5384
        "stop_memory" => integer 6965120
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5384
        "start_memory" => integer 6970032
        "stop_time" => float 1414243272.5385
        "stop_memory" => integer 6970600
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5432
        "start_memory" => integer 7008664
        "stop_time" => float 1414243272.5433
        "stop_memory" => integer 7009216
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5441
        "start_memory" => integer 7013888
        "stop_time" => float 1414243272.5442
        "stop_memory" => integer 7014464
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5493
        "start_memory" => integer 7145528
        "stop_time" => float 1414243272.5493
        "stop_memory" => integer 7146080
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5498
        "start_memory" => integer 7150760
        "stop_time" => float 1414243272.5498
        "stop_memory" => integer 7151336
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5561
        "start_memory" => integer 7320536
        "stop_time" => float 1414243272.5562
        "stop_memory" => integer 7321088
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.561
        "start_memory" => integer 7325776
        "stop_time" => float 1414243272.5611
        "stop_memory" => integer 7326336
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5654
        "start_memory" => integer 7382000
        "stop_time" => float 1414243272.5655
        "stop_memory" => integer 7382576
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.566
        "start_memory" => integer 7387488
        "stop_time" => float 1414243272.5661
        "stop_memory" => integer 7388056
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5675
        "start_memory" => integer 7428096
        "stop_time" => float 1414243272.5676
        "stop_memory" => integer 7428672
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5725
        "start_memory" => integer 7433624
        "stop_time" => float 1414243272.5726
        "stop_memory" => integer 7434216
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5755
        "start_memory" => integer 7460160
        "stop_time" => float 1414243272.5755
        "stop_memory" => integer 7460728
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5759
        "start_memory" => integer 7465600
        "stop_time" => float 1414243272.5759
        "stop_memory" => integer 7466176
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5798
        "start_memory" => integer 7492232
        "stop_time" => float 1414243272.5799
        "stop_memory" => integer 7492808
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5855
        "start_memory" => integer 7503712
        "stop_time" => float 1414243272.5857
        "stop_memory" => integer 7504272
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5864
        "start_memory" => integer 7514160
        "stop_time" => float 1414243272.5865
        "stop_memory" => integer 7514728
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5887
        "start_memory" => integer 7525328
        "stop_time" => float 1414243272.5888
        "stop_memory" => integer 7525880
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5891
        "start_memory" => integer 7530592
        "stop_time" => float 1414243272.5892
        "stop_memory" => integer 7531192
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5902
        "start_memory" => integer 7536656
        "stop_time" => float 1414243272.5902
        "stop_memory" => integer 7537208
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5908
        "start_memory" => integer 7541936
        "stop_time" => float 1414243272.5909
        "stop_memory" => integer 7542512
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5921
        "start_memory" => integer 7547960
        "stop_time" => float 1414243272.5922
        "stop_memory" => integer 7548512
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5926
        "start_memory" => integer 7553264
        "stop_time" => float 1414243272.5926
        "stop_memory" => integer 7553840
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.594
        "start_memory" => integer 7565856
        "stop_time" => float 1414243272.5941
        "stop_memory" => integer 7566392
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5943
        "start_memory" => integer 7571040
        "stop_time" => float 1414243272.5944
        "stop_memory" => integer 7571608
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.595
        "start_memory" => integer 7574672
        "stop_time" => float 1414243272.595
        "stop_memory" => integer 7575248
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5954
        "start_memory" => integer 7584512
        "stop_time" => float 1414243272.5955
        "stop_memory" => integer 7585048
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.5957
        "start_memory" => integer 7589696
        "stop_time" => float 1414243272.5958
        "stop_memory" => integer 7590264
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6047
        "start_memory" => integer 7965648
        "stop_time" => float 1414243272.6048
        "stop_memory" => integer 7966224
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6084
        "start_memory" => integer 8044792
        "stop_time" => float 1414243272.6084
        "stop_memory" => integer 8045376
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6094
        "start_memory" => integer 8090600
        "stop_time" => float 1414243272.6095
        "stop_memory" => integer 8091160
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.61
        "start_memory" => integer 8096024
        "stop_time" => float 1414243272.61
        "stop_memory" => integer 8096608
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6111
        "start_memory" => integer 8105568
        "stop_time" => float 1414243272.6112
        "stop_memory" => integer 8106112
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6122
        "start_memory" => integer 8137576
        "stop_time" => float 1414243272.6122
        "stop_memory" => integer 8138136
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6131
        "start_memory" => integer 8172544
        "stop_time" => float 1414243272.6131
        "stop_memory" => integer 8173120
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6139
        "start_memory" => integer 8205232
        "stop_time" => float 1414243272.614
        "stop_memory" => integer 8205768
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6146
        "start_memory" => integer 8210424
        "stop_time" => float 1414243272.6147
        "stop_memory" => integer 8210992
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6181
        "start_memory" => integer 8252800
        "stop_time" => float 1414243272.6182
        "stop_memory" => integer 8253392
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6186
        "start_memory" => integer 8258576
        "stop_time" => float 1414243272.6186
        "stop_memory" => integer 8259168
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6224
        "start_memory" => integer 8303288
        "stop_time" => float 1414243272.6225
        "stop_memory" => integer 8303840
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.623
        "start_memory" => integer 8308776
        "stop_time" => float 1414243272.6231
        "stop_memory" => integer 8309360
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6324
        "start_memory" => integer 8411048
        "stop_time" => float 1414243272.6325
        "stop_memory" => integer 8411576
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6333
        "start_memory" => integer 8416232
        "stop_time" => float 1414243272.6334
        "stop_memory" => integer 8416800
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6345
        "start_memory" => integer 8431728
        "stop_time" => float 1414243272.6346
        "stop_memory" => integer 8432280
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6351
        "start_memory" => integer 8436928
        "stop_time" => float 1414243272.6353
        "stop_memory" => integer 8437496
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6403
        "start_memory" => integer 8503928
        "stop_time" => float 1414243272.6403
        "stop_memory" => integer 8504488
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6413
        "start_memory" => integer 8509344
        "stop_time" => float 1414243272.6413
        "stop_memory" => integer 8509920
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6467
        "start_memory" => integer 8533360
        "stop_time" => float 1414243272.6467
        "stop_memory" => integer 8533968
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6475
        "start_memory" => integer 8538888
        "stop_time" => float 1414243272.6475
        "stop_memory" => integer 8539480
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6498
        "start_memory" => integer 8610512
        "stop_time" => float 1414243272.6499
        "stop_memory" => integer 8611048
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6502
        "start_memory" => integer 8615920
        "stop_time" => float 1414243272.6503
        "stop_memory" => integer 8616472
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6519
        "start_memory" => integer 8644176
        "stop_time" => float 1414243272.652
        "stop_memory" => integer 8644712
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6523
        "start_memory" => integer 8649368
        "stop_time" => float 1414243272.6524
        "stop_memory" => integer 8649936
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6557
        "start_memory" => integer 8771160
        "stop_time" => float 1414243272.6558
        "stop_memory" => integer 8771704
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.656
        "start_memory" => integer 8776376
        "stop_time" => float 1414243272.6561
        "stop_memory" => integer 8776944
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6662
        "start_memory" => integer 8808328
        "stop_time" => float 1414243272.6663
        "stop_memory" => integer 8808872
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6666
        "start_memory" => integer 8813520
        "stop_time" => float 1414243272.6667
        "stop_memory" => integer 8814088
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6684
        "start_memory" => integer 8914360
        "stop_time" => float 1414243272.6684
        "stop_memory" => integer 8914920
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6686
        "start_memory" => integer 8919632
        "stop_time" => float 1414243272.6687
        "stop_memory" => integer 8920208
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6781
        "start_memory" => integer 9027952
        "stop_time" => float 1414243272.6782
        "stop_memory" => integer 9028520
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6787
        "start_memory" => integer 9033440
        "stop_time" => float 1414243272.6788
        "stop_memory" => integer 9034024
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6806
        "start_memory" => integer 9055216
        "stop_time" => float 1414243272.6808
        "stop_memory" => integer 9055792
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6812
        "start_memory" => integer 9020272
        "stop_time" => float 1414243272.6813
        "stop_memory" => integer 9022208
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6832
        "start_memory" => integer 9092928
        "stop_time" => float 1414243272.6833
        "stop_memory" => integer 9094656
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414243272.6833
        "start_memory" => integer 9094416
        "stop_time" => float 1414243272.6834
        "stop_memory" => integer 9096144
    )
)

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