Modules

Profiler
extends Kohana_Profiler

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

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

Class declared in SYSPATH/classes/profiler.php on line 3.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1436182485.4789
        "start_memory" => integer 1116232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.479
        "start_memory" => integer 1118488
        "stop_time" => float 1436182485.479
        "stop_memory" => integer 1119176
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4791
        "start_memory" => integer 1122720
        "stop_time" => float 1436182485.4791
        "stop_memory" => integer 1123328
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4797
        "start_memory" => integer 1199792
        "stop_time" => float 1436182485.4798
        "stop_memory" => integer 1200344
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4799
        "start_memory" => integer 1203848
        "stop_time" => float 1436182485.4799
        "stop_memory" => integer 1204440
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.48
        "start_memory" => integer 1212408
        "stop_time" => float 1436182485.4801
        "stop_memory" => integer 1212960
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4801
        "start_memory" => integer 1216424
        "stop_time" => float 1436182485.4802
        "stop_memory" => integer 1217008
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4803
        "start_memory" => integer 1225864
        "stop_time" => float 1436182485.4803
        "stop_memory" => integer 1226424
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4804
        "start_memory" => integer 1229864
        "stop_time" => float 1436182485.4805
        "stop_memory" => integer 1230520
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4812
        "start_memory" => integer 1325368
        "stop_time" => float 1436182485.4813
        "stop_memory" => integer 1325968
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4813
        "start_memory" => integer 1329448
        "stop_time" => float 1436182485.4814
        "stop_memory" => integer 1330040
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4815
        "start_memory" => integer 1341824
        "stop_time" => float 1436182485.4815
        "stop_memory" => integer 1342376
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4816
        "start_memory" => integer 1345800
        "stop_time" => float 1436182485.4817
        "stop_memory" => integer 1346368
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4819
        "start_memory" => integer 1380760
        "stop_time" => float 1436182485.482
        "stop_memory" => integer 1381360
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.482
        "start_memory" => integer 1382432
        "stop_time" => float 1436182485.482
        "stop_memory" => integer 1382968
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4821
        "start_memory" => integer 1386376
        "stop_time" => float 1436182485.4821
        "stop_memory" => integer 1386952
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4824
        "start_memory" => integer 1406200
        "stop_time" => float 1436182485.4825
        "stop_memory" => integer 1406904
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4825
        "start_memory" => integer 1410328
        "stop_time" => float 1436182485.4826
        "stop_memory" => integer 1410896
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4831
        "start_memory" => integer 1506504
        "stop_time" => float 1436182485.4832
        "stop_memory" => integer 1507104
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4833
        "start_memory" => integer 1510608
        "stop_time" => float 1436182485.4833
        "stop_memory" => integer 1511208
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4839
        "start_memory" => integer 1550488
        "stop_time" => float 1436182485.484
        "stop_memory" => integer 1550992
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.484
        "start_memory" => integer 1551632
        "stop_time" => float 1436182485.484
        "stop_memory" => integer 1552208
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4869
        "start_memory" => integer 1951384
        "stop_time" => float 1436182485.487
        "stop_memory" => integer 1951968
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4871
        "start_memory" => integer 1955472
        "stop_time" => float 1436182485.4871
        "stop_memory" => integer 1956072
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4872
        "start_memory" => integer 1957704
        "stop_time" => float 1436182485.4873
        "stop_memory" => integer 1958304
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4874
        "start_memory" => integer 1961816
        "stop_time" => float 1436182485.4874
        "stop_memory" => integer 1962392
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4877
        "start_memory" => integer 1992040
        "stop_time" => float 1436182485.4877
        "stop_memory" => integer 1992600
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4878
        "start_memory" => integer 1996104
        "stop_time" => float 1436182485.4879
        "stop_memory" => integer 1996704
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4884
        "start_memory" => integer 2059016
        "stop_time" => float 1436182485.4885
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4885
        "start_memory" => integer 2063000
        "stop_time" => float 1436182485.4886
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.4895
        "start_memory" => integer 2122480
        "stop_time" => float 1436182485.4896
        "stop_memory" => integer 2123096
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5661
        "start_memory" => integer 2163992
        "stop_time" => float 1436182485.5661
        "stop_memory" => integer 2164544
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5662
        "start_memory" => integer 2167968
        "stop_time" => float 1436182485.5663
        "stop_memory" => integer 2168808
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5669
        "start_memory" => integer 2195056
        "stop_time" => float 1436182485.5669
        "stop_memory" => integer 2195632
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.567
        "start_memory" => integer 2199112
        "stop_time" => float 1436182485.567
        "stop_memory" => integer 2199704
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5676
        "start_memory" => integer 2217000
        "stop_time" => float 1436182485.5676
        "stop_memory" => integer 2217568
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5677
        "start_memory" => integer 2221032
        "stop_time" => float 1436182485.5677
        "stop_memory" => integer 2221624
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5687
        "start_memory" => integer 2265080
        "stop_time" => float 1436182485.5687
        "stop_memory" => integer 2265680
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5689
        "start_memory" => integer 2277216
        "stop_time" => float 1436182485.5689
        "stop_memory" => integer 2277792
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.569
        "start_memory" => integer 2281312
        "stop_time" => float 1436182485.569
        "stop_memory" => integer 2281896
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5695
        "start_memory" => integer 2319896
        "stop_time" => float 1436182485.5695
        "stop_memory" => integer 2320496
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5697
        "start_memory" => integer 2332616
        "stop_time" => float 1436182485.5698
        "stop_memory" => integer 2333192
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5701
        "start_memory" => integer 2360208
        "stop_time" => float 1436182485.5702
        "stop_memory" => integer 2360808
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5704
        "start_memory" => integer 2368624
        "stop_time" => float 1436182485.5704
        "stop_memory" => integer 2369200
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5706
        "start_memory" => integer 2382352
        "stop_time" => float 1436182485.5706
        "stop_memory" => integer 2382952
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5708
        "start_memory" => integer 2389968
        "stop_time" => float 1436182485.5708
        "stop_memory" => integer 2390560
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5711
        "start_memory" => integer 2403864
        "stop_time" => float 1436182485.5711
        "stop_memory" => integer 2404456
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5713
        "start_memory" => integer 2418088
        "stop_time" => float 1436182485.5714
        "stop_memory" => integer 2418680
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5716
        "start_memory" => integer 2428160
        "stop_time" => float 1436182485.5716
        "stop_memory" => integer 2428752
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5718
        "start_memory" => integer 2437424
        "stop_time" => float 1436182485.5718
        "stop_memory" => integer 2438016
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5721
        "start_memory" => integer 2483352
        "stop_time" => float 1436182485.5721
        "stop_memory" => integer 2483928
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5724
        "start_memory" => integer 2506856
        "stop_time" => float 1436182485.5725
        "stop_memory" => integer 2507456
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5727
        "start_memory" => integer 2520752
        "stop_time" => float 1436182485.5728
        "stop_memory" => integer 2521328
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.573
        "start_memory" => integer 2540528
        "stop_time" => float 1436182485.5731
        "stop_memory" => integer 2541112
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5733
        "start_memory" => integer 2554768
        "stop_time" => float 1436182485.5733
        "stop_memory" => integer 2555336
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5734
        "start_memory" => integer 2558792
        "stop_time" => float 1436182485.5734
        "stop_memory" => integer 2559376
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5736
        "start_memory" => integer 2581576
        "stop_time" => float 1436182485.5737
        "stop_memory" => integer 2582136
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5738
        "start_memory" => integer 2585568
        "stop_time" => float 1436182485.5738
        "stop_memory" => integer 2586152
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5758
        "start_memory" => integer 2680064
        "stop_time" => float 1436182485.5759
        "stop_memory" => integer 2680640
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5811
        "start_memory" => integer 2711216
        "stop_time" => float 1436182485.5812
        "stop_memory" => integer 2711792
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5812
        "start_memory" => integer 2715296
        "stop_time" => float 1436182485.5813
        "stop_memory" => integer 2715888
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5841
        "start_memory" => integer 2735000
        "stop_time" => float 1436182485.5842
        "stop_memory" => integer 2735584
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5843
        "start_memory" => integer 2739112
        "stop_time" => float 1436182485.5843
        "stop_memory" => integer 2739712
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5873
        "start_memory" => integer 2758904
        "stop_time" => float 1436182485.5873
        "stop_memory" => integer 2759464
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5874
        "start_memory" => integer 2762944
        "stop_time" => float 1436182485.5874
        "stop_memory" => integer 2764048
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.588
        "start_memory" => integer 2818600
        "stop_time" => float 1436182485.588
        "stop_memory" => integer 2819200
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5912
        "start_memory" => integer 2826512
        "stop_time" => float 1436182485.5912
        "stop_memory" => integer 2827088
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.5913
        "start_memory" => integer 2830592
        "stop_time" => float 1436182485.5913
        "stop_memory" => integer 2831192
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6018
        "start_memory" => integer 2870856
        "stop_time" => float 1436182485.6018
        "stop_memory" => integer 2871432
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6019
        "start_memory" => integer 2874960
        "stop_time" => float 1436182485.602
        "stop_memory" => integer 2875560
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6021
        "start_memory" => integer 2891528
        "stop_time" => float 1436182485.6021
        "stop_memory" => integer 2892104
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6026
        "start_memory" => integer 2899424
        "stop_time" => float 1436182485.6026
        "stop_memory" => integer 2899992
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6027
        "start_memory" => integer 2903464
        "stop_time" => float 1436182485.6027
        "stop_memory" => integer 2904056
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6035
        "start_memory" => integer 2953496
        "stop_time" => float 1436182485.6036
        "stop_memory" => integer 2954080
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6036
        "start_memory" => integer 2957584
        "stop_time" => float 1436182485.6037
        "stop_memory" => integer 2958184
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6076
        "start_memory" => integer 2977584
        "stop_time" => float 1436182485.6076
        "stop_memory" => integer 2978144
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6077
        "start_memory" => integer 2981640
        "stop_time" => float 1436182485.6077
        "stop_memory" => integer 2982232
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6083
        "start_memory" => integer 2997384
        "stop_time" => float 1436182485.6084
        "stop_memory" => integer 2997920
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6085
        "start_memory" => integer 3001328
        "stop_time" => float 1436182485.6085
        "stop_memory" => integer 3001904
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6097
        "start_memory" => integer 3008576
        "stop_time" => float 1436182485.6097
        "stop_memory" => integer 3009176
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6098
        "start_memory" => integer 3012688
        "stop_time" => float 1436182485.6098
        "stop_memory" => integer 3013288
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6124
        "start_memory" => integer 3048336
        "stop_time" => float 1436182485.6124
        "stop_memory" => integer 3048928
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6128
        "start_memory" => integer 3056624
        "stop_time" => float 1436182485.6128
        "stop_memory" => integer 3057184
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6129
        "start_memory" => integer 3060672
        "stop_time" => float 1436182485.613
        "stop_memory" => integer 3061264
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6155
        "start_memory" => integer 3078904
        "stop_time" => float 1436182485.6155
        "stop_memory" => integer 3079488
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.617
        "start_memory" => integer 3084088
        "stop_time" => float 1436182485.6171
        "stop_memory" => integer 3084656
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6171
        "start_memory" => integer 3088120
        "stop_time" => float 1436182485.6172
        "stop_memory" => integer 3088712
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6191
        "start_memory" => integer 3182744
        "stop_time" => float 1436182485.6191
        "stop_memory" => integer 3183344
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6192
        "start_memory" => integer 3186896
        "stop_time" => float 1436182485.6192
        "stop_memory" => integer 3187488
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6198
        "start_memory" => integer 3200376
        "stop_time" => float 1436182485.6198
        "stop_memory" => integer 3200968
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6199
        "start_memory" => integer 3204520
        "stop_time" => float 1436182485.62
        "stop_memory" => integer 3205128
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6214
        "start_memory" => integer 3210160
        "stop_time" => float 1436182485.6215
        "stop_memory" => integer 3210728
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6216
        "start_memory" => integer 3214232
        "stop_time" => float 1436182485.6216
        "stop_memory" => integer 3214832
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6228
        "start_memory" => integer 3309624
        "stop_time" => float 1436182485.6228
        "stop_memory" => integer 3310216
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6229
        "start_memory" => integer 3313768
        "stop_time" => float 1436182485.6229
        "stop_memory" => integer 3314376
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6231
        "start_memory" => integer 3326416
        "stop_time" => float 1436182485.6231
        "stop_memory" => integer 3326984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6232
        "start_memory" => integer 3330488
        "stop_time" => float 1436182485.6232
        "stop_memory" => integer 3331112
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6241
        "start_memory" => integer 3374752
        "stop_time" => float 1436182485.6241
        "stop_memory" => integer 3375328
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6242
        "start_memory" => integer 3378848
        "stop_time" => float 1436182485.6243
        "stop_memory" => integer 3379448
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.625
        "start_memory" => integer 3424080
        "stop_time" => float 1436182485.6251
        "stop_memory" => integer 3424656
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6252
        "start_memory" => integer 3428160
        "stop_time" => float 1436182485.6252
        "stop_memory" => integer 3428760
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.626
        "start_memory" => integer 3456072
        "stop_time" => float 1436182485.626
        "stop_memory" => integer 3456664
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6261
        "start_memory" => integer 3460224
        "stop_time" => float 1436182485.6261
        "stop_memory" => integer 3460832
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6269
        "start_memory" => integer 3497088
        "stop_time" => float 1436182485.627
        "stop_memory" => integer 3497688
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.627
        "start_memory" => integer 3501320
        "stop_time" => float 1436182485.6271
        "stop_memory" => integer 3501936
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6275
        "start_memory" => integer 3514080
        "stop_time" => float 1436182485.6275
        "stop_memory" => integer 3514672
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6276
        "start_memory" => integer 3518296
        "stop_time" => float 1436182485.6277
        "stop_memory" => integer 3518912
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6285
        "start_memory" => integer 3571032
        "stop_time" => float 1436182485.6285
        "stop_memory" => integer 3571624
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6286
        "start_memory" => integer 3575232
        "stop_time" => float 1436182485.6286
        "stop_memory" => integer 3575848
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6294
        "start_memory" => integer 3608440
        "stop_time" => float 1436182485.6294
        "stop_memory" => integer 3609032
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6295
        "start_memory" => integer 3612656
        "stop_time" => float 1436182485.6295
        "stop_memory" => integer 3613272
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6302
        "start_memory" => integer 3641896
        "stop_time" => float 1436182485.6303
        "stop_memory" => integer 3642488
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6304
        "start_memory" => integer 3646096
        "stop_time" => float 1436182485.6304
        "stop_memory" => integer 3646712
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6315
        "start_memory" => integer 3722632
        "stop_time" => float 1436182485.6316
        "stop_memory" => integer 3723224
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6317
        "start_memory" => integer 3726832
        "stop_time" => float 1436182485.6317
        "stop_memory" => integer 3727448
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6337
        "start_memory" => integer 3763920
        "stop_time" => float 1436182485.6337
        "stop_memory" => integer 3764496
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6338
        "start_memory" => integer 3768056
        "stop_time" => float 1436182485.6338
        "stop_memory" => integer 3768664
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6346
        "start_memory" => integer 3786992
        "stop_time" => float 1436182485.6347
        "stop_memory" => integer 3787528
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6348
        "start_memory" => integer 3790976
        "stop_time" => float 1436182485.6349
        "stop_memory" => integer 3791544
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6362
        "start_memory" => integer 3861104
        "stop_time" => float 1436182485.6362
        "stop_memory" => integer 3861688
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6363
        "start_memory" => integer 3865144
        "stop_time" => float 1436182485.6363
        "stop_memory" => integer 3865720
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6397
        "start_memory" => integer 3879920
        "stop_time" => float 1436182485.6398
        "stop_memory" => integer 3880480
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6399
        "start_memory" => integer 3883912
        "stop_time" => float 1436182485.6399
        "stop_memory" => integer 3884496
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.642
        "start_memory" => integer 3906336
        "stop_time" => float 1436182485.6421
        "stop_memory" => integer 3906896
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6422
        "start_memory" => integer 3910320
        "stop_time" => float 1436182485.6422
        "stop_memory" => integer 3910888
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6428
        "start_memory" => integer 3934032
        "stop_time" => float 1436182485.6429
        "stop_memory" => integer 3934600
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.643
        "start_memory" => integer 3938032
        "stop_time" => float 1436182485.643
        "stop_memory" => integer 3938600
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6436
        "start_memory" => integer 3964536
        "stop_time" => float 1436182485.6437
        "stop_memory" => integer 3965104
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6438
        "start_memory" => integer 3968528
        "stop_time" => float 1436182485.6438
        "stop_memory" => integer 3970120
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.645
        "start_memory" => integer 4017232
        "stop_time" => float 1436182485.6451
        "stop_memory" => integer 4017800
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6452
        "start_memory" => integer 4021240
        "stop_time" => float 1436182485.6453
        "stop_memory" => integer 4021824
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6468
        "start_memory" => integer 4036368
        "stop_time" => float 1436182485.6468
        "stop_memory" => integer 4036928
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.647
        "start_memory" => integer 4040376
        "stop_time" => float 1436182485.647
        "stop_memory" => integer 4040944
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.648
        "start_memory" => integer 4057568
        "stop_time" => float 1436182485.648
        "stop_memory" => integer 4058152
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6481
        "start_memory" => integer 4061632
        "stop_time" => float 1436182485.6482
        "stop_memory" => integer 4062224
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6487
        "start_memory" => integer 4078000
        "stop_time" => float 1436182485.6488
        "stop_memory" => integer 4078568
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6488
        "start_memory" => integer 4082072
        "stop_time" => float 1436182485.6489
        "stop_memory" => integer 4082664
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6495
        "start_memory" => integer 4095560
        "stop_time" => float 1436182485.6496
        "stop_memory" => integer 4096128
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6497
        "start_memory" => integer 4099632
        "stop_time" => float 1436182485.6498
        "stop_memory" => integer 4100224
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6506
        "start_memory" => integer 4113136
        "stop_time" => float 1436182485.6507
        "stop_memory" => integer 4113704
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6507
        "start_memory" => integer 4117208
        "stop_time" => float 1436182485.6508
        "stop_memory" => integer 4117800
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6513
        "start_memory" => integer 4130712
        "stop_time" => float 1436182485.6513
        "stop_memory" => integer 4131280
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6514
        "start_memory" => integer 4134784
        "stop_time" => float 1436182485.6515
        "stop_memory" => integer 4135376
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.652
        "start_memory" => integer 4148272
        "stop_time" => float 1436182485.652
        "stop_memory" => integer 4148840
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6521
        "start_memory" => integer 4152344
        "stop_time" => float 1436182485.6522
        "stop_memory" => integer 4152936
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6527
        "start_memory" => integer 4165832
        "stop_time" => float 1436182485.6528
        "stop_memory" => integer 4166400
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6529
        "start_memory" => integer 4169904
        "stop_time" => float 1436182485.6529
        "stop_memory" => integer 4170496
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6534
        "start_memory" => integer 4183408
        "stop_time" => float 1436182485.6534
        "stop_memory" => integer 4183976
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6535
        "start_memory" => integer 4187480
        "stop_time" => float 1436182485.6536
        "stop_memory" => integer 4188072
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6541
        "start_memory" => integer 4200968
        "stop_time" => float 1436182485.6541
        "stop_memory" => integer 4201536
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6542
        "start_memory" => integer 4205040
        "stop_time" => float 1436182485.6543
        "stop_memory" => integer 4205632
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6548
        "start_memory" => integer 4218624
        "stop_time" => float 1436182485.6548
        "stop_memory" => integer 4219192
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6549
        "start_memory" => integer 4222696
        "stop_time" => float 1436182485.655
        "stop_memory" => integer 4223288
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6555
        "start_memory" => integer 4236184
        "stop_time" => float 1436182485.6555
        "stop_memory" => integer 4236752
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6556
        "start_memory" => integer 4240256
        "stop_time" => float 1436182485.6557
        "stop_memory" => integer 4240848
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6564
        "start_memory" => integer 4253744
        "stop_time" => float 1436182485.6564
        "stop_memory" => integer 4254312
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6565
        "start_memory" => integer 4257816
        "stop_time" => float 1436182485.6566
        "stop_memory" => integer 4258408
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.657
        "start_memory" => integer 4271288
        "stop_time" => float 1436182485.6571
        "stop_memory" => integer 4271856
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6572
        "start_memory" => integer 4275360
        "stop_time" => float 1436182485.6572
        "stop_memory" => integer 4275952
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6577
        "start_memory" => integer 4288848
        "stop_time" => float 1436182485.6577
        "stop_memory" => integer 4289416
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6578
        "start_memory" => integer 4292920
        "stop_time" => float 1436182485.6579
        "stop_memory" => integer 4293512
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6583
        "start_memory" => integer 4306424
        "stop_time" => float 1436182485.6584
        "stop_memory" => integer 4306992
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6585
        "start_memory" => integer 4310496
        "stop_time" => float 1436182485.6585
        "stop_memory" => integer 4311088
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.659
        "start_memory" => integer 4324016
        "stop_time" => float 1436182485.659
        "stop_memory" => integer 4324584
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6591
        "start_memory" => integer 4328088
        "stop_time" => float 1436182485.6592
        "stop_memory" => integer 4328680
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6596
        "start_memory" => integer 4341592
        "stop_time" => float 1436182485.6597
        "stop_memory" => integer 4342160
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6598
        "start_memory" => integer 4345664
        "stop_time" => float 1436182485.6598
        "stop_memory" => integer 4346256
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6603
        "start_memory" => integer 4359296
        "stop_time" => float 1436182485.6604
        "stop_memory" => integer 4359864
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6605
        "start_memory" => integer 4363368
        "stop_time" => float 1436182485.6605
        "stop_memory" => integer 4363960
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.661
        "start_memory" => integer 4376888
        "stop_time" => float 1436182485.6611
        "stop_memory" => integer 4377456
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6612
        "start_memory" => integer 4380960
        "stop_time" => float 1436182485.6612
        "stop_memory" => integer 4381552
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6618
        "start_memory" => integer 4394464
        "stop_time" => float 1436182485.6618
        "stop_memory" => integer 4395032
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6619
        "start_memory" => integer 4398536
        "stop_time" => float 1436182485.662
        "stop_memory" => integer 4399128
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6624
        "start_memory" => integer 4412040
        "stop_time" => float 1436182485.6625
        "stop_memory" => integer 4412608
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6626
        "start_memory" => integer 4416112
        "stop_time" => float 1436182485.6626
        "stop_memory" => integer 4416704
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6631
        "start_memory" => integer 4429600
        "stop_time" => float 1436182485.6631
        "stop_memory" => integer 4430168
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6632
        "start_memory" => integer 4433672
        "stop_time" => float 1436182485.6633
        "stop_memory" => integer 4434264
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6638
        "start_memory" => integer 4447160
        "stop_time" => float 1436182485.6639
        "stop_memory" => integer 4447728
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.664
        "start_memory" => integer 4451232
        "stop_time" => float 1436182485.664
        "stop_memory" => integer 4451824
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6646
        "start_memory" => integer 4464736
        "stop_time" => float 1436182485.6647
        "stop_memory" => integer 4465304
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6648
        "start_memory" => integer 4468808
        "stop_time" => float 1436182485.6648
        "stop_memory" => integer 4469400
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6653
        "start_memory" => integer 4482296
        "stop_time" => float 1436182485.6654
        "stop_memory" => integer 4482864
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6654
        "start_memory" => integer 4486368
        "stop_time" => float 1436182485.6655
        "stop_memory" => integer 4486960
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6666
        "start_memory" => integer 4500096
        "stop_time" => float 1436182485.6666
        "stop_memory" => integer 4500664
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6667
        "start_memory" => integer 4504168
        "stop_time" => float 1436182485.6668
        "stop_memory" => integer 4504760
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6697
        "start_memory" => integer 4527680
        "stop_time" => float 1436182485.6697
        "stop_memory" => integer 4528248
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6698
        "start_memory" => integer 4531712
        "stop_time" => float 1436182485.6699
        "stop_memory" => integer 4532288
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6712
        "start_memory" => integer 4613488
        "stop_time" => float 1436182485.6712
        "stop_memory" => integer 4614064
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6713
        "start_memory" => integer 4617528
        "stop_time" => float 1436182485.6714
        "stop_memory" => integer 4618120
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6729
        "start_memory" => integer 4719296
        "stop_time" => float 1436182485.673
        "stop_memory" => integer 4719848
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6731
        "start_memory" => integer 4723328
        "stop_time" => float 1436182485.6731
        "stop_memory" => integer 4723912
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6749
        "start_memory" => integer 4756904
        "stop_time" => float 1436182485.675
        "stop_memory" => integer 4757496
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6751
        "start_memory" => integer 4760992
        "stop_time" => float 1436182485.6751
        "stop_memory" => integer 4761592
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6757
        "start_memory" => integer 4787160
        "stop_time" => float 1436182485.6757
        "stop_memory" => integer 4787752
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6758
        "start_memory" => integer 4791328
        "stop_time" => float 1436182485.6759
        "stop_memory" => integer 4791936
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6768
        "start_memory" => integer 4810648
        "stop_time" => float 1436182485.6769
        "stop_memory" => integer 4811216
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6769
        "start_memory" => integer 4814744
        "stop_time" => float 1436182485.677
        "stop_memory" => integer 4815344
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6783
        "start_memory" => integer 4833936
        "stop_time" => float 1436182485.6784
        "stop_memory" => integer 4834528
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6807
        "start_memory" => integer 4843936
        "stop_time" => float 1436182485.6807
        "stop_memory" => integer 4844512
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.681
        "start_memory" => integer 4852856
        "stop_time" => float 1436182485.6811
        "stop_memory" => integer 4853440
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.682
        "start_memory" => integer 4862520
        "stop_time" => float 1436182485.6821
        "stop_memory" => integer 4863072
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6822
        "start_memory" => integer 4866536
        "stop_time" => float 1436182485.6822
        "stop_memory" => integer 4867160
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6827
        "start_memory" => integer 4871136
        "stop_time" => float 1436182485.6827
        "stop_memory" => integer 4871696
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6828
        "start_memory" => integer 4875224
        "stop_time" => float 1436182485.6829
        "stop_memory" => integer 4875880
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6834
        "start_memory" => integer 4879768
        "stop_time" => float 1436182485.6834
        "stop_memory" => integer 4880344
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6835
        "start_memory" => integer 4883856
        "stop_time" => float 1436182485.6836
        "stop_memory" => integer 4884448
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6845
        "start_memory" => integer 4893408
        "stop_time" => float 1436182485.6846
        "stop_memory" => integer 4893968
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6847
        "start_memory" => integer 4897504
        "stop_time" => float 1436182485.6847
        "stop_memory" => integer 4898088
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6851
        "start_memory" => integer 4900280
        "stop_time" => float 1436182485.6852
        "stop_memory" => integer 4900912
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6853
        "start_memory" => integer 4907688
        "stop_time" => float 1436182485.6853
        "stop_memory" => integer 4908240
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6854
        "start_memory" => integer 4911728
        "stop_time" => float 1436182485.6855
        "stop_memory" => integer 4912312
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6876
        "start_memory" => integer 5143888
        "stop_time" => float 1436182485.6876
        "stop_memory" => integer 5144480
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6883
        "start_memory" => integer 5201264
        "stop_time" => float 1436182485.6884
        "stop_memory" => integer 5201848
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6889
        "start_memory" => integer 5236216
        "stop_time" => float 1436182485.689
        "stop_memory" => integer 5236800
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.689
        "start_memory" => integer 5240320
        "stop_time" => float 1436182485.6892
        "stop_memory" => integer 5240920
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6898
        "start_memory" => integer 5246936
        "stop_time" => float 1436182485.6899
        "stop_memory" => integer 5247496
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6904
        "start_memory" => integer 5273544
        "stop_time" => float 1436182485.6905
        "stop_memory" => integer 5274120
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6912
        "start_memory" => integer 5303024
        "stop_time" => float 1436182485.6913
        "stop_memory" => integer 5303616
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6919
        "start_memory" => integer 5330256
        "stop_time" => float 1436182485.692
        "stop_memory" => integer 5330792
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6921
        "start_memory" => integer 5334248
        "stop_time" => float 1436182485.6922
        "stop_memory" => integer 5334824
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6943
        "start_memory" => integer 5362072
        "stop_time" => float 1436182485.6943
        "stop_memory" => integer 5362688
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6944
        "start_memory" => integer 5366504
        "stop_time" => float 1436182485.6945
        "stop_memory" => integer 5367152
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6964
        "start_memory" => integer 5398104
        "stop_time" => float 1436182485.6965
        "stop_memory" => integer 5398688
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6965
        "start_memory" => integer 5402248
        "stop_time" => float 1436182485.6966
        "stop_memory" => integer 5402840
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.6999
        "start_memory" => integer 5467552
        "stop_time" => float 1436182485.6999
        "stop_memory" => integer 5468104
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7
        "start_memory" => integer 5471640
        "stop_time" => float 1436182485.7001
        "stop_memory" => integer 5472248
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7006
        "start_memory" => integer 5482384
        "stop_time" => float 1436182485.7006
        "stop_memory" => integer 5482984
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7008
        "start_memory" => integer 5486512
        "stop_time" => float 1436182485.7008
        "stop_memory" => integer 5487112
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7017
        "start_memory" => integer 5531688
        "stop_time" => float 1436182485.7018
        "stop_memory" => integer 5532264
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7018
        "start_memory" => integer 5535832
        "stop_time" => float 1436182485.7019
        "stop_memory" => integer 5536424
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7024
        "start_memory" => integer 5556776
        "stop_time" => float 1436182485.7024
        "stop_memory" => integer 5557392
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7025
        "start_memory" => integer 5560912
        "stop_time" => float 1436182485.7026
        "stop_memory" => integer 5561512
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7036
        "start_memory" => integer 5610168
        "stop_time" => float 1436182485.7036
        "stop_memory" => integer 5610744
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7037
        "start_memory" => integer 5614256
        "stop_time" => float 1436182485.7038
        "stop_memory" => integer 5614856
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7042
        "start_memory" => integer 5637128
        "stop_time" => float 1436182485.7043
        "stop_memory" => integer 5637688
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7044
        "start_memory" => integer 5641312
        "stop_time" => float 1436182485.7044
        "stop_memory" => integer 5641856
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7054
        "start_memory" => integer 5714360
        "stop_time" => float 1436182485.7055
        "stop_memory" => integer 5714936
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7056
        "start_memory" => integer 5718456
        "stop_time" => float 1436182485.7056
        "stop_memory" => integer 5719040
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7092
        "start_memory" => integer 5738176
        "stop_time" => float 1436182485.7092
        "stop_memory" => integer 5738736
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7093
        "start_memory" => integer 5742184
        "stop_time" => float 1436182485.7094
        "stop_memory" => integer 5742768
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7102
        "start_memory" => integer 5802352
        "stop_time" => float 1436182485.7102
        "stop_memory" => integer 5802912
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7103
        "start_memory" => integer 5806448
        "stop_time" => float 1436182485.7103
        "stop_memory" => integer 5807096
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7113
        "start_memory" => integer 5876216
        "stop_time" => float 1436182485.7114
        "stop_memory" => integer 5876832
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7115
        "start_memory" => integer 5880416
        "stop_time" => float 1436182485.7116
        "stop_memory" => integer 5880968
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7123
        "start_memory" => integer 5898352
        "stop_time" => float 1436182485.7123
        "stop_memory" => integer 5898960
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7126
        "start_memory" => integer 5864904
        "stop_time" => float 1436182485.7127
        "stop_memory" => integer 5867224
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7132
        "start_memory" => integer 5903360
        "stop_time" => float 1436182485.7132
        "stop_memory" => integer 5905024
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436182485.7133
        "start_memory" => integer 5904656
        "stop_time" => float 1436182485.7133
        "stop_memory" => integer 5906336
    )
)

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