Modules

Kohana_Profiler

Provides simple benchmarking and profiling. To display the statistics that have been collected, load the profiler/stats View:

echo View::factory('profiler/stats');
package
Kohana
category
Helpers
author
Kohana Team
copyright
© 2009-2012 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/kohana/profiler.php on line 14.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1425626907.9074
        "start_memory" => integer 1989128
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9074
        "start_memory" => integer 1991464
        "stop_time" => float 1425626907.9075
        "stop_memory" => integer 1992056
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9075
        "start_memory" => integer 1997008
        "stop_time" => float 1425626907.9076
        "stop_memory" => integer 1997600
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9081
        "start_memory" => integer 2123120
        "stop_time" => float 1425626907.9081
        "stop_memory" => integer 2123672
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9082
        "start_memory" => integer 2128608
        "stop_time" => float 1425626907.9083
        "stop_memory" => integer 2129192
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9084
        "start_memory" => integer 2140280
        "stop_time" => float 1425626907.9084
        "stop_memory" => integer 2140824
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9085
        "start_memory" => integer 2145536
        "stop_time" => float 1425626907.9085
        "stop_memory" => integer 2146112
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9087
        "start_memory" => integer 2155392
        "stop_time" => float 1425626907.9087
        "stop_memory" => integer 2155928
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9088
        "start_memory" => integer 2160592
        "stop_time" => float 1425626907.9088
        "stop_memory" => integer 2161224
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9096
        "start_memory" => integer 2321976
        "stop_time" => float 1425626907.9096
        "stop_memory" => integer 2322536
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9097
        "start_memory" => integer 2327384
        "stop_time" => float 1425626907.9098
        "stop_memory" => integer 2327960
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9099
        "start_memory" => integer 2341432
        "stop_time" => float 1425626907.91
        "stop_memory" => integer 2341984
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.91
        "start_memory" => integer 2346616
        "stop_time" => float 1425626907.9101
        "stop_memory" => integer 2347184
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9103
        "start_memory" => integer 2401992
        "stop_time" => float 1425626907.9104
        "stop_memory" => integer 2402584
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9104
        "start_memory" => integer 2403744
        "stop_time" => float 1425626907.9104
        "stop_memory" => integer 2404320
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9105
        "start_memory" => integer 2409192
        "stop_time" => float 1425626907.9106
        "stop_memory" => integer 2409768
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9109
        "start_memory" => integer 2475232
        "stop_time" => float 1425626907.9109
        "stop_memory" => integer 2475848
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9109
        "start_memory" => integer 2476632
        "stop_time" => float 1425626907.911
        "stop_memory" => integer 2477208
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9142
        "start_memory" => integer 3145928
        "stop_time" => float 1425626907.9143
        "stop_memory" => integer 3146456
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9144
        "start_memory" => integer 3152152
        "stop_time" => float 1425626907.9144
        "stop_memory" => integer 3152720
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9147
        "start_memory" => integer 3185472
        "stop_time" => float 1425626907.9147
        "stop_memory" => integer 3186016
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9148
        "start_memory" => integer 3190656
        "stop_time" => float 1425626907.9148
        "stop_memory" => integer 3191224
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9156
        "start_memory" => integer 3352888
        "stop_time" => float 1425626907.9156
        "stop_memory" => integer 3353464
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.916
        "start_memory" => integer 3358344
        "stop_time" => float 1425626907.9161
        "stop_memory" => integer 3358928
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9163
        "start_memory" => integer 3361616
        "stop_time" => float 1425626907.9164
        "stop_memory" => integer 3362176
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9166
        "start_memory" => integer 3367048
        "stop_time" => float 1425626907.9167
        "stop_memory" => integer 3367632
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9171
        "start_memory" => integer 3417304
        "stop_time" => float 1425626907.9172
        "stop_memory" => integer 3417848
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9172
        "start_memory" => integer 3422520
        "stop_time" => float 1425626907.9173
        "stop_memory" => integer 3423096
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9179
        "start_memory" => integer 3520688
        "stop_time" => float 1425626907.918
        "stop_memory" => integer 3521224
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9181
        "start_memory" => integer 3525864
        "stop_time" => float 1425626907.9181
        "stop_memory" => integer 3526432
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626907.9194
        "start_memory" => integer 3611520
        "stop_time" => float 1425626907.9194
        "stop_memory" => integer 3612112
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0669
        "start_memory" => integer 3654240
        "stop_time" => float 1425626908.067
        "stop_memory" => integer 3654808
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0672
        "start_memory" => integer 3659472
        "stop_time" => float 1425626908.0673
        "stop_memory" => integer 3660304
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0684
        "start_memory" => integer 3700904
        "stop_time" => float 1425626908.0684
        "stop_memory" => integer 3701456
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0691
        "start_memory" => integer 3706288
        "stop_time" => float 1425626908.0691
        "stop_memory" => integer 3706864
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0699
        "start_memory" => integer 3730560
        "stop_time" => float 1425626908.07
        "stop_memory" => integer 3731112
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0702
        "start_memory" => integer 3735792
        "stop_time" => float 1425626908.0702
        "stop_memory" => integer 3736368
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0712
        "start_memory" => integer 3803544
        "stop_time" => float 1425626908.0712
        "stop_memory" => integer 3804128
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0773
        "start_memory" => integer 3822120
        "stop_time" => float 1425626908.0773
        "stop_memory" => integer 3822680
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0814
        "start_memory" => integer 3827544
        "stop_time" => float 1425626908.0814
        "stop_memory" => integer 3828128
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0822
        "start_memory" => integer 3893280
        "stop_time" => float 1425626908.0823
        "stop_memory" => integer 3893856
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0827
        "start_memory" => integer 3913256
        "stop_time" => float 1425626908.0828
        "stop_memory" => integer 3913832
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0855
        "start_memory" => integer 3961872
        "stop_time" => float 1425626908.0855
        "stop_memory" => integer 3962448
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0861
        "start_memory" => integer 3973104
        "stop_time" => float 1425626908.0861
        "stop_memory" => integer 3973680
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0866
        "start_memory" => integer 3991688
        "stop_time" => float 1425626908.0867
        "stop_memory" => integer 3992264
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0878
        "start_memory" => integer 4001928
        "stop_time" => float 1425626908.0878
        "stop_memory" => integer 4002504
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0882
        "start_memory" => integer 4022608
        "stop_time" => float 1425626908.0882
        "stop_memory" => integer 4023184
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0887
        "start_memory" => integer 4043664
        "stop_time" => float 1425626908.0887
        "stop_memory" => integer 4044256
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0891
        "start_memory" => integer 4057480
        "stop_time" => float 1425626908.0891
        "stop_memory" => integer 4058048
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0895
        "start_memory" => integer 4070280
        "stop_time" => float 1425626908.0895
        "stop_memory" => integer 4070856
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0903
        "start_memory" => integer 4119168
        "stop_time" => float 1425626908.0903
        "stop_memory" => integer 4119728
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0963
        "start_memory" => integer 4158200
        "stop_time" => float 1425626908.0963
        "stop_memory" => integer 4158784
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.097
        "start_memory" => integer 4178184
        "stop_time" => float 1425626908.097
        "stop_memory" => integer 4178760
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0975
        "start_memory" => integer 4209920
        "stop_time" => float 1425626908.0976
        "stop_memory" => integer 4210496
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0981
        "start_memory" => integer 4229208
        "stop_time" => float 1425626908.0982
        "stop_memory" => integer 4229752
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.0985
        "start_memory" => integer 4234424
        "stop_time" => float 1425626908.0985
        "stop_memory" => integer 4235000
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1027
        "start_memory" => integer 4265840
        "stop_time" => float 1425626908.1027
        "stop_memory" => integer 4266376
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.103
        "start_memory" => integer 4271024
        "stop_time" => float 1425626908.103
        "stop_memory" => integer 4271592
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1099
        "start_memory" => integer 4413168
        "stop_time" => float 1425626908.11
        "stop_memory" => integer 4413744
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1168
        "start_memory" => integer 4466528
        "stop_time" => float 1425626908.1168
        "stop_memory" => integer 4467080
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1171
        "start_memory" => integer 4471912
        "stop_time" => float 1425626908.1171
        "stop_memory" => integer 4472488
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.122
        "start_memory" => integer 4498000
        "stop_time" => float 1425626908.122
        "stop_memory" => integer 4498584
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1223
        "start_memory" => integer 4503520
        "stop_time" => float 1425626908.1223
        "stop_memory" => integer 4504096
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1312
        "start_memory" => integer 4529744
        "stop_time" => float 1425626908.1313
        "stop_memory" => integer 4530304
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1315
        "start_memory" => integer 4535160
        "stop_time" => float 1425626908.1315
        "stop_memory" => integer 4536240
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1407
        "start_memory" => integer 4625032
        "stop_time" => float 1425626908.1408
        "stop_memory" => integer 4625632
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1454
        "start_memory" => integer 4632552
        "stop_time" => float 1425626908.1454
        "stop_memory" => integer 4633104
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1457
        "start_memory" => integer 4637984
        "stop_time" => float 1425626908.1457
        "stop_memory" => integer 4638568
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1654
        "start_memory" => integer 4695440
        "stop_time" => float 1425626908.1654
        "stop_memory" => integer 4696000
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1657
        "start_memory" => integer 4700920
        "stop_time" => float 1425626908.1657
        "stop_memory" => integer 4701504
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1677
        "start_memory" => integer 4725336
        "stop_time" => float 1425626908.1677
        "stop_memory" => integer 4725912
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1685
        "start_memory" => integer 4735016
        "stop_time" => float 1425626908.1685
        "stop_memory" => integer 4735576
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1688
        "start_memory" => integer 4740440
        "stop_time" => float 1425626908.1688
        "stop_memory" => integer 4741024
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.175
        "start_memory" => integer 4820496
        "stop_time" => float 1425626908.1751
        "stop_memory" => integer 4821056
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1753
        "start_memory" => integer 4825968
        "stop_time" => float 1425626908.1753
        "stop_memory" => integer 4826544
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1817
        "start_memory" => integer 4852216
        "stop_time" => float 1425626908.1817
        "stop_memory" => integer 4852776
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.182
        "start_memory" => integer 4857640
        "stop_time" => float 1425626908.182
        "stop_memory" => integer 4858224
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.183
        "start_memory" => integer 4879592
        "stop_time" => float 1425626908.1831
        "stop_memory" => integer 4880120
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1878
        "start_memory" => integer 4884768
        "stop_time" => float 1425626908.1879
        "stop_memory" => integer 4885344
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1899
        "start_memory" => integer 4896200
        "stop_time" => float 1425626908.1899
        "stop_memory" => integer 4896792
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1904
        "start_memory" => integer 4901680
        "stop_time" => float 1425626908.1904
        "stop_memory" => integer 4902256
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1944
        "start_memory" => integer 4947216
        "stop_time" => float 1425626908.1944
        "stop_memory" => integer 4947792
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1952
        "start_memory" => integer 4958928
        "stop_time" => float 1425626908.1952
        "stop_memory" => integer 4959472
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1954
        "start_memory" => integer 4964328
        "stop_time" => float 1425626908.1955
        "stop_memory" => integer 4964904
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.1999
        "start_memory" => integer 4987400
        "stop_time" => float 1425626908.1999
        "stop_memory" => integer 4987984
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2019
        "start_memory" => integer 4993552
        "stop_time" => float 1425626908.202
        "stop_memory" => integer 4994120
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2027
        "start_memory" => integer 4998968
        "stop_time" => float 1425626908.2027
        "stop_memory" => integer 4999552
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2054
        "start_memory" => integer 5133344
        "stop_time" => float 1425626908.2054
        "stop_memory" => integer 5133920
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2057
        "start_memory" => integer 5138872
        "stop_time" => float 1425626908.2058
        "stop_memory" => integer 5139464
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2065
        "start_memory" => integer 5154312
        "stop_time" => float 1425626908.2065
        "stop_memory" => integer 5154880
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2067
        "start_memory" => integer 5159840
        "stop_time" => float 1425626908.2067
        "stop_memory" => integer 5160432
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2084
        "start_memory" => integer 5166384
        "stop_time" => float 1425626908.2084
        "stop_memory" => integer 5166936
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2087
        "start_memory" => integer 5171800
        "stop_time" => float 1425626908.2088
        "stop_memory" => integer 5172384
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2101
        "start_memory" => integer 5316984
        "stop_time" => float 1425626908.2102
        "stop_memory" => integer 5317560
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2115
        "start_memory" => integer 5322520
        "stop_time" => float 1425626908.2116
        "stop_memory" => integer 5323112
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2119
        "start_memory" => integer 5343792
        "stop_time" => float 1425626908.2119
        "stop_memory" => integer 5344360
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2122
        "start_memory" => integer 5349248
        "stop_time" => float 1425626908.2122
        "stop_memory" => integer 5349824
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2136
        "start_memory" => integer 5412128
        "stop_time" => float 1425626908.2136
        "stop_memory" => integer 5412688
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2138
        "start_memory" => integer 5417560
        "stop_time" => float 1425626908.2139
        "stop_memory" => integer 5418144
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2167
        "start_memory" => integer 5483648
        "stop_time" => float 1425626908.2167
        "stop_memory" => integer 5484208
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2173
        "start_memory" => integer 5489072
        "stop_time" => float 1425626908.2173
        "stop_memory" => integer 5489656
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2191
        "start_memory" => integer 5532312
        "stop_time" => float 1425626908.2192
        "stop_memory" => integer 5532888
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2194
        "start_memory" => integer 5537856
        "stop_time" => float 1425626908.2195
        "stop_memory" => integer 5538448
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2208
        "start_memory" => integer 5597288
        "stop_time" => float 1425626908.2208
        "stop_memory" => integer 5597872
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2217
        "start_memory" => integer 5602936
        "stop_time" => float 1425626908.2217
        "stop_memory" => integer 5603536
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.222
        "start_memory" => integer 5623208
        "stop_time" => float 1425626908.2221
        "stop_memory" => integer 5623784
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2223
        "start_memory" => integer 5628848
        "stop_time" => float 1425626908.2224
        "stop_memory" => integer 5629448
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2236
        "start_memory" => integer 5693880
        "stop_time" => float 1425626908.2237
        "stop_memory" => integer 5694456
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2239
        "start_memory" => integer 5699520
        "stop_time" => float 1425626908.2239
        "stop_memory" => integer 5700120
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2256
        "start_memory" => integer 5748448
        "stop_time" => float 1425626908.2256
        "stop_memory" => integer 5749024
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.226
        "start_memory" => integer 5754080
        "stop_time" => float 1425626908.226
        "stop_memory" => integer 5754680
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2273
        "start_memory" => integer 5795984
        "stop_time" => float 1425626908.2273
        "stop_memory" => integer 5796560
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2279
        "start_memory" => integer 5801624
        "stop_time" => float 1425626908.228
        "stop_memory" => integer 5802224
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2294
        "start_memory" => integer 5915152
        "stop_time" => float 1425626908.2294
        "stop_memory" => integer 5915728
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2297
        "start_memory" => integer 5920792
        "stop_time" => float 1425626908.2298
        "stop_memory" => integer 5921392
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2324
        "start_memory" => integer 5970024
        "stop_time" => float 1425626908.2325
        "stop_memory" => integer 5970584
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2332
        "start_memory" => integer 5975552
        "stop_time" => float 1425626908.2333
        "stop_memory" => integer 5976144
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2364
        "start_memory" => integer 5999264
        "stop_time" => float 1425626908.2365
        "stop_memory" => integer 5999784
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2367
        "start_memory" => integer 6004424
        "stop_time" => float 1425626908.2367
        "stop_memory" => integer 6004992
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2381
        "start_memory" => integer 6119664
        "stop_time" => float 1425626908.2381
        "stop_memory" => integer 6120224
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2384
        "start_memory" => integer 6124896
        "stop_time" => float 1425626908.2384
        "stop_memory" => integer 6125488
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2431
        "start_memory" => integer 6145808
        "stop_time" => float 1425626908.2431
        "stop_memory" => integer 6146344
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2589
        "start_memory" => integer 6150992
        "stop_time" => float 1425626908.259
        "stop_memory" => integer 6151560
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2671
        "start_memory" => integer 6188240
        "stop_time" => float 1425626908.2671
        "stop_memory" => integer 6188784
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.271
        "start_memory" => integer 6193424
        "stop_time" => float 1425626908.2711
        "stop_memory" => integer 6193992
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.272
        "start_memory" => integer 6236424
        "stop_time" => float 1425626908.2721
        "stop_memory" => integer 6236968
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2721
        "start_memory" => integer 6241608
        "stop_time" => float 1425626908.2722
        "stop_memory" => integer 6242176
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.273
        "start_memory" => integer 6286368
        "stop_time" => float 1425626908.273
        "stop_memory" => integer 6286912
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2733
        "start_memory" => integer 6291568
        "stop_time" => float 1425626908.2733
        "stop_memory" => integer 6293160
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2748
        "start_memory" => integer 6368664
        "stop_time" => float 1425626908.2748
        "stop_memory" => integer 6369208
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2756
        "start_memory" => integer 6373864
        "stop_time" => float 1425626908.2757
        "stop_memory" => integer 6374432
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2781
        "start_memory" => integer 6396616
        "stop_time" => float 1425626908.2782
        "stop_memory" => integer 6397176
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2783
        "start_memory" => integer 6401816
        "stop_time" => float 1425626908.2784
        "stop_memory" => integer 6402384
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2797
        "start_memory" => integer 6431528
        "stop_time" => float 1425626908.2798
        "stop_memory" => integer 6432088
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.28
        "start_memory" => integer 6436936
        "stop_time" => float 1425626908.28
        "stop_memory" => integer 6437512
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2808
        "start_memory" => integer 6457824
        "stop_time" => float 1425626908.2808
        "stop_memory" => integer 6458392
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2827
        "start_memory" => integer 6463328
        "stop_time" => float 1425626908.2827
        "stop_memory" => integer 6463912
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.2973
        "start_memory" => integer 6478960
        "stop_time" => float 1425626908.2974
        "stop_memory" => integer 6479520
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.32
        "start_memory" => integer 6484456
        "stop_time" => float 1425626908.3201
        "stop_memory" => integer 6485040
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3252
        "start_memory" => integer 6500080
        "stop_time" => float 1425626908.3252
        "stop_memory" => integer 6500640
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3305
        "start_memory" => integer 6505576
        "stop_time" => float 1425626908.3306
        "stop_memory" => integer 6506160
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3337
        "start_memory" => integer 6521208
        "stop_time" => float 1425626908.3337
        "stop_memory" => integer 6521768
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3343
        "start_memory" => integer 6526704
        "stop_time" => float 1425626908.3344
        "stop_memory" => integer 6527288
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3357
        "start_memory" => integer 6542312
        "stop_time" => float 1425626908.3358
        "stop_memory" => integer 6542872
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3394
        "start_memory" => integer 6547808
        "stop_time" => float 1425626908.3395
        "stop_memory" => integer 6548392
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3427
        "start_memory" => integer 6563416
        "stop_time" => float 1425626908.3428
        "stop_memory" => integer 6563976
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3462
        "start_memory" => integer 6568912
        "stop_time" => float 1425626908.3463
        "stop_memory" => integer 6569496
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3476
        "start_memory" => integer 6584552
        "stop_time" => float 1425626908.3477
        "stop_memory" => integer 6585112
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3506
        "start_memory" => integer 6590048
        "stop_time" => float 1425626908.3507
        "stop_memory" => integer 6590632
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3518
        "start_memory" => integer 6605656
        "stop_time" => float 1425626908.3519
        "stop_memory" => integer 6606216
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3527
        "start_memory" => integer 6611152
        "stop_time" => float 1425626908.3527
        "stop_memory" => integer 6611736
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3576
        "start_memory" => integer 6626872
        "stop_time" => float 1425626908.3576
        "stop_memory" => integer 6627432
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.358
        "start_memory" => integer 6632368
        "stop_time" => float 1425626908.358
        "stop_memory" => integer 6632952
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3591
        "start_memory" => integer 6647984
        "stop_time" => float 1425626908.3591
        "stop_memory" => integer 6648544
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3594
        "start_memory" => integer 6653480
        "stop_time" => float 1425626908.3595
        "stop_memory" => integer 6654064
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3612
        "start_memory" => integer 6669104
        "stop_time" => float 1425626908.3613
        "stop_memory" => integer 6669664
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3633
        "start_memory" => integer 6674600
        "stop_time" => float 1425626908.3634
        "stop_memory" => integer 6675184
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3665
        "start_memory" => integer 6690192
        "stop_time" => float 1425626908.3666
        "stop_memory" => integer 6690752
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3668
        "start_memory" => integer 6695688
        "stop_time" => float 1425626908.3668
        "stop_memory" => integer 6696272
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3678
        "start_memory" => integer 6711296
        "stop_time" => float 1425626908.3678
        "stop_memory" => integer 6711856
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3685
        "start_memory" => integer 6716792
        "stop_time" => float 1425626908.3686
        "stop_memory" => integer 6717376
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3711
        "start_memory" => integer 6732400
        "stop_time" => float 1425626908.3712
        "stop_memory" => integer 6732960
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3717
        "start_memory" => integer 6737896
        "stop_time" => float 1425626908.3717
        "stop_memory" => integer 6738480
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.373
        "start_memory" => integer 6753544
        "stop_time" => float 1425626908.3731
        "stop_memory" => integer 6754104
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3734
        "start_memory" => integer 6759040
        "stop_time" => float 1425626908.3734
        "stop_memory" => integer 6759624
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3744
        "start_memory" => integer 6774680
        "stop_time" => float 1425626908.3745
        "stop_memory" => integer 6775240
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3747
        "start_memory" => integer 6780176
        "stop_time" => float 1425626908.3748
        "stop_memory" => integer 6780760
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3756
        "start_memory" => integer 6795936
        "stop_time" => float 1425626908.3756
        "stop_memory" => integer 6796496
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3759
        "start_memory" => integer 6801432
        "stop_time" => float 1425626908.3759
        "stop_memory" => integer 6802016
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3769
        "start_memory" => integer 6817072
        "stop_time" => float 1425626908.377
        "stop_memory" => integer 6817632
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3773
        "start_memory" => integer 6822568
        "stop_time" => float 1425626908.3773
        "stop_memory" => integer 6823152
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3818
        "start_memory" => integer 6838208
        "stop_time" => float 1425626908.3818
        "stop_memory" => integer 6838768
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3824
        "start_memory" => integer 6843704
        "stop_time" => float 1425626908.3824
        "stop_memory" => integer 6844288
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3833
        "start_memory" => integer 6859336
        "stop_time" => float 1425626908.3834
        "stop_memory" => integer 6859896
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3837
        "start_memory" => integer 6864832
        "stop_time" => float 1425626908.3837
        "stop_memory" => integer 6865416
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3849
        "start_memory" => integer 6880440
        "stop_time" => float 1425626908.3849
        "stop_memory" => integer 6881000
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3855
        "start_memory" => integer 6885936
        "stop_time" => float 1425626908.3856
        "stop_memory" => integer 6886520
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3865
        "start_memory" => integer 6901544
        "stop_time" => float 1425626908.3866
        "stop_memory" => integer 6902104
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3868
        "start_memory" => integer 6907040
        "stop_time" => float 1425626908.3869
        "stop_memory" => integer 6907624
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3881
        "start_memory" => integer 6922680
        "stop_time" => float 1425626908.3882
        "stop_memory" => integer 6923240
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3885
        "start_memory" => integer 6928176
        "stop_time" => float 1425626908.3885
        "stop_memory" => integer 6928760
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3895
        "start_memory" => integer 6943800
        "stop_time" => float 1425626908.3896
        "stop_memory" => integer 6944360
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3899
        "start_memory" => integer 6949296
        "stop_time" => float 1425626908.39
        "stop_memory" => integer 6949880
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.392
        "start_memory" => integer 6965144
        "stop_time" => float 1425626908.392
        "stop_memory" => integer 6965704
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3921
        "start_memory" => integer 6970616
        "stop_time" => float 1425626908.3922
        "stop_memory" => integer 6971184
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3953
        "start_memory" => integer 7009232
        "stop_time" => float 1425626908.3953
        "stop_memory" => integer 7009784
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3955
        "start_memory" => integer 7014480
        "stop_time" => float 1425626908.3956
        "stop_memory" => integer 7015040
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3973
        "start_memory" => integer 7146120
        "stop_time" => float 1425626908.3973
        "stop_memory" => integer 7146672
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3975
        "start_memory" => integer 7151352
        "stop_time" => float 1425626908.3976
        "stop_memory" => integer 7151928
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3995
        "start_memory" => integer 7321144
        "stop_time" => float 1425626908.3996
        "stop_memory" => integer 7321696
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.3998
        "start_memory" => integer 7326384
        "stop_time" => float 1425626908.3998
        "stop_memory" => integer 7326944
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4058
        "start_memory" => integer 7382608
        "stop_time" => float 1425626908.4059
        "stop_memory" => integer 7383184
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4063
        "start_memory" => integer 7388096
        "stop_time" => float 1425626908.4063
        "stop_memory" => integer 7388664
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4072
        "start_memory" => integer 7428696
        "stop_time" => float 1425626908.4072
        "stop_memory" => integer 7429272
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4075
        "start_memory" => integer 7434224
        "stop_time" => float 1425626908.4076
        "stop_memory" => integer 7434816
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4092
        "start_memory" => integer 7460760
        "stop_time" => float 1425626908.4093
        "stop_memory" => integer 7461328
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4095
        "start_memory" => integer 7466200
        "stop_time" => float 1425626908.4096
        "stop_memory" => integer 7466776
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4123
        "start_memory" => integer 7492832
        "stop_time" => float 1425626908.4123
        "stop_memory" => integer 7493408
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4162
        "start_memory" => integer 7504312
        "stop_time" => float 1425626908.4163
        "stop_memory" => integer 7504872
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4167
        "start_memory" => integer 7514760
        "stop_time" => float 1425626908.4168
        "stop_memory" => integer 7515328
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4187
        "start_memory" => integer 7525928
        "stop_time" => float 1425626908.4188
        "stop_memory" => integer 7526480
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.419
        "start_memory" => integer 7531192
        "stop_time" => float 1425626908.419
        "stop_memory" => integer 7531768
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4198
        "start_memory" => integer 7537232
        "stop_time" => float 1425626908.4199
        "stop_memory" => integer 7537784
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4202
        "start_memory" => integer 7542496
        "stop_time" => float 1425626908.4202
        "stop_memory" => integer 7543072
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4211
        "start_memory" => integer 7548536
        "stop_time" => float 1425626908.4211
        "stop_memory" => integer 7549088
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4213
        "start_memory" => integer 7553824
        "stop_time" => float 1425626908.4214
        "stop_memory" => integer 7554400
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4227
        "start_memory" => integer 7566408
        "stop_time" => float 1425626908.4227
        "stop_memory" => integer 7566944
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.423
        "start_memory" => integer 7571592
        "stop_time" => float 1425626908.423
        "stop_memory" => integer 7572160
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4238
        "start_memory" => integer 7575224
        "stop_time" => float 1425626908.4238
        "stop_memory" => integer 7575800
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4242
        "start_memory" => integer 7585064
        "stop_time" => float 1425626908.4243
        "stop_memory" => integer 7585600
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4245
        "start_memory" => integer 7590248
        "stop_time" => float 1425626908.4246
        "stop_memory" => integer 7590816
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.427
        "start_memory" => integer 7966216
        "stop_time" => float 1425626908.427
        "stop_memory" => integer 7966792
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4281
        "start_memory" => integer 8045360
        "stop_time" => float 1425626908.4282
        "stop_memory" => integer 8045944
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4291
        "start_memory" => integer 8091168
        "stop_time" => float 1425626908.4291
        "stop_memory" => integer 8091728
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4294
        "start_memory" => integer 8096592
        "stop_time" => float 1425626908.4294
        "stop_memory" => integer 8097176
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4302
        "start_memory" => integer 8106160
        "stop_time" => float 1425626908.4303
        "stop_memory" => integer 8106704
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.431
        "start_memory" => integer 8138168
        "stop_time" => float 1425626908.431
        "stop_memory" => integer 8138728
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4317
        "start_memory" => integer 8173136
        "stop_time" => float 1425626908.4317
        "stop_memory" => integer 8173712
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4324
        "start_memory" => integer 8205824
        "stop_time" => float 1425626908.4325
        "stop_memory" => integer 8206360
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4375
        "start_memory" => integer 8211016
        "stop_time" => float 1425626908.4376
        "stop_memory" => integer 8211584
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4405
        "start_memory" => integer 8253392
        "stop_time" => float 1425626908.4405
        "stop_memory" => integer 8253984
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4408
        "start_memory" => integer 8259168
        "stop_time" => float 1425626908.4408
        "stop_memory" => integer 8259760
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4437
        "start_memory" => integer 8303872
        "stop_time" => float 1425626908.4438
        "stop_memory" => integer 8304424
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4441
        "start_memory" => integer 8309360
        "stop_time" => float 1425626908.4442
        "stop_memory" => integer 8309944
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4485
        "start_memory" => integer 8411632
        "stop_time" => float 1425626908.4486
        "stop_memory" => integer 8412160
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4489
        "start_memory" => integer 8416816
        "stop_time" => float 1425626908.449
        "stop_memory" => integer 8417384
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4498
        "start_memory" => integer 8432312
        "stop_time" => float 1425626908.4498
        "stop_memory" => integer 8432864
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4501
        "start_memory" => integer 8437512
        "stop_time" => float 1425626908.4501
        "stop_memory" => integer 8438080
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4512
        "start_memory" => integer 8504512
        "stop_time" => float 1425626908.4513
        "stop_memory" => integer 8505072
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4515
        "start_memory" => integer 8509928
        "stop_time" => float 1425626908.4516
        "stop_memory" => integer 8510504
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4524
        "start_memory" => integer 8533944
        "stop_time" => float 1425626908.4524
        "stop_memory" => integer 8534552
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4527
        "start_memory" => integer 8539472
        "stop_time" => float 1425626908.4527
        "stop_memory" => integer 8540064
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4542
        "start_memory" => integer 8611080
        "stop_time" => float 1425626908.4543
        "stop_memory" => integer 8611616
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4545
        "start_memory" => integer 8616488
        "stop_time" => float 1425626908.4546
        "stop_memory" => integer 8617040
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4553
        "start_memory" => integer 8644744
        "stop_time" => float 1425626908.4554
        "stop_memory" => integer 8645280
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4556
        "start_memory" => integer 8649936
        "stop_time" => float 1425626908.4557
        "stop_memory" => integer 8650504
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4637
        "start_memory" => integer 8771728
        "stop_time" => float 1425626908.4637
        "stop_memory" => integer 8772272
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.464
        "start_memory" => integer 8776944
        "stop_time" => float 1425626908.464
        "stop_memory" => integer 8777512
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4708
        "start_memory" => integer 8808896
        "stop_time" => float 1425626908.4708
        "stop_memory" => integer 8809440
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.471
        "start_memory" => integer 8814088
        "stop_time" => float 1425626908.4711
        "stop_memory" => integer 8814656
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4724
        "start_memory" => integer 8914960
        "stop_time" => float 1425626908.4724
        "stop_memory" => integer 8915520
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4726
        "start_memory" => integer 8920232
        "stop_time" => float 1425626908.4727
        "stop_memory" => integer 8920808
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4786
        "start_memory" => integer 9028552
        "stop_time" => float 1425626908.4786
        "stop_memory" => integer 9029120
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4872
        "start_memory" => integer 9034040
        "stop_time" => float 1425626908.4873
        "stop_memory" => integer 9034624
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4885
        "start_memory" => integer 9055816
        "stop_time" => float 1425626908.4885
        "stop_memory" => integer 9056392
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4888
        "start_memory" => integer 9020888
        "stop_time" => float 1425626908.4889
        "stop_memory" => integer 9022824
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4894
        "start_memory" => integer 9093544
        "stop_time" => float 1425626908.4895
        "stop_memory" => integer 9095272
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425626908.4895
        "start_memory" => integer 9095032
        "stop_time" => float 1425626908.4896
        "stop_memory" => integer 9096760
    )
)

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