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 1472336059.4873
        "start_memory" => integer 1116888
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4873
        "start_memory" => integer 1119128
        "stop_time" => float 1472336059.4874
        "stop_memory" => integer 1119816
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4874
        "start_memory" => integer 1123360
        "stop_time" => float 1472336059.4875
        "stop_memory" => integer 1123968
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.488
        "start_memory" => integer 1200424
        "stop_time" => float 1472336059.4881
        "stop_memory" => integer 1200976
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4881
        "start_memory" => integer 1204472
        "stop_time" => float 1472336059.4882
        "stop_memory" => integer 1205064
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4882
        "start_memory" => integer 1213032
        "stop_time" => float 1472336059.4883
        "stop_memory" => integer 1213584
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4884
        "start_memory" => integer 1217056
        "stop_time" => float 1472336059.4884
        "stop_memory" => integer 1217640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4885
        "start_memory" => integer 1226504
        "stop_time" => float 1472336059.4886
        "stop_memory" => integer 1227064
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4886
        "start_memory" => integer 1230504
        "stop_time" => float 1472336059.4887
        "stop_memory" => integer 1231152
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4894
        "start_memory" => integer 1325992
        "stop_time" => float 1472336059.4894
        "stop_memory" => integer 1326568
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4895
        "start_memory" => integer 1330048
        "stop_time" => float 1472336059.4895
        "stop_memory" => integer 1330640
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4897
        "start_memory" => integer 1342424
        "stop_time" => float 1472336059.4897
        "stop_memory" => integer 1342976
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4898
        "start_memory" => integer 1346400
        "stop_time" => float 1472336059.4898
        "stop_memory" => integer 1346968
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4901
        "start_memory" => integer 1381360
        "stop_time" => float 1472336059.4901
        "stop_memory" => integer 1381976
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4901
        "start_memory" => integer 1383048
        "stop_time" => float 1472336059.4902
        "stop_memory" => integer 1383584
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4902
        "start_memory" => integer 1386992
        "stop_time" => float 1472336059.4903
        "stop_memory" => integer 1387568
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4905
        "start_memory" => integer 1406816
        "stop_time" => float 1472336059.4906
        "stop_memory" => integer 1407520
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4907
        "start_memory" => integer 1410944
        "stop_time" => float 1472336059.4907
        "stop_memory" => integer 1411512
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4913
        "start_memory" => integer 1507168
        "stop_time" => float 1472336059.4913
        "stop_memory" => integer 1507768
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4914
        "start_memory" => integer 1511272
        "stop_time" => float 1472336059.4914
        "stop_memory" => integer 1511872
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4917
        "start_memory" => integer 1551144
        "stop_time" => float 1472336059.4918
        "stop_memory" => integer 1551648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4918
        "start_memory" => integer 1552288
        "stop_time" => float 1472336059.4918
        "stop_memory" => integer 1552872
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4945
        "start_memory" => integer 1952056
        "stop_time" => float 1472336059.4945
        "stop_memory" => integer 1952640
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4946
        "start_memory" => integer 1956144
        "stop_time" => float 1472336059.4946
        "stop_memory" => integer 1956744
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4947
        "start_memory" => integer 1958376
        "stop_time" => float 1472336059.4948
        "stop_memory" => integer 1958976
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4948
        "start_memory" => integer 1962488
        "stop_time" => float 1472336059.4949
        "stop_memory" => integer 1963064
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4951
        "start_memory" => integer 1992712
        "stop_time" => float 1472336059.4952
        "stop_memory" => integer 1993272
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4952
        "start_memory" => integer 1996776
        "stop_time" => float 1472336059.4953
        "stop_memory" => integer 1997376
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4958
        "start_memory" => integer 2059664
        "stop_time" => float 1472336059.4958
        "stop_memory" => integer 2060216
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4959
        "start_memory" => integer 2063640
        "stop_time" => float 1472336059.4959
        "stop_memory" => integer 2064208
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.4968
        "start_memory" => integer 2123168
        "stop_time" => float 1472336059.4969
        "stop_memory" => integer 2123784
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5576
        "start_memory" => integer 2164648
        "stop_time" => float 1472336059.5576
        "stop_memory" => integer 2165224
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5577
        "start_memory" => integer 2168648
        "stop_time" => float 1472336059.5577
        "stop_memory" => integer 2169488
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5583
        "start_memory" => integer 2195736
        "stop_time" => float 1472336059.5583
        "stop_memory" => integer 2196312
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5584
        "start_memory" => integer 2199792
        "stop_time" => float 1472336059.5584
        "stop_memory" => integer 2200384
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5589
        "start_memory" => integer 2217680
        "stop_time" => float 1472336059.559
        "stop_memory" => integer 2218248
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.559
        "start_memory" => integer 2221712
        "stop_time" => float 1472336059.5591
        "stop_memory" => integer 2222304
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5597
        "start_memory" => integer 2265760
        "stop_time" => float 1472336059.5597
        "stop_memory" => integer 2266360
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5598
        "start_memory" => integer 2277896
        "stop_time" => float 1472336059.5599
        "stop_memory" => integer 2278472
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5599
        "start_memory" => integer 2281984
        "stop_time" => float 1472336059.5599
        "stop_memory" => integer 2282568
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5603
        "start_memory" => integer 2320584
        "stop_time" => float 1472336059.5604
        "stop_memory" => integer 2321184
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5606
        "start_memory" => integer 2333304
        "stop_time" => float 1472336059.5606
        "stop_memory" => integer 2333880
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.561
        "start_memory" => integer 2360896
        "stop_time" => float 1472336059.561
        "stop_memory" => integer 2361496
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5612
        "start_memory" => integer 2369312
        "stop_time" => float 1472336059.5612
        "stop_memory" => integer 2369888
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5614
        "start_memory" => integer 2383040
        "stop_time" => float 1472336059.5614
        "stop_memory" => integer 2383640
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5616
        "start_memory" => integer 2390656
        "stop_time" => float 1472336059.5616
        "stop_memory" => integer 2391248
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5618
        "start_memory" => integer 2404552
        "stop_time" => float 1472336059.5619
        "stop_memory" => integer 2405144
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5621
        "start_memory" => integer 2418776
        "stop_time" => float 1472336059.5621
        "stop_memory" => integer 2419368
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5623
        "start_memory" => integer 2428848
        "stop_time" => float 1472336059.5623
        "stop_memory" => integer 2429440
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5625
        "start_memory" => integer 2438112
        "stop_time" => float 1472336059.5625
        "stop_memory" => integer 2438704
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5627
        "start_memory" => integer 2484048
        "stop_time" => float 1472336059.5628
        "stop_memory" => integer 2484624
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.563
        "start_memory" => integer 2507552
        "stop_time" => float 1472336059.5631
        "stop_memory" => integer 2508152
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5633
        "start_memory" => integer 2521448
        "stop_time" => float 1472336059.5633
        "stop_memory" => integer 2522024
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5635
        "start_memory" => integer 2541224
        "stop_time" => float 1472336059.5635
        "stop_memory" => integer 2541808
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5637
        "start_memory" => integer 2555464
        "stop_time" => float 1472336059.5638
        "stop_memory" => integer 2556032
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5638
        "start_memory" => integer 2559488
        "stop_time" => float 1472336059.5639
        "stop_memory" => integer 2560072
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.564
        "start_memory" => integer 2582272
        "stop_time" => float 1472336059.5641
        "stop_memory" => integer 2582832
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5641
        "start_memory" => integer 2586264
        "stop_time" => float 1472336059.5642
        "stop_memory" => integer 2586848
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5661
        "start_memory" => integer 2680776
        "stop_time" => float 1472336059.5661
        "stop_memory" => integer 2681352
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5754
        "start_memory" => integer 2711928
        "stop_time" => float 1472336059.5755
        "stop_memory" => integer 2712504
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5757
        "start_memory" => integer 2715984
        "stop_time" => float 1472336059.5757
        "stop_memory" => integer 2716576
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5813
        "start_memory" => integer 2735688
        "stop_time" => float 1472336059.5813
        "stop_memory" => integer 2736272
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5815
        "start_memory" => integer 2739824
        "stop_time" => float 1472336059.5815
        "stop_memory" => integer 2740424
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5862
        "start_memory" => integer 2759608
        "stop_time" => float 1472336059.5862
        "stop_memory" => integer 2760168
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5863
        "start_memory" => integer 2763672
        "stop_time" => float 1472336059.5863
        "stop_memory" => integer 2764776
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5868
        "start_memory" => integer 2819296
        "stop_time" => float 1472336059.5868
        "stop_memory" => integer 2819896
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5905
        "start_memory" => integer 2827208
        "stop_time" => float 1472336059.5905
        "stop_memory" => integer 2827784
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.5906
        "start_memory" => integer 2831312
        "stop_time" => float 1472336059.5906
        "stop_memory" => integer 2831912
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6029
        "start_memory" => integer 2871576
        "stop_time" => float 1472336059.603
        "stop_memory" => integer 2872152
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6031
        "start_memory" => integer 2875680
        "stop_time" => float 1472336059.6031
        "stop_memory" => integer 2876280
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6033
        "start_memory" => integer 2892256
        "stop_time" => float 1472336059.6034
        "stop_memory" => integer 2892832
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6039
        "start_memory" => integer 2900136
        "stop_time" => float 1472336059.604
        "stop_memory" => integer 2900704
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6041
        "start_memory" => integer 2904176
        "stop_time" => float 1472336059.6041
        "stop_memory" => integer 2904768
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.605
        "start_memory" => integer 2954248
        "stop_time" => float 1472336059.605
        "stop_memory" => integer 2954832
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6051
        "start_memory" => integer 2958336
        "stop_time" => float 1472336059.6051
        "stop_memory" => integer 2958936
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6096
        "start_memory" => integer 2978328
        "stop_time" => float 1472336059.6097
        "stop_memory" => integer 2978888
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6098
        "start_memory" => integer 2982384
        "stop_time" => float 1472336059.6098
        "stop_memory" => integer 2982976
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6104
        "start_memory" => integer 2998128
        "stop_time" => float 1472336059.6105
        "stop_memory" => integer 2998664
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6106
        "start_memory" => integer 3002072
        "stop_time" => float 1472336059.6106
        "stop_memory" => integer 3002648
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6123
        "start_memory" => integer 3009320
        "stop_time" => float 1472336059.6123
        "stop_memory" => integer 3009920
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6125
        "start_memory" => integer 3013432
        "stop_time" => float 1472336059.6125
        "stop_memory" => integer 3014032
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6158
        "start_memory" => integer 3049080
        "stop_time" => float 1472336059.6158
        "stop_memory" => integer 3049672
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6163
        "start_memory" => integer 3057368
        "stop_time" => float 1472336059.6164
        "stop_memory" => integer 3057928
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6164
        "start_memory" => integer 3061416
        "stop_time" => float 1472336059.6165
        "stop_memory" => integer 3062008
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6194
        "start_memory" => integer 3079648
        "stop_time" => float 1472336059.6194
        "stop_memory" => integer 3080232
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.621
        "start_memory" => integer 3084832
        "stop_time" => float 1472336059.6211
        "stop_memory" => integer 3085400
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6212
        "start_memory" => integer 3088864
        "stop_time" => float 1472336059.6212
        "stop_memory" => integer 3089456
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.623
        "start_memory" => integer 3183504
        "stop_time" => float 1472336059.623
        "stop_memory" => integer 3184104
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6231
        "start_memory" => integer 3187656
        "stop_time" => float 1472336059.6231
        "stop_memory" => integer 3188248
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6235
        "start_memory" => integer 3201824
        "stop_time" => float 1472336059.6235
        "stop_memory" => integer 3202416
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6236
        "start_memory" => integer 3205968
        "stop_time" => float 1472336059.6237
        "stop_memory" => integer 3206576
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6249
        "start_memory" => integer 3211608
        "stop_time" => float 1472336059.6249
        "stop_memory" => integer 3212176
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.625
        "start_memory" => integer 3215680
        "stop_time" => float 1472336059.625
        "stop_memory" => integer 3216280
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.626
        "start_memory" => integer 3311080
        "stop_time" => float 1472336059.6261
        "stop_memory" => integer 3311672
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6262
        "start_memory" => integer 3315224
        "stop_time" => float 1472336059.6262
        "stop_memory" => integer 3315832
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6264
        "start_memory" => integer 3327872
        "stop_time" => float 1472336059.6264
        "stop_memory" => integer 3328440
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6265
        "start_memory" => integer 3331944
        "stop_time" => float 1472336059.6265
        "stop_memory" => integer 3332568
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6273
        "start_memory" => integer 3376208
        "stop_time" => float 1472336059.6274
        "stop_memory" => integer 3376784
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6274
        "start_memory" => integer 3380304
        "stop_time" => float 1472336059.6275
        "stop_memory" => integer 3380904
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6282
        "start_memory" => integer 3425536
        "stop_time" => float 1472336059.6282
        "stop_memory" => integer 3426112
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6283
        "start_memory" => integer 3429616
        "stop_time" => float 1472336059.6283
        "stop_memory" => integer 3430216
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6292
        "start_memory" => integer 3457528
        "stop_time" => float 1472336059.6292
        "stop_memory" => integer 3458120
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6293
        "start_memory" => integer 3461680
        "stop_time" => float 1472336059.6293
        "stop_memory" => integer 3462288
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6302
        "start_memory" => integer 3498504
        "stop_time" => float 1472336059.6302
        "stop_memory" => integer 3499104
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6303
        "start_memory" => integer 3502736
        "stop_time" => float 1472336059.6304
        "stop_memory" => integer 3503352
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6305
        "start_memory" => integer 3515496
        "stop_time" => float 1472336059.6306
        "stop_memory" => integer 3516088
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6307
        "start_memory" => integer 3519712
        "stop_time" => float 1472336059.6307
        "stop_memory" => integer 3520328
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6315
        "start_memory" => integer 3572448
        "stop_time" => float 1472336059.6315
        "stop_memory" => integer 3573040
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6316
        "start_memory" => integer 3576648
        "stop_time" => float 1472336059.6316
        "stop_memory" => integer 3577264
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6323
        "start_memory" => integer 3609856
        "stop_time" => float 1472336059.6324
        "stop_memory" => integer 3610448
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6325
        "start_memory" => integer 3614072
        "stop_time" => float 1472336059.6325
        "stop_memory" => integer 3614688
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6333
        "start_memory" => integer 3643312
        "stop_time" => float 1472336059.6333
        "stop_memory" => integer 3643904
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6334
        "start_memory" => integer 3647512
        "stop_time" => float 1472336059.6334
        "stop_memory" => integer 3648128
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6344
        "start_memory" => integer 3724048
        "stop_time" => float 1472336059.6345
        "stop_memory" => integer 3724640
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6346
        "start_memory" => integer 3728248
        "stop_time" => float 1472336059.6346
        "stop_memory" => integer 3728864
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6361
        "start_memory" => integer 3765368
        "stop_time" => float 1472336059.6362
        "stop_memory" => integer 3765944
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6362
        "start_memory" => integer 3769504
        "stop_time" => float 1472336059.6363
        "stop_memory" => integer 3770112
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.637
        "start_memory" => integer 3788440
        "stop_time" => float 1472336059.6371
        "stop_memory" => integer 3788976
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6372
        "start_memory" => integer 3792424
        "stop_time" => float 1472336059.6372
        "stop_memory" => integer 3792992
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6383
        "start_memory" => integer 3862576
        "stop_time" => float 1472336059.6383
        "stop_memory" => integer 3863160
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6384
        "start_memory" => integer 3866616
        "stop_time" => float 1472336059.6384
        "stop_memory" => integer 3867192
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6419
        "start_memory" => integer 3881392
        "stop_time" => float 1472336059.6419
        "stop_memory" => integer 3881952
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.642
        "start_memory" => integer 3885384
        "stop_time" => float 1472336059.6421
        "stop_memory" => integer 3885968
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6444
        "start_memory" => integer 3907808
        "stop_time" => float 1472336059.6444
        "stop_memory" => integer 3908368
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6445
        "start_memory" => integer 3911792
        "stop_time" => float 1472336059.6446
        "stop_memory" => integer 3912360
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6452
        "start_memory" => integer 3935504
        "stop_time" => float 1472336059.6453
        "stop_memory" => integer 3936072
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6453
        "start_memory" => integer 3939504
        "stop_time" => float 1472336059.6454
        "stop_memory" => integer 3940072
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6459
        "start_memory" => integer 3966008
        "stop_time" => float 1472336059.646
        "stop_memory" => integer 3966576
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6461
        "start_memory" => integer 3970000
        "stop_time" => float 1472336059.6461
        "stop_memory" => integer 3971592
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6471
        "start_memory" => integer 4018696
        "stop_time" => float 1472336059.6472
        "stop_memory" => integer 4019264
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6473
        "start_memory" => integer 4022704
        "stop_time" => float 1472336059.6473
        "stop_memory" => integer 4023288
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6489
        "start_memory" => integer 4037832
        "stop_time" => float 1472336059.649
        "stop_memory" => integer 4038392
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.649
        "start_memory" => integer 4041840
        "stop_time" => float 1472336059.6491
        "stop_memory" => integer 4042408
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6502
        "start_memory" => integer 4059032
        "stop_time" => float 1472336059.6502
        "stop_memory" => integer 4059616
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6503
        "start_memory" => integer 4063096
        "stop_time" => float 1472336059.6504
        "stop_memory" => integer 4063688
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6509
        "start_memory" => integer 4080152
        "stop_time" => float 1472336059.651
        "stop_memory" => integer 4080720
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6511
        "start_memory" => integer 4084224
        "stop_time" => float 1472336059.6511
        "stop_memory" => integer 4084816
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6517
        "start_memory" => integer 4098400
        "stop_time" => float 1472336059.6517
        "stop_memory" => integer 4098968
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6518
        "start_memory" => integer 4102472
        "stop_time" => float 1472336059.6519
        "stop_memory" => integer 4103064
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6524
        "start_memory" => integer 4116664
        "stop_time" => float 1472336059.6525
        "stop_memory" => integer 4117232
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6525
        "start_memory" => integer 4120736
        "stop_time" => float 1472336059.6526
        "stop_memory" => integer 4121328
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6531
        "start_memory" => integer 4134928
        "stop_time" => float 1472336059.6532
        "stop_memory" => integer 4135496
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6533
        "start_memory" => integer 4139000
        "stop_time" => float 1472336059.6534
        "stop_memory" => integer 4139592
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6539
        "start_memory" => integer 4153176
        "stop_time" => float 1472336059.6539
        "stop_memory" => integer 4153744
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.654
        "start_memory" => integer 4157248
        "stop_time" => float 1472336059.654
        "stop_memory" => integer 4157840
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6546
        "start_memory" => integer 4171424
        "stop_time" => float 1472336059.6547
        "stop_memory" => integer 4171992
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6548
        "start_memory" => integer 4175496
        "stop_time" => float 1472336059.6548
        "stop_memory" => integer 4176088
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6554
        "start_memory" => integer 4189688
        "stop_time" => float 1472336059.6555
        "stop_memory" => integer 4190256
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6555
        "start_memory" => integer 4193760
        "stop_time" => float 1472336059.6556
        "stop_memory" => integer 4194352
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6561
        "start_memory" => integer 4207936
        "stop_time" => float 1472336059.6561
        "stop_memory" => integer 4208504
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6562
        "start_memory" => integer 4212008
        "stop_time" => float 1472336059.6563
        "stop_memory" => integer 4212600
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6568
        "start_memory" => integer 4226280
        "stop_time" => float 1472336059.6569
        "stop_memory" => integer 4226848
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6569
        "start_memory" => integer 4230352
        "stop_time" => float 1472336059.657
        "stop_memory" => integer 4230944
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6575
        "start_memory" => integer 4244536
        "stop_time" => float 1472336059.6576
        "stop_memory" => integer 4245104
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6576
        "start_memory" => integer 4248608
        "stop_time" => float 1472336059.6577
        "stop_memory" => integer 4249200
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6582
        "start_memory" => integer 4262784
        "stop_time" => float 1472336059.6583
        "stop_memory" => integer 4263352
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6583
        "start_memory" => integer 4266856
        "stop_time" => float 1472336059.6584
        "stop_memory" => integer 4267448
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6589
        "start_memory" => integer 4281016
        "stop_time" => float 1472336059.6589
        "stop_memory" => integer 4281584
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.659
        "start_memory" => integer 4285088
        "stop_time" => float 1472336059.6591
        "stop_memory" => integer 4285680
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6596
        "start_memory" => integer 4299264
        "stop_time" => float 1472336059.6596
        "stop_memory" => integer 4299832
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6597
        "start_memory" => integer 4303336
        "stop_time" => float 1472336059.6598
        "stop_memory" => integer 4303928
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6603
        "start_memory" => integer 4317528
        "stop_time" => float 1472336059.6604
        "stop_memory" => integer 4318096
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6604
        "start_memory" => integer 4321600
        "stop_time" => float 1472336059.6605
        "stop_memory" => integer 4322192
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.661
        "start_memory" => integer 4335808
        "stop_time" => float 1472336059.6611
        "stop_memory" => integer 4336376
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6611
        "start_memory" => integer 4339880
        "stop_time" => float 1472336059.6612
        "stop_memory" => integer 4340472
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6617
        "start_memory" => integer 4354072
        "stop_time" => float 1472336059.6618
        "stop_memory" => integer 4354640
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6618
        "start_memory" => integer 4358144
        "stop_time" => float 1472336059.6619
        "stop_memory" => integer 4358736
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6624
        "start_memory" => integer 4372464
        "stop_time" => float 1472336059.6625
        "stop_memory" => integer 4373032
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6625
        "start_memory" => integer 4376536
        "stop_time" => float 1472336059.6626
        "stop_memory" => integer 4377128
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6631
        "start_memory" => integer 4390744
        "stop_time" => float 1472336059.6632
        "stop_memory" => integer 4391312
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6632
        "start_memory" => integer 4394816
        "stop_time" => float 1472336059.6633
        "stop_memory" => integer 4395408
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6638
        "start_memory" => integer 4409008
        "stop_time" => float 1472336059.6638
        "stop_memory" => integer 4409576
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6639
        "start_memory" => integer 4413080
        "stop_time" => float 1472336059.664
        "stop_memory" => integer 4413672
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6645
        "start_memory" => integer 4427272
        "stop_time" => float 1472336059.6646
        "stop_memory" => integer 4427840
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6646
        "start_memory" => integer 4431344
        "stop_time" => float 1472336059.6647
        "stop_memory" => integer 4431936
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6653
        "start_memory" => integer 4445520
        "stop_time" => float 1472336059.6654
        "stop_memory" => integer 4446088
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6655
        "start_memory" => integer 4449592
        "stop_time" => float 1472336059.6655
        "stop_memory" => integer 4450184
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6661
        "start_memory" => integer 4463768
        "stop_time" => float 1472336059.6662
        "stop_memory" => integer 4464336
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6663
        "start_memory" => integer 4467840
        "stop_time" => float 1472336059.6664
        "stop_memory" => integer 4468432
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.667
        "start_memory" => integer 4482032
        "stop_time" => float 1472336059.6671
        "stop_memory" => integer 4482600
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6672
        "start_memory" => integer 4486104
        "stop_time" => float 1472336059.6673
        "stop_memory" => integer 4486696
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6678
        "start_memory" => integer 4500280
        "stop_time" => float 1472336059.6678
        "stop_memory" => integer 4500848
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6679
        "start_memory" => integer 4504352
        "stop_time" => float 1472336059.6679
        "stop_memory" => integer 4504944
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6692
        "start_memory" => integer 4518768
        "stop_time" => float 1472336059.6693
        "stop_memory" => integer 4519336
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6693
        "start_memory" => integer 4522840
        "stop_time" => float 1472336059.6694
        "stop_memory" => integer 4523432
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6716
        "start_memory" => integer 4546360
        "stop_time" => float 1472336059.6716
        "stop_memory" => integer 4546928
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6717
        "start_memory" => integer 4550392
        "stop_time" => float 1472336059.6717
        "stop_memory" => integer 4550968
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6728
        "start_memory" => integer 4632168
        "stop_time" => float 1472336059.6729
        "stop_memory" => integer 4632744
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.673
        "start_memory" => integer 4636208
        "stop_time" => float 1472336059.673
        "stop_memory" => integer 4636800
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6743
        "start_memory" => integer 4737976
        "stop_time" => float 1472336059.6743
        "stop_memory" => integer 4738528
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6744
        "start_memory" => integer 4742008
        "stop_time" => float 1472336059.6745
        "stop_memory" => integer 4742592
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6763
        "start_memory" => integer 4775576
        "stop_time" => float 1472336059.6764
        "stop_memory" => integer 4776168
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6765
        "start_memory" => integer 4779664
        "stop_time" => float 1472336059.6766
        "stop_memory" => integer 4780264
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6772
        "start_memory" => integer 4805848
        "stop_time" => float 1472336059.6772
        "stop_memory" => integer 4806440
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6773
        "start_memory" => integer 4809992
        "stop_time" => float 1472336059.6774
        "stop_memory" => integer 4810600
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6785
        "start_memory" => integer 4829328
        "stop_time" => float 1472336059.6785
        "stop_memory" => integer 4829896
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6786
        "start_memory" => integer 4833496
        "stop_time" => float 1472336059.6787
        "stop_memory" => integer 4834096
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6801
        "start_memory" => integer 4852672
        "stop_time" => float 1472336059.6802
        "stop_memory" => integer 4853264
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6829
        "start_memory" => integer 4863000
        "stop_time" => float 1472336059.683
        "stop_memory" => integer 4863576
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6832
        "start_memory" => integer 4872280
        "stop_time" => float 1472336059.6833
        "stop_memory" => integer 4872864
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6844
        "start_memory" => integer 4882192
        "stop_time" => float 1472336059.6844
        "stop_memory" => integer 4882744
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6845
        "start_memory" => integer 4886200
        "stop_time" => float 1472336059.6846
        "stop_memory" => integer 4886784
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6851
        "start_memory" => integer 4890832
        "stop_time" => float 1472336059.6851
        "stop_memory" => integer 4891392
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6852
        "start_memory" => integer 4894904
        "stop_time" => float 1472336059.6853
        "stop_memory" => integer 4895520
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6857
        "start_memory" => integer 4899432
        "stop_time" => float 1472336059.6857
        "stop_memory" => integer 4900008
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6858
        "start_memory" => integer 4903504
        "stop_time" => float 1472336059.6858
        "stop_memory" => integer 4904064
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6867
        "start_memory" => integer 4913072
        "stop_time" => float 1472336059.6868
        "stop_memory" => integer 4913632
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6868
        "start_memory" => integer 4917096
        "stop_time" => float 1472336059.6869
        "stop_memory" => integer 4917736
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6873
        "start_memory" => integer 4919888
        "stop_time" => float 1472336059.6874
        "stop_memory" => integer 4920496
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6875
        "start_memory" => integer 4927272
        "stop_time" => float 1472336059.6875
        "stop_memory" => integer 4927808
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6876
        "start_memory" => integer 4931248
        "stop_time" => float 1472336059.6876
        "stop_memory" => integer 4931832
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6895
        "start_memory" => integer 5163472
        "stop_time" => float 1472336059.6896
        "stop_memory" => integer 5164064
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6905
        "start_memory" => integer 5220840
        "stop_time" => float 1472336059.6905
        "stop_memory" => integer 5221424
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6912
        "start_memory" => integer 5255832
        "stop_time" => float 1472336059.6913
        "stop_memory" => integer 5256416
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6914
        "start_memory" => integer 5259936
        "stop_time" => float 1472336059.6914
        "stop_memory" => integer 5260536
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6919
        "start_memory" => integer 5266576
        "stop_time" => float 1472336059.692
        "stop_memory" => integer 5267136
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6925
        "start_memory" => integer 5293248
        "stop_time" => float 1472336059.6925
        "stop_memory" => integer 5293824
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6929
        "start_memory" => integer 5322768
        "stop_time" => float 1472336059.693
        "stop_memory" => integer 5323360
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6934
        "start_memory" => integer 5350048
        "stop_time" => float 1472336059.6935
        "stop_memory" => integer 5350584
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6936
        "start_memory" => integer 5354088
        "stop_time" => float 1472336059.6936
        "stop_memory" => integer 5354672
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6954
        "start_memory" => integer 5381816
        "stop_time" => float 1472336059.6954
        "stop_memory" => integer 5382432
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6955
        "start_memory" => integer 5386288
        "stop_time" => float 1472336059.6956
        "stop_memory" => integer 5386896
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6976
        "start_memory" => integer 5418648
        "stop_time" => float 1472336059.6976
        "stop_memory" => integer 5419224
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.6977
        "start_memory" => integer 5422832
        "stop_time" => float 1472336059.6978
        "stop_memory" => integer 5423424
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7013
        "start_memory" => integer 5488240
        "stop_time" => float 1472336059.7013
        "stop_memory" => integer 5488784
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7014
        "start_memory" => integer 5492352
        "stop_time" => float 1472336059.7015
        "stop_memory" => integer 5492976
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7019
        "start_memory" => integer 5503064
        "stop_time" => float 1472336059.702
        "stop_memory" => integer 5503656
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.702
        "start_memory" => integer 5507144
        "stop_time" => float 1472336059.7021
        "stop_memory" => integer 5507776
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7027
        "start_memory" => integer 5552304
        "stop_time" => float 1472336059.7028
        "stop_memory" => integer 5552880
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7028
        "start_memory" => integer 5556400
        "stop_time" => float 1472336059.7029
        "stop_memory" => integer 5556984
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7033
        "start_memory" => integer 5577344
        "stop_time" => float 1472336059.7034
        "stop_memory" => integer 5577952
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7034
        "start_memory" => integer 5581480
        "stop_time" => float 1472336059.7035
        "stop_memory" => integer 5582080
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7044
        "start_memory" => integer 5630688
        "stop_time" => float 1472336059.7045
        "stop_memory" => integer 5631288
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7046
        "start_memory" => integer 5634768
        "stop_time" => float 1472336059.7046
        "stop_memory" => integer 5635368
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7051
        "start_memory" => integer 5657648
        "stop_time" => float 1472336059.7052
        "stop_memory" => integer 5658272
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7052
        "start_memory" => integer 5661768
        "stop_time" => float 1472336059.7053
        "stop_memory" => integer 5662336
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7063
        "start_memory" => integer 5734864
        "stop_time" => float 1472336059.7063
        "stop_memory" => integer 5735456
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7064
        "start_memory" => integer 5738920
        "stop_time" => float 1472336059.7064
        "stop_memory" => integer 5739504
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7107
        "start_memory" => integer 5758624
        "stop_time" => float 1472336059.7107
        "stop_memory" => integer 5759184
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7108
        "start_memory" => integer 5762704
        "stop_time" => float 1472336059.7109
        "stop_memory" => integer 5763360
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7118
        "start_memory" => integer 5822848
        "stop_time" => float 1472336059.7119
        "stop_memory" => integer 5823416
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7119
        "start_memory" => integer 5826888
        "stop_time" => float 1472336059.712
        "stop_memory" => integer 5827488
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7129
        "start_memory" => integer 5896600
        "stop_time" => float 1472336059.713
        "stop_memory" => integer 5897208
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7131
        "start_memory" => integer 5900816
        "stop_time" => float 1472336059.7132
        "stop_memory" => integer 5901384
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.714
        "start_memory" => integer 5919384
        "stop_time" => float 1472336059.7141
        "stop_memory" => integer 5919992
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7143
        "start_memory" => integer 5885968
        "stop_time" => float 1472336059.7144
        "stop_memory" => integer 5888288
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7148
        "start_memory" => integer 5924464
        "stop_time" => float 1472336059.7149
        "stop_memory" => integer 5926128
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1472336059.7149
        "start_memory" => integer 5925760
        "stop_time" => float 1472336059.715
        "stop_memory" => integer 5927440
    )
)

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