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 1416717185.8811
        "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 1416717185.8811
        "start_memory" => integer 1991464
        "stop_time" => float 1416717185.8812
        "stop_memory" => integer 1992056
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8813
        "start_memory" => integer 1997008
        "stop_time" => float 1416717185.8814
        "stop_memory" => integer 1997600
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8824
        "start_memory" => integer 2123120
        "stop_time" => float 1416717185.8825
        "stop_memory" => integer 2123672
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8826
        "start_memory" => integer 2128608
        "stop_time" => float 1416717185.8827
        "stop_memory" => integer 2129192
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8829
        "start_memory" => integer 2140280
        "stop_time" => float 1416717185.8829
        "stop_memory" => integer 2140824
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.883
        "start_memory" => integer 2145536
        "stop_time" => float 1416717185.8831
        "stop_memory" => integer 2146112
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8834
        "start_memory" => integer 2155392
        "stop_time" => float 1416717185.8835
        "stop_memory" => integer 2155928
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8836
        "start_memory" => integer 2160592
        "stop_time" => float 1416717185.8836
        "stop_memory" => integer 2161224
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8852
        "start_memory" => integer 2321976
        "stop_time" => float 1416717185.8852
        "stop_memory" => integer 2322536
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8853
        "start_memory" => integer 2327384
        "stop_time" => float 1416717185.8854
        "stop_memory" => integer 2327960
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8857
        "start_memory" => integer 2341432
        "stop_time" => float 1416717185.8857
        "stop_memory" => integer 2341984
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8859
        "start_memory" => integer 2346616
        "stop_time" => float 1416717185.886
        "stop_memory" => integer 2347184
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8865
        "start_memory" => integer 2401992
        "stop_time" => float 1416717185.8865
        "stop_memory" => integer 2402584
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8866
        "start_memory" => integer 2403744
        "stop_time" => float 1416717185.8866
        "stop_memory" => integer 2404320
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8867
        "start_memory" => integer 2409192
        "stop_time" => float 1416717185.8868
        "stop_memory" => integer 2409768
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8874
        "start_memory" => integer 2475232
        "stop_time" => float 1416717185.8875
        "stop_memory" => integer 2475848
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8875
        "start_memory" => integer 2476632
        "stop_time" => float 1416717185.8875
        "stop_memory" => integer 2477208
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8925
        "start_memory" => integer 3145928
        "stop_time" => float 1416717185.8926
        "stop_memory" => integer 3146456
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8928
        "start_memory" => integer 3152152
        "stop_time" => float 1416717185.8928
        "stop_memory" => integer 3152720
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8933
        "start_memory" => integer 3185472
        "stop_time" => float 1416717185.8933
        "stop_memory" => integer 3186016
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8935
        "start_memory" => integer 3190656
        "stop_time" => float 1416717185.8935
        "stop_memory" => integer 3191224
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8948
        "start_memory" => integer 3352888
        "stop_time" => float 1416717185.8949
        "stop_memory" => integer 3353464
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.895
        "start_memory" => integer 3358344
        "stop_time" => float 1416717185.8951
        "stop_memory" => integer 3358928
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8952
        "start_memory" => integer 3361616
        "stop_time" => float 1416717185.8953
        "stop_memory" => integer 3362176
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8958
        "start_memory" => integer 3367048
        "stop_time" => float 1416717185.8958
        "stop_memory" => integer 3367632
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8962
        "start_memory" => integer 3417304
        "stop_time" => float 1416717185.8962
        "stop_memory" => integer 3417848
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8963
        "start_memory" => integer 3422520
        "stop_time" => float 1416717185.8963
        "stop_memory" => integer 3423096
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8969
        "start_memory" => integer 3520688
        "stop_time" => float 1416717185.8969
        "stop_memory" => integer 3521224
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.897
        "start_memory" => integer 3525864
        "stop_time" => float 1416717185.897
        "stop_memory" => integer 3526432
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.8989
        "start_memory" => integer 3611520
        "stop_time" => float 1416717185.899
        "stop_memory" => integer 3612112
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9593
        "start_memory" => integer 3654240
        "stop_time" => float 1416717185.9593
        "stop_memory" => integer 3654800
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9595
        "start_memory" => integer 3659464
        "stop_time" => float 1416717185.9595
        "stop_memory" => integer 3660296
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9606
        "start_memory" => integer 3700896
        "stop_time" => float 1416717185.9606
        "stop_memory" => integer 3701448
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9607
        "start_memory" => integer 3706280
        "stop_time" => float 1416717185.9607
        "stop_memory" => integer 3706856
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9615
        "start_memory" => integer 3730568
        "stop_time" => float 1416717185.9616
        "stop_memory" => integer 3731120
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9617
        "start_memory" => integer 3735800
        "stop_time" => float 1416717185.9617
        "stop_memory" => integer 3736376
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9626
        "start_memory" => integer 3803552
        "stop_time" => float 1416717185.9627
        "stop_memory" => integer 3804136
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9629
        "start_memory" => integer 3822152
        "stop_time" => float 1416717185.9629
        "stop_memory" => integer 3822712
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.963
        "start_memory" => integer 3827576
        "stop_time" => float 1416717185.963
        "stop_memory" => integer 3828160
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9636
        "start_memory" => integer 3893288
        "stop_time" => float 1416717185.9636
        "stop_memory" => integer 3893864
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.964
        "start_memory" => integer 3913272
        "stop_time" => float 1416717185.964
        "stop_memory" => integer 3913848
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9645
        "start_memory" => integer 3961888
        "stop_time" => float 1416717185.9645
        "stop_memory" => integer 3962464
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9648
        "start_memory" => integer 3973120
        "stop_time" => float 1416717185.9648
        "stop_memory" => integer 3973696
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9651
        "start_memory" => integer 3991704
        "stop_time" => float 1416717185.9651
        "stop_memory" => integer 3992280
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9653
        "start_memory" => integer 4001944
        "stop_time" => float 1416717185.9653
        "stop_memory" => integer 4002520
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9655
        "start_memory" => integer 4022624
        "stop_time" => float 1416717185.9656
        "stop_memory" => integer 4023200
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9659
        "start_memory" => integer 4043688
        "stop_time" => float 1416717185.966
        "stop_memory" => integer 4044280
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9663
        "start_memory" => integer 4057504
        "stop_time" => float 1416717185.9663
        "stop_memory" => integer 4058072
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9666
        "start_memory" => integer 4070304
        "stop_time" => float 1416717185.9666
        "stop_memory" => integer 4070880
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9669
        "start_memory" => integer 4119200
        "stop_time" => float 1416717185.9669
        "stop_memory" => integer 4119760
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9673
        "start_memory" => integer 4158232
        "stop_time" => float 1416717185.9673
        "stop_memory" => integer 4158816
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9677
        "start_memory" => integer 4178216
        "stop_time" => float 1416717185.9677
        "stop_memory" => integer 4178792
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9681
        "start_memory" => integer 4209952
        "stop_time" => float 1416717185.9681
        "stop_memory" => integer 4210528
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9684
        "start_memory" => integer 4229240
        "stop_time" => float 1416717185.9684
        "stop_memory" => integer 4229784
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9685
        "start_memory" => integer 4234456
        "stop_time" => float 1416717185.9685
        "stop_memory" => integer 4235032
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9687
        "start_memory" => integer 4265888
        "stop_time" => float 1416717185.9688
        "stop_memory" => integer 4266424
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9688
        "start_memory" => integer 4271088
        "stop_time" => float 1416717185.9689
        "stop_memory" => integer 4271656
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9711
        "start_memory" => integer 4413224
        "stop_time" => float 1416717185.9712
        "stop_memory" => integer 4413800
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.979
        "start_memory" => integer 4466616
        "stop_time" => float 1416717185.9791
        "stop_memory" => integer 4467168
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9792
        "start_memory" => integer 4472000
        "stop_time" => float 1416717185.9793
        "stop_memory" => integer 4472576
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9831
        "start_memory" => integer 4498040
        "stop_time" => float 1416717185.9832
        "stop_memory" => integer 4498624
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9833
        "start_memory" => integer 4503560
        "stop_time" => float 1416717185.9833
        "stop_memory" => integer 4504136
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.987
        "start_memory" => integer 4529776
        "stop_time" => float 1416717185.987
        "stop_memory" => integer 4530336
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9871
        "start_memory" => integer 4535192
        "stop_time" => float 1416717185.9871
        "stop_memory" => integer 4536272
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9876
        "start_memory" => integer 4624992
        "stop_time" => float 1416717185.9876
        "stop_memory" => integer 4625592
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9924
        "start_memory" => integer 4632512
        "stop_time" => float 1416717185.9924
        "stop_memory" => integer 4633064
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717185.9925
        "start_memory" => integer 4637944
        "stop_time" => float 1416717185.9925
        "stop_memory" => integer 4638528
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0053
        "start_memory" => integer 4695424
        "stop_time" => float 1416717186.0054
        "stop_memory" => integer 4695984
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0055
        "start_memory" => integer 4700904
        "stop_time" => float 1416717186.0055
        "stop_memory" => integer 4701488
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0057
        "start_memory" => integer 4725328
        "stop_time" => float 1416717186.0057
        "stop_memory" => integer 4725904
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0063
        "start_memory" => integer 4735016
        "stop_time" => float 1416717186.0063
        "stop_memory" => integer 4735576
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0064
        "start_memory" => integer 4740440
        "stop_time" => float 1416717186.0064
        "stop_memory" => integer 4741024
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0073
        "start_memory" => integer 4820480
        "stop_time" => float 1416717186.0073
        "stop_memory" => integer 4821040
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0074
        "start_memory" => integer 4825952
        "stop_time" => float 1416717186.0074
        "stop_memory" => integer 4826528
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0119
        "start_memory" => integer 4852216
        "stop_time" => float 1416717186.012
        "stop_memory" => integer 4852776
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0121
        "start_memory" => integer 4857640
        "stop_time" => float 1416717186.0121
        "stop_memory" => integer 4858224
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0127
        "start_memory" => integer 4879632
        "stop_time" => float 1416717186.0128
        "stop_memory" => integer 4880160
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0129
        "start_memory" => integer 4884808
        "stop_time" => float 1416717186.0129
        "stop_memory" => integer 4885384
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0145
        "start_memory" => integer 4896240
        "stop_time" => float 1416717186.0145
        "stop_memory" => integer 4896832
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0146
        "start_memory" => integer 4901720
        "stop_time" => float 1416717186.0146
        "stop_memory" => integer 4902296
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0182
        "start_memory" => integer 4947232
        "stop_time" => float 1416717186.0182
        "stop_memory" => integer 4947808
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0188
        "start_memory" => integer 4958952
        "stop_time" => float 1416717186.0188
        "stop_memory" => integer 4959496
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0189
        "start_memory" => integer 4964352
        "stop_time" => float 1416717186.0189
        "stop_memory" => integer 4964928
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0238
        "start_memory" => integer 4987424
        "stop_time" => float 1416717186.0238
        "stop_memory" => integer 4988008
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0265
        "start_memory" => integer 4993576
        "stop_time" => float 1416717186.0266
        "stop_memory" => integer 4994144
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0267
        "start_memory" => integer 4998992
        "stop_time" => float 1416717186.0267
        "stop_memory" => integer 4999576
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.03
        "start_memory" => integer 5133304
        "stop_time" => float 1416717186.0301
        "stop_memory" => integer 5133880
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0302
        "start_memory" => integer 5138832
        "stop_time" => float 1416717186.0303
        "stop_memory" => integer 5139424
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.031
        "start_memory" => integer 5154296
        "stop_time" => float 1416717186.0311
        "stop_memory" => integer 5154864
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0312
        "start_memory" => integer 5159848
        "stop_time" => float 1416717186.0312
        "stop_memory" => integer 5160440
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0334
        "start_memory" => integer 5166376
        "stop_time" => float 1416717186.0334
        "stop_memory" => integer 5166928
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0335
        "start_memory" => integer 5171800
        "stop_time" => float 1416717186.0336
        "stop_memory" => integer 5172376
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0352
        "start_memory" => integer 5316968
        "stop_time" => float 1416717186.0352
        "stop_memory" => integer 5317544
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0353
        "start_memory" => integer 5322504
        "stop_time" => float 1416717186.0354
        "stop_memory" => integer 5323096
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0356
        "start_memory" => integer 5343776
        "stop_time" => float 1416717186.0356
        "stop_memory" => integer 5344344
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0357
        "start_memory" => integer 5349232
        "stop_time" => float 1416717186.0358
        "stop_memory" => integer 5349808
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0368
        "start_memory" => integer 5412112
        "stop_time" => float 1416717186.0369
        "stop_memory" => integer 5412672
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.037
        "start_memory" => integer 5417544
        "stop_time" => float 1416717186.0371
        "stop_memory" => integer 5418128
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0381
        "start_memory" => integer 5483632
        "stop_time" => float 1416717186.0381
        "stop_memory" => integer 5484192
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0383
        "start_memory" => integer 5489056
        "stop_time" => float 1416717186.0383
        "stop_memory" => integer 5489640
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0397
        "start_memory" => integer 5532296
        "stop_time" => float 1416717186.0397
        "stop_memory" => integer 5532872
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0398
        "start_memory" => integer 5537840
        "stop_time" => float 1416717186.0399
        "stop_memory" => integer 5538432
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0413
        "start_memory" => integer 5597272
        "stop_time" => float 1416717186.0414
        "stop_memory" => integer 5597856
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0415
        "start_memory" => integer 5602920
        "stop_time" => float 1416717186.0416
        "stop_memory" => integer 5603520
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0418
        "start_memory" => integer 5623192
        "stop_time" => float 1416717186.0419
        "stop_memory" => integer 5623768
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.042
        "start_memory" => integer 5628832
        "stop_time" => float 1416717186.042
        "stop_memory" => integer 5629432
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0434
        "start_memory" => integer 5693912
        "stop_time" => float 1416717186.0435
        "stop_memory" => integer 5694488
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0436
        "start_memory" => integer 5699552
        "stop_time" => float 1416717186.0436
        "stop_memory" => integer 5700152
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0446
        "start_memory" => integer 5748480
        "stop_time" => float 1416717186.0447
        "stop_memory" => integer 5749056
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0447
        "start_memory" => integer 5754112
        "stop_time" => float 1416717186.0448
        "stop_memory" => integer 5754712
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0456
        "start_memory" => integer 5796016
        "stop_time" => float 1416717186.0456
        "stop_memory" => integer 5796592
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0457
        "start_memory" => integer 5801656
        "stop_time" => float 1416717186.0457
        "stop_memory" => integer 5802256
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0467
        "start_memory" => integer 5915184
        "stop_time" => float 1416717186.0467
        "stop_memory" => integer 5915760
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0468
        "start_memory" => integer 5920824
        "stop_time" => float 1416717186.0469
        "stop_memory" => integer 5921424
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0487
        "start_memory" => integer 5970064
        "stop_time" => float 1416717186.0487
        "stop_memory" => integer 5970624
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0488
        "start_memory" => integer 5975592
        "stop_time" => float 1416717186.0488
        "stop_memory" => integer 5976184
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0496
        "start_memory" => integer 5999296
        "stop_time" => float 1416717186.0496
        "stop_memory" => integer 5999816
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0497
        "start_memory" => integer 6004456
        "stop_time" => float 1416717186.0497
        "stop_memory" => integer 6005024
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0507
        "start_memory" => integer 6119696
        "stop_time" => float 1416717186.0507
        "stop_memory" => integer 6120256
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0508
        "start_memory" => integer 6124928
        "stop_time" => float 1416717186.0508
        "stop_memory" => integer 6125520
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0546
        "start_memory" => integer 6145840
        "stop_time" => float 1416717186.0547
        "stop_memory" => integer 6146376
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0547
        "start_memory" => integer 6151024
        "stop_time" => float 1416717186.0548
        "stop_memory" => integer 6151592
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.057
        "start_memory" => integer 6188272
        "stop_time" => float 1416717186.0571
        "stop_memory" => integer 6188816
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0572
        "start_memory" => integer 6193456
        "stop_time" => float 1416717186.0572
        "stop_memory" => integer 6194024
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0578
        "start_memory" => integer 6236472
        "stop_time" => float 1416717186.0579
        "stop_memory" => integer 6237016
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.058
        "start_memory" => integer 6241656
        "stop_time" => float 1416717186.058
        "stop_memory" => integer 6242224
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0586
        "start_memory" => integer 6286432
        "stop_time" => float 1416717186.0586
        "stop_memory" => integer 6286976
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0587
        "start_memory" => integer 6291616
        "stop_time" => float 1416717186.0588
        "stop_memory" => integer 6293208
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0598
        "start_memory" => integer 6368720
        "stop_time" => float 1416717186.0598
        "stop_memory" => integer 6369264
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0599
        "start_memory" => integer 6373920
        "stop_time" => float 1416717186.0599
        "stop_memory" => integer 6374488
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0616
        "start_memory" => integer 6396672
        "stop_time" => float 1416717186.0616
        "stop_memory" => integer 6397232
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0617
        "start_memory" => integer 6401872
        "stop_time" => float 1416717186.0617
        "stop_memory" => integer 6402440
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.063
        "start_memory" => integer 6431584
        "stop_time" => float 1416717186.063
        "stop_memory" => integer 6432144
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0631
        "start_memory" => integer 6436992
        "stop_time" => float 1416717186.0631
        "stop_memory" => integer 6437568
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0638
        "start_memory" => integer 6457864
        "stop_time" => float 1416717186.0639
        "stop_memory" => integer 6458432
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0639
        "start_memory" => integer 6463368
        "stop_time" => float 1416717186.064
        "stop_memory" => integer 6463952
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0646
        "start_memory" => integer 6478992
        "stop_time" => float 1416717186.0646
        "stop_memory" => integer 6479552
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0647
        "start_memory" => integer 6484488
        "stop_time" => float 1416717186.0647
        "stop_memory" => integer 6485072
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0658
        "start_memory" => integer 6500112
        "stop_time" => float 1416717186.0659
        "stop_memory" => integer 6500672
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0659
        "start_memory" => integer 6505608
        "stop_time" => float 1416717186.066
        "stop_memory" => integer 6506192
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0665
        "start_memory" => integer 6521240
        "stop_time" => float 1416717186.0665
        "stop_memory" => integer 6521800
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0666
        "start_memory" => integer 6526736
        "stop_time" => float 1416717186.0667
        "stop_memory" => integer 6527320
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0672
        "start_memory" => integer 6542344
        "stop_time" => float 1416717186.0672
        "stop_memory" => integer 6542904
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0673
        "start_memory" => integer 6547840
        "stop_time" => float 1416717186.0673
        "stop_memory" => integer 6548424
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.068
        "start_memory" => integer 6563448
        "stop_time" => float 1416717186.068
        "stop_memory" => integer 6564008
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0681
        "start_memory" => integer 6568944
        "stop_time" => float 1416717186.0681
        "stop_memory" => integer 6569528
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0688
        "start_memory" => integer 6584584
        "stop_time" => float 1416717186.0689
        "stop_memory" => integer 6585144
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.069
        "start_memory" => integer 6590080
        "stop_time" => float 1416717186.069
        "stop_memory" => integer 6590664
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0696
        "start_memory" => integer 6605688
        "stop_time" => float 1416717186.0697
        "stop_memory" => integer 6606248
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0697
        "start_memory" => integer 6611184
        "stop_time" => float 1416717186.0698
        "stop_memory" => integer 6611768
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0703
        "start_memory" => integer 6626904
        "stop_time" => float 1416717186.0704
        "stop_memory" => integer 6627464
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0704
        "start_memory" => integer 6632400
        "stop_time" => float 1416717186.0705
        "stop_memory" => integer 6632984
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.071
        "start_memory" => integer 6648016
        "stop_time" => float 1416717186.071
        "stop_memory" => integer 6648576
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0711
        "start_memory" => integer 6653512
        "stop_time" => float 1416717186.0712
        "stop_memory" => integer 6654096
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0717
        "start_memory" => integer 6669136
        "stop_time" => float 1416717186.0718
        "stop_memory" => integer 6669696
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0719
        "start_memory" => integer 6674632
        "stop_time" => float 1416717186.0719
        "stop_memory" => integer 6675216
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0724
        "start_memory" => integer 6690224
        "stop_time" => float 1416717186.0725
        "stop_memory" => integer 6690784
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0725
        "start_memory" => integer 6695720
        "stop_time" => float 1416717186.0726
        "stop_memory" => integer 6696304
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0731
        "start_memory" => integer 6711328
        "stop_time" => float 1416717186.0732
        "stop_memory" => integer 6711888
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0732
        "start_memory" => integer 6716824
        "stop_time" => float 1416717186.0733
        "stop_memory" => integer 6717408
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0738
        "start_memory" => integer 6732448
        "stop_time" => float 1416717186.0738
        "stop_memory" => integer 6733008
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0739
        "start_memory" => integer 6737944
        "stop_time" => float 1416717186.0739
        "stop_memory" => integer 6738528
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0746
        "start_memory" => integer 6753584
        "stop_time" => float 1416717186.0746
        "stop_memory" => integer 6754144
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0747
        "start_memory" => integer 6759080
        "stop_time" => float 1416717186.0747
        "stop_memory" => integer 6759664
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0753
        "start_memory" => integer 6774712
        "stop_time" => float 1416717186.0753
        "stop_memory" => integer 6775272
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0754
        "start_memory" => integer 6780208
        "stop_time" => float 1416717186.0754
        "stop_memory" => integer 6780792
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0759
        "start_memory" => integer 6795976
        "stop_time" => float 1416717186.076
        "stop_memory" => integer 6796536
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.076
        "start_memory" => integer 6801472
        "stop_time" => float 1416717186.0761
        "stop_memory" => integer 6802056
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0766
        "start_memory" => integer 6817128
        "stop_time" => float 1416717186.0767
        "stop_memory" => integer 6817688
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0767
        "start_memory" => integer 6822624
        "stop_time" => float 1416717186.0768
        "stop_memory" => integer 6823208
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0773
        "start_memory" => integer 6838264
        "stop_time" => float 1416717186.0774
        "stop_memory" => integer 6838824
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0774
        "start_memory" => integer 6843760
        "stop_time" => float 1416717186.0775
        "stop_memory" => integer 6844344
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.078
        "start_memory" => integer 6859392
        "stop_time" => float 1416717186.078
        "stop_memory" => integer 6859952
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0781
        "start_memory" => integer 6864888
        "stop_time" => float 1416717186.0781
        "stop_memory" => integer 6865472
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0787
        "start_memory" => integer 6880496
        "stop_time" => float 1416717186.0787
        "stop_memory" => integer 6881056
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0788
        "start_memory" => integer 6885992
        "stop_time" => float 1416717186.0788
        "stop_memory" => integer 6886576
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0793
        "start_memory" => integer 6901600
        "stop_time" => float 1416717186.0794
        "stop_memory" => integer 6902160
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0795
        "start_memory" => integer 6907096
        "stop_time" => float 1416717186.0795
        "stop_memory" => integer 6907680
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0801
        "start_memory" => integer 6922736
        "stop_time" => float 1416717186.0801
        "stop_memory" => integer 6923296
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0802
        "start_memory" => integer 6928232
        "stop_time" => float 1416717186.0802
        "stop_memory" => integer 6928816
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0807
        "start_memory" => integer 6943856
        "stop_time" => float 1416717186.0808
        "stop_memory" => integer 6944416
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0808
        "start_memory" => integer 6949352
        "stop_time" => float 1416717186.0809
        "stop_memory" => integer 6949936
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0822
        "start_memory" => integer 6965200
        "stop_time" => float 1416717186.0822
        "stop_memory" => integer 6965760
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0823
        "start_memory" => integer 6970672
        "stop_time" => float 1416717186.0823
        "stop_memory" => integer 6971240
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0845
        "start_memory" => integer 7009288
        "stop_time" => float 1416717186.0846
        "stop_memory" => integer 7009840
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0847
        "start_memory" => integer 7014528
        "stop_time" => float 1416717186.0847
        "stop_memory" => integer 7015104
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0858
        "start_memory" => integer 7146168
        "stop_time" => float 1416717186.0858
        "stop_memory" => integer 7146720
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0859
        "start_memory" => integer 7151400
        "stop_time" => float 1416717186.0859
        "stop_memory" => integer 7151976
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0873
        "start_memory" => integer 7321136
        "stop_time" => float 1416717186.0873
        "stop_memory" => integer 7321688
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0874
        "start_memory" => integer 7326376
        "stop_time" => float 1416717186.0875
        "stop_memory" => integer 7326936
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0894
        "start_memory" => integer 7382600
        "stop_time" => float 1416717186.0895
        "stop_memory" => integer 7383176
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0896
        "start_memory" => integer 7388088
        "stop_time" => float 1416717186.0896
        "stop_memory" => integer 7388656
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0902
        "start_memory" => integer 7428688
        "stop_time" => float 1416717186.0902
        "stop_memory" => integer 7429264
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0903
        "start_memory" => integer 7434216
        "stop_time" => float 1416717186.0903
        "stop_memory" => integer 7434808
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0914
        "start_memory" => integer 7460752
        "stop_time" => float 1416717186.0915
        "stop_memory" => integer 7461320
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0915
        "start_memory" => integer 7466192
        "stop_time" => float 1416717186.0916
        "stop_memory" => integer 7466768
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0936
        "start_memory" => integer 7492832
        "stop_time" => float 1416717186.0936
        "stop_memory" => integer 7493408
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0967
        "start_memory" => integer 7504312
        "stop_time" => float 1416717186.0967
        "stop_memory" => integer 7504872
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.097
        "start_memory" => integer 7514760
        "stop_time" => float 1416717186.097
        "stop_memory" => integer 7515328
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0987
        "start_memory" => integer 7525928
        "stop_time" => float 1416717186.0988
        "stop_memory" => integer 7526480
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0989
        "start_memory" => integer 7531192
        "stop_time" => float 1416717186.099
        "stop_memory" => integer 7531768
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0994
        "start_memory" => integer 7537256
        "stop_time" => float 1416717186.0995
        "stop_memory" => integer 7537808
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.0996
        "start_memory" => integer 7542536
        "stop_time" => float 1416717186.0996
        "stop_memory" => integer 7543112
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1001
        "start_memory" => integer 7548560
        "stop_time" => float 1416717186.1001
        "stop_memory" => integer 7549112
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1002
        "start_memory" => integer 7553864
        "stop_time" => float 1416717186.1002
        "stop_memory" => integer 7554440
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1011
        "start_memory" => integer 7566448
        "stop_time" => float 1416717186.1011
        "stop_memory" => integer 7566984
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1012
        "start_memory" => integer 7571632
        "stop_time" => float 1416717186.1012
        "stop_memory" => integer 7572200
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1016
        "start_memory" => integer 7575264
        "stop_time" => float 1416717186.1017
        "stop_memory" => integer 7575840
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1018
        "start_memory" => integer 7585128
        "stop_time" => float 1416717186.1018
        "stop_memory" => integer 7585664
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1018
        "start_memory" => integer 7590312
        "stop_time" => float 1416717186.1019
        "stop_memory" => integer 7590880
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1043
        "start_memory" => integer 7966288
        "stop_time" => float 1416717186.1044
        "stop_memory" => integer 7966864
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1054
        "start_memory" => integer 8045448
        "stop_time" => float 1416717186.1054
        "stop_memory" => integer 8046032
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1062
        "start_memory" => integer 8091256
        "stop_time" => float 1416717186.1062
        "stop_memory" => integer 8091816
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1063
        "start_memory" => integer 8096680
        "stop_time" => float 1416717186.1063
        "stop_memory" => integer 8097264
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1068
        "start_memory" => integer 8106240
        "stop_time" => float 1416717186.1069
        "stop_memory" => integer 8106784
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1073
        "start_memory" => integer 8138224
        "stop_time" => float 1416717186.1074
        "stop_memory" => integer 8138784
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1078
        "start_memory" => integer 8173192
        "stop_time" => float 1416717186.1078
        "stop_memory" => integer 8173768
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1083
        "start_memory" => integer 8205880
        "stop_time" => float 1416717186.1083
        "stop_memory" => integer 8206416
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1084
        "start_memory" => integer 8211072
        "stop_time" => float 1416717186.1084
        "stop_memory" => integer 8211640
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1103
        "start_memory" => integer 8253448
        "stop_time" => float 1416717186.1103
        "stop_memory" => integer 8254040
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1104
        "start_memory" => integer 8259224
        "stop_time" => float 1416717186.1104
        "stop_memory" => integer 8259816
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1129
        "start_memory" => integer 8303944
        "stop_time" => float 1416717186.1129
        "stop_memory" => integer 8304496
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.113
        "start_memory" => integer 8309432
        "stop_time" => float 1416717186.1131
        "stop_memory" => integer 8310016
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1172
        "start_memory" => integer 8411704
        "stop_time" => float 1416717186.1172
        "stop_memory" => integer 8412232
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1173
        "start_memory" => integer 8416888
        "stop_time" => float 1416717186.1173
        "stop_memory" => integer 8417456
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1178
        "start_memory" => integer 8432384
        "stop_time" => float 1416717186.1178
        "stop_memory" => integer 8432936
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1179
        "start_memory" => integer 8437584
        "stop_time" => float 1416717186.1179
        "stop_memory" => integer 8438152
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1187
        "start_memory" => integer 8504584
        "stop_time" => float 1416717186.1187
        "stop_memory" => integer 8505144
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1188
        "start_memory" => integer 8509992
        "stop_time" => float 1416717186.1189
        "stop_memory" => integer 8510568
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1195
        "start_memory" => integer 8534040
        "stop_time" => float 1416717186.1195
        "stop_memory" => integer 8534624
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1196
        "start_memory" => integer 8539544
        "stop_time" => float 1416717186.1196
        "stop_memory" => integer 8540136
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1213
        "start_memory" => integer 8611120
        "stop_time" => float 1416717186.1214
        "stop_memory" => integer 8611656
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1215
        "start_memory" => integer 8616528
        "stop_time" => float 1416717186.1215
        "stop_memory" => integer 8617080
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1221
        "start_memory" => integer 8644816
        "stop_time" => float 1416717186.1222
        "stop_memory" => integer 8645352
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1222
        "start_memory" => integer 8650008
        "stop_time" => float 1416717186.1223
        "stop_memory" => integer 8650576
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1233
        "start_memory" => integer 8771800
        "stop_time" => float 1416717186.1233
        "stop_memory" => integer 8772344
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1234
        "start_memory" => integer 8777016
        "stop_time" => float 1416717186.1234
        "stop_memory" => integer 8777584
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1278
        "start_memory" => integer 8808968
        "stop_time" => float 1416717186.1279
        "stop_memory" => integer 8809512
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1279
        "start_memory" => integer 8814160
        "stop_time" => float 1416717186.128
        "stop_memory" => integer 8814728
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1291
        "start_memory" => integer 8915016
        "stop_time" => float 1416717186.1292
        "stop_memory" => integer 8915576
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1293
        "start_memory" => integer 8920288
        "stop_time" => float 1416717186.1294
        "stop_memory" => integer 8920864
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1304
        "start_memory" => integer 9028640
        "stop_time" => float 1416717186.1305
        "stop_memory" => integer 9029208
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1306
        "start_memory" => integer 9034128
        "stop_time" => float 1416717186.1306
        "stop_memory" => integer 9034712
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1314
        "start_memory" => integer 9055904
        "stop_time" => float 1416717186.1315
        "stop_memory" => integer 9056480
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1318
        "start_memory" => integer 9020984
        "stop_time" => float 1416717186.1318
        "stop_memory" => integer 9022920
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1323
        "start_memory" => integer 9093640
        "stop_time" => float 1416717186.1324
        "stop_memory" => integer 9095368
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717186.1324
        "start_memory" => integer 9095128
        "stop_time" => float 1416717186.1324
        "stop_memory" => integer 9096856
    )
)

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