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 1487711515.1966
        "start_memory" => integer 1116192
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1966
        "start_memory" => integer 1118424
        "stop_time" => float 1487711515.1967
        "stop_memory" => integer 1119112
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1967
        "start_memory" => integer 1122664
        "stop_time" => float 1487711515.1968
        "stop_memory" => integer 1123288
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1973
        "start_memory" => integer 1199720
        "stop_time" => float 1487711515.1974
        "stop_memory" => integer 1200296
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1975
        "start_memory" => integer 1203808
        "stop_time" => float 1487711515.1975
        "stop_memory" => integer 1204400
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1976
        "start_memory" => integer 1212360
        "stop_time" => float 1487711515.1977
        "stop_memory" => integer 1212912
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1977
        "start_memory" => integer 1216384
        "stop_time" => float 1487711515.1978
        "stop_memory" => integer 1216968
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1979
        "start_memory" => integer 1225856
        "stop_time" => float 1487711515.198
        "stop_memory" => integer 1226416
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.198
        "start_memory" => integer 1229856
        "stop_time" => float 1487711515.1981
        "stop_memory" => integer 1230504
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1988
        "start_memory" => integer 1325328
        "stop_time" => float 1487711515.1988
        "stop_memory" => integer 1325904
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1989
        "start_memory" => integer 1329384
        "stop_time" => float 1487711515.1989
        "stop_memory" => integer 1329976
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1991
        "start_memory" => integer 1341760
        "stop_time" => float 1487711515.1991
        "stop_memory" => integer 1342312
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1992
        "start_memory" => integer 1345736
        "stop_time" => float 1487711515.1992
        "stop_memory" => integer 1346304
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1995
        "start_memory" => integer 1380696
        "stop_time" => float 1487711515.1995
        "stop_memory" => integer 1381296
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1996
        "start_memory" => integer 1382368
        "stop_time" => float 1487711515.1996
        "stop_memory" => integer 1382904
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1997
        "start_memory" => integer 1386312
        "stop_time" => float 1487711515.1997
        "stop_memory" => integer 1386888
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.1999
        "start_memory" => integer 1406136
        "stop_time" => float 1487711515.2
        "stop_memory" => integer 1406840
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2001
        "start_memory" => integer 1410264
        "stop_time" => float 1487711515.2001
        "stop_memory" => integer 1410832
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2007
        "start_memory" => integer 1506448
        "stop_time" => float 1487711515.2007
        "stop_memory" => integer 1507048
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2008
        "start_memory" => integer 1510552
        "stop_time" => float 1487711515.2008
        "stop_memory" => integer 1511152
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2011
        "start_memory" => integer 1550456
        "stop_time" => float 1487711515.2012
        "stop_memory" => integer 1550960
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2012
        "start_memory" => integer 1551576
        "stop_time" => float 1487711515.2012
        "stop_memory" => integer 1552152
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2038
        "start_memory" => integer 1951320
        "stop_time" => float 1487711515.2038
        "stop_memory" => integer 1951904
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2039
        "start_memory" => integer 1955408
        "stop_time" => float 1487711515.204
        "stop_memory" => integer 1956008
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2041
        "start_memory" => integer 1957640
        "stop_time" => float 1487711515.2041
        "stop_memory" => integer 1958240
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2042
        "start_memory" => integer 1961752
        "stop_time" => float 1487711515.2042
        "stop_memory" => integer 1962328
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2045
        "start_memory" => integer 1991976
        "stop_time" => float 1487711515.2045
        "stop_memory" => integer 1992536
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2046
        "start_memory" => integer 1996040
        "stop_time" => float 1487711515.2046
        "stop_memory" => integer 1996640
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2051
        "start_memory" => integer 2058952
        "stop_time" => float 1487711515.2052
        "stop_memory" => integer 2059504
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2052
        "start_memory" => integer 2062936
        "stop_time" => float 1487711515.2053
        "stop_memory" => integer 2063528
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2062
        "start_memory" => integer 2122440
        "stop_time" => float 1487711515.2062
        "stop_memory" => integer 2123056
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2784
        "start_memory" => integer 2163920
        "stop_time" => float 1487711515.2784
        "stop_memory" => integer 2164496
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2785
        "start_memory" => integer 2167920
        "stop_time" => float 1487711515.2786
        "stop_memory" => integer 2168760
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2792
        "start_memory" => integer 2195016
        "stop_time" => float 1487711515.2792
        "stop_memory" => integer 2195592
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2793
        "start_memory" => integer 2199072
        "stop_time" => float 1487711515.2793
        "stop_memory" => integer 2199664
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2798
        "start_memory" => integer 2216960
        "stop_time" => float 1487711515.2799
        "stop_memory" => integer 2217528
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2799
        "start_memory" => integer 2220992
        "stop_time" => float 1487711515.28
        "stop_memory" => integer 2221584
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2806
        "start_memory" => integer 2265040
        "stop_time" => float 1487711515.2806
        "stop_memory" => integer 2265640
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2807
        "start_memory" => integer 2277176
        "stop_time" => float 1487711515.2808
        "stop_memory" => integer 2277752
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2808
        "start_memory" => integer 2281264
        "stop_time" => float 1487711515.2809
        "stop_memory" => integer 2281848
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2813
        "start_memory" => integer 2319864
        "stop_time" => float 1487711515.2813
        "stop_memory" => integer 2320464
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2815
        "start_memory" => integer 2332584
        "stop_time" => float 1487711515.2816
        "stop_memory" => integer 2333160
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2819
        "start_memory" => integer 2360176
        "stop_time" => float 1487711515.2819
        "stop_memory" => integer 2360776
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2821
        "start_memory" => integer 2368592
        "stop_time" => float 1487711515.2822
        "stop_memory" => integer 2369168
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2824
        "start_memory" => integer 2382320
        "stop_time" => float 1487711515.2824
        "stop_memory" => integer 2382920
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2826
        "start_memory" => integer 2389936
        "stop_time" => float 1487711515.2826
        "stop_memory" => integer 2390528
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2828
        "start_memory" => integer 2403832
        "stop_time" => float 1487711515.2828
        "stop_memory" => integer 2404424
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.283
        "start_memory" => integer 2418056
        "stop_time" => float 1487711515.2831
        "stop_memory" => integer 2418648
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2833
        "start_memory" => integer 2428128
        "stop_time" => float 1487711515.2833
        "stop_memory" => integer 2428720
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2835
        "start_memory" => integer 2437392
        "stop_time" => float 1487711515.2835
        "stop_memory" => integer 2437984
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2837
        "start_memory" => integer 2483320
        "stop_time" => float 1487711515.2838
        "stop_memory" => integer 2483896
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.284
        "start_memory" => integer 2506824
        "stop_time" => float 1487711515.2841
        "stop_memory" => integer 2507424
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2843
        "start_memory" => integer 2520720
        "stop_time" => float 1487711515.2843
        "stop_memory" => integer 2521296
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2846
        "start_memory" => integer 2540496
        "stop_time" => float 1487711515.2846
        "stop_memory" => integer 2541080
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2848
        "start_memory" => integer 2554736
        "stop_time" => float 1487711515.2848
        "stop_memory" => integer 2555304
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2849
        "start_memory" => integer 2558760
        "stop_time" => float 1487711515.2849
        "stop_memory" => integer 2559344
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2851
        "start_memory" => integer 2581544
        "stop_time" => float 1487711515.2852
        "stop_memory" => integer 2582104
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2852
        "start_memory" => integer 2585536
        "stop_time" => float 1487711515.2853
        "stop_memory" => integer 2586120
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2872
        "start_memory" => integer 2680048
        "stop_time" => float 1487711515.2873
        "stop_memory" => integer 2680624
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2926
        "start_memory" => integer 2711200
        "stop_time" => float 1487711515.2926
        "stop_memory" => integer 2711776
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2927
        "start_memory" => integer 2715256
        "stop_time" => float 1487711515.2927
        "stop_memory" => integer 2715848
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2959
        "start_memory" => integer 2734960
        "stop_time" => float 1487711515.2959
        "stop_memory" => integer 2735544
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.296
        "start_memory" => integer 2739072
        "stop_time" => float 1487711515.2961
        "stop_memory" => integer 2739672
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2997
        "start_memory" => integer 2758856
        "stop_time" => float 1487711515.2998
        "stop_memory" => integer 2759416
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.2998
        "start_memory" => integer 2762896
        "stop_time" => float 1487711515.2999
        "stop_memory" => integer 2764000
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3003
        "start_memory" => integer 2818512
        "stop_time" => float 1487711515.3004
        "stop_memory" => integer 2819112
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3058
        "start_memory" => integer 2826424
        "stop_time" => float 1487711515.3059
        "stop_memory" => integer 2827000
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.306
        "start_memory" => integer 2830528
        "stop_time" => float 1487711515.306
        "stop_memory" => integer 2831128
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3167
        "start_memory" => integer 2870792
        "stop_time" => float 1487711515.3167
        "stop_memory" => integer 2871368
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3168
        "start_memory" => integer 2874896
        "stop_time" => float 1487711515.3168
        "stop_memory" => integer 2875496
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.317
        "start_memory" => integer 2891472
        "stop_time" => float 1487711515.317
        "stop_memory" => integer 2892048
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3175
        "start_memory" => integer 2899352
        "stop_time" => float 1487711515.3175
        "stop_memory" => integer 2899920
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3176
        "start_memory" => integer 2903392
        "stop_time" => float 1487711515.3176
        "stop_memory" => integer 2903984
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3184
        "start_memory" => integer 2953456
        "stop_time" => float 1487711515.3184
        "stop_memory" => integer 2954040
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3185
        "start_memory" => integer 2957544
        "stop_time" => float 1487711515.3185
        "stop_memory" => integer 2958144
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3222
        "start_memory" => integer 2977544
        "stop_time" => float 1487711515.3223
        "stop_memory" => integer 2978104
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3224
        "start_memory" => integer 2981600
        "stop_time" => float 1487711515.3224
        "stop_memory" => integer 2982192
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3229
        "start_memory" => integer 2997344
        "stop_time" => float 1487711515.323
        "stop_memory" => integer 2997880
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3231
        "start_memory" => integer 3001288
        "stop_time" => float 1487711515.3231
        "stop_memory" => integer 3001864
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3242
        "start_memory" => integer 3008536
        "stop_time" => float 1487711515.3243
        "stop_memory" => integer 3009136
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3244
        "start_memory" => integer 3012648
        "stop_time" => float 1487711515.3244
        "stop_memory" => integer 3013248
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.327
        "start_memory" => integer 3048296
        "stop_time" => float 1487711515.327
        "stop_memory" => integer 3048888
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3275
        "start_memory" => integer 3056584
        "stop_time" => float 1487711515.3275
        "stop_memory" => integer 3057144
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3276
        "start_memory" => integer 3060632
        "stop_time" => float 1487711515.3277
        "stop_memory" => integer 3061224
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3301
        "start_memory" => integer 3078864
        "stop_time" => float 1487711515.3301
        "stop_memory" => integer 3079448
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3315
        "start_memory" => integer 3084048
        "stop_time" => float 1487711515.3315
        "stop_memory" => integer 3084616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3316
        "start_memory" => integer 3088080
        "stop_time" => float 1487711515.3316
        "stop_memory" => integer 3088672
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3333
        "start_memory" => integer 3182704
        "stop_time" => float 1487711515.3334
        "stop_memory" => integer 3183304
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3334
        "start_memory" => integer 3186856
        "stop_time" => float 1487711515.3335
        "stop_memory" => integer 3187448
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3338
        "start_memory" => integer 3201024
        "stop_time" => float 1487711515.3339
        "stop_memory" => integer 3201616
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.334
        "start_memory" => integer 3205168
        "stop_time" => float 1487711515.334
        "stop_memory" => integer 3205776
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3351
        "start_memory" => integer 3210808
        "stop_time" => float 1487711515.3351
        "stop_memory" => integer 3211376
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3352
        "start_memory" => integer 3214880
        "stop_time" => float 1487711515.3352
        "stop_memory" => integer 3215480
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3361
        "start_memory" => integer 3310288
        "stop_time" => float 1487711515.3362
        "stop_memory" => integer 3310880
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3363
        "start_memory" => integer 3314432
        "stop_time" => float 1487711515.3363
        "stop_memory" => integer 3315040
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3365
        "start_memory" => integer 3327080
        "stop_time" => float 1487711515.3365
        "stop_memory" => integer 3327648
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3366
        "start_memory" => integer 3331152
        "stop_time" => float 1487711515.3366
        "stop_memory" => integer 3331776
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3373
        "start_memory" => integer 3375416
        "stop_time" => float 1487711515.3374
        "stop_memory" => integer 3375992
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3374
        "start_memory" => integer 3379512
        "stop_time" => float 1487711515.3375
        "stop_memory" => integer 3380112
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3381
        "start_memory" => integer 3424744
        "stop_time" => float 1487711515.3381
        "stop_memory" => integer 3425320
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3382
        "start_memory" => integer 3428824
        "stop_time" => float 1487711515.3382
        "stop_memory" => integer 3429424
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3389
        "start_memory" => integer 3456736
        "stop_time" => float 1487711515.339
        "stop_memory" => integer 3457328
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3391
        "start_memory" => integer 3460888
        "stop_time" => float 1487711515.3391
        "stop_memory" => integer 3461496
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3399
        "start_memory" => integer 3497736
        "stop_time" => float 1487711515.3399
        "stop_memory" => integer 3498336
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.34
        "start_memory" => integer 3501968
        "stop_time" => float 1487711515.34
        "stop_memory" => integer 3502584
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3402
        "start_memory" => integer 3514728
        "stop_time" => float 1487711515.3402
        "stop_memory" => integer 3515320
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3403
        "start_memory" => integer 3518944
        "stop_time" => float 1487711515.3403
        "stop_memory" => integer 3519560
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.341
        "start_memory" => integer 3571680
        "stop_time" => float 1487711515.341
        "stop_memory" => integer 3572272
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3411
        "start_memory" => integer 3575880
        "stop_time" => float 1487711515.3412
        "stop_memory" => integer 3576496
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3419
        "start_memory" => integer 3609088
        "stop_time" => float 1487711515.3419
        "stop_memory" => integer 3609680
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.342
        "start_memory" => integer 3613304
        "stop_time" => float 1487711515.3421
        "stop_memory" => integer 3613920
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3427
        "start_memory" => integer 3642544
        "stop_time" => float 1487711515.3428
        "stop_memory" => integer 3643136
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3429
        "start_memory" => integer 3646744
        "stop_time" => float 1487711515.3429
        "stop_memory" => integer 3647360
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3438
        "start_memory" => integer 3723280
        "stop_time" => float 1487711515.3438
        "stop_memory" => integer 3723872
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3439
        "start_memory" => integer 3727480
        "stop_time" => float 1487711515.3439
        "stop_memory" => integer 3728096
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3455
        "start_memory" => integer 3764576
        "stop_time" => float 1487711515.3455
        "stop_memory" => integer 3765152
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3456
        "start_memory" => integer 3768712
        "stop_time" => float 1487711515.3456
        "stop_memory" => integer 3769320
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3463
        "start_memory" => integer 3787648
        "stop_time" => float 1487711515.3463
        "stop_memory" => integer 3788184
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3464
        "start_memory" => integer 3791632
        "stop_time" => float 1487711515.3465
        "stop_memory" => integer 3792200
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3473
        "start_memory" => integer 3861760
        "stop_time" => float 1487711515.3474
        "stop_memory" => integer 3862344
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3475
        "start_memory" => integer 3865800
        "stop_time" => float 1487711515.3475
        "stop_memory" => integer 3866376
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3506
        "start_memory" => integer 3880576
        "stop_time" => float 1487711515.3507
        "stop_memory" => integer 3881136
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3508
        "start_memory" => integer 3884568
        "stop_time" => float 1487711515.3508
        "stop_memory" => integer 3885152
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3528
        "start_memory" => integer 3906992
        "stop_time" => float 1487711515.3528
        "stop_memory" => integer 3907552
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3529
        "start_memory" => integer 3910976
        "stop_time" => float 1487711515.353
        "stop_memory" => integer 3911544
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3535
        "start_memory" => integer 3934688
        "stop_time" => float 1487711515.3536
        "stop_memory" => integer 3935256
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3536
        "start_memory" => integer 3938704
        "stop_time" => float 1487711515.3537
        "stop_memory" => integer 3939272
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3542
        "start_memory" => integer 3965216
        "stop_time" => float 1487711515.3543
        "stop_memory" => integer 3965784
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3544
        "start_memory" => integer 3969208
        "stop_time" => float 1487711515.3544
        "stop_memory" => integer 3970800
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3554
        "start_memory" => integer 4017920
        "stop_time" => float 1487711515.3555
        "stop_memory" => integer 4018488
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3556
        "start_memory" => integer 4021928
        "stop_time" => float 1487711515.3556
        "stop_memory" => integer 4022512
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3572
        "start_memory" => integer 4037080
        "stop_time" => float 1487711515.3572
        "stop_memory" => integer 4037640
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3573
        "start_memory" => integer 4041088
        "stop_time" => float 1487711515.3574
        "stop_memory" => integer 4041656
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3584
        "start_memory" => integer 4058280
        "stop_time" => float 1487711515.3584
        "stop_memory" => integer 4058864
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3585
        "start_memory" => integer 4062344
        "stop_time" => float 1487711515.3586
        "stop_memory" => integer 4062936
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.359
        "start_memory" => integer 4079400
        "stop_time" => float 1487711515.3591
        "stop_memory" => integer 4079968
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3592
        "start_memory" => integer 4083472
        "stop_time" => float 1487711515.3592
        "stop_memory" => integer 4084064
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3597
        "start_memory" => integer 4097648
        "stop_time" => float 1487711515.3598
        "stop_memory" => integer 4098216
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3598
        "start_memory" => integer 4101720
        "stop_time" => float 1487711515.3599
        "stop_memory" => integer 4102312
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3603
        "start_memory" => integer 4115912
        "stop_time" => float 1487711515.3604
        "stop_memory" => integer 4116480
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3605
        "start_memory" => integer 4119984
        "stop_time" => float 1487711515.3605
        "stop_memory" => integer 4120576
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.361
        "start_memory" => integer 4134176
        "stop_time" => float 1487711515.361
        "stop_memory" => integer 4134744
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3611
        "start_memory" => integer 4138248
        "stop_time" => float 1487711515.3612
        "stop_memory" => integer 4138840
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3616
        "start_memory" => integer 4152424
        "stop_time" => float 1487711515.3617
        "stop_memory" => integer 4152992
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3618
        "start_memory" => integer 4156496
        "stop_time" => float 1487711515.3618
        "stop_memory" => integer 4157088
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3623
        "start_memory" => integer 4170672
        "stop_time" => float 1487711515.3623
        "stop_memory" => integer 4171240
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3624
        "start_memory" => integer 4174744
        "stop_time" => float 1487711515.3625
        "stop_memory" => integer 4175336
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3629
        "start_memory" => integer 4188936
        "stop_time" => float 1487711515.363
        "stop_memory" => integer 4189504
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.363
        "start_memory" => integer 4193008
        "stop_time" => float 1487711515.3631
        "stop_memory" => integer 4193600
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3636
        "start_memory" => integer 4207184
        "stop_time" => float 1487711515.3636
        "stop_memory" => integer 4207752
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3637
        "start_memory" => integer 4211256
        "stop_time" => float 1487711515.3637
        "stop_memory" => integer 4211848
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3642
        "start_memory" => integer 4225528
        "stop_time" => float 1487711515.3643
        "stop_memory" => integer 4226096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3644
        "start_memory" => integer 4229600
        "stop_time" => float 1487711515.3644
        "stop_memory" => integer 4230192
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3649
        "start_memory" => integer 4243800
        "stop_time" => float 1487711515.365
        "stop_memory" => integer 4244368
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.365
        "start_memory" => integer 4247872
        "stop_time" => float 1487711515.3651
        "stop_memory" => integer 4248464
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3656
        "start_memory" => integer 4262048
        "stop_time" => float 1487711515.3656
        "stop_memory" => integer 4262616
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3657
        "start_memory" => integer 4266120
        "stop_time" => float 1487711515.3657
        "stop_memory" => integer 4266712
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3662
        "start_memory" => integer 4280280
        "stop_time" => float 1487711515.3663
        "stop_memory" => integer 4280848
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3664
        "start_memory" => integer 4284352
        "stop_time" => float 1487711515.3664
        "stop_memory" => integer 4284944
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3669
        "start_memory" => integer 4298528
        "stop_time" => float 1487711515.3669
        "stop_memory" => integer 4299096
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.367
        "start_memory" => integer 4302600
        "stop_time" => float 1487711515.3671
        "stop_memory" => integer 4303192
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3675
        "start_memory" => integer 4316792
        "stop_time" => float 1487711515.3676
        "stop_memory" => integer 4317360
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3677
        "start_memory" => integer 4320864
        "stop_time" => float 1487711515.3677
        "stop_memory" => integer 4321456
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3682
        "start_memory" => integer 4335072
        "stop_time" => float 1487711515.3683
        "stop_memory" => integer 4335640
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3683
        "start_memory" => integer 4339144
        "stop_time" => float 1487711515.3684
        "stop_memory" => integer 4339736
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3689
        "start_memory" => integer 4353336
        "stop_time" => float 1487711515.3689
        "stop_memory" => integer 4353904
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.369
        "start_memory" => integer 4357408
        "stop_time" => float 1487711515.3691
        "stop_memory" => integer 4358000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3695
        "start_memory" => integer 4371728
        "stop_time" => float 1487711515.3696
        "stop_memory" => integer 4372296
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3696
        "start_memory" => integer 4375800
        "stop_time" => float 1487711515.3697
        "stop_memory" => integer 4376392
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3702
        "start_memory" => integer 4390008
        "stop_time" => float 1487711515.3702
        "stop_memory" => integer 4390576
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3703
        "start_memory" => integer 4394080
        "stop_time" => float 1487711515.3704
        "stop_memory" => integer 4394672
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3708
        "start_memory" => integer 4408272
        "stop_time" => float 1487711515.3709
        "stop_memory" => integer 4408840
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.371
        "start_memory" => integer 4412344
        "stop_time" => float 1487711515.371
        "stop_memory" => integer 4412936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3715
        "start_memory" => integer 4426536
        "stop_time" => float 1487711515.3715
        "stop_memory" => integer 4427104
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3716
        "start_memory" => integer 4430608
        "stop_time" => float 1487711515.3717
        "stop_memory" => integer 4431200
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3721
        "start_memory" => integer 4444784
        "stop_time" => float 1487711515.3722
        "stop_memory" => integer 4445352
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3722
        "start_memory" => integer 4448856
        "stop_time" => float 1487711515.3723
        "stop_memory" => integer 4449448
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3728
        "start_memory" => integer 4463032
        "stop_time" => float 1487711515.3728
        "stop_memory" => integer 4463600
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3729
        "start_memory" => integer 4467104
        "stop_time" => float 1487711515.3729
        "stop_memory" => integer 4467696
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3734
        "start_memory" => integer 4481312
        "stop_time" => float 1487711515.3735
        "stop_memory" => integer 4481880
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3736
        "start_memory" => integer 4485384
        "stop_time" => float 1487711515.3736
        "stop_memory" => integer 4485976
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3741
        "start_memory" => integer 4499560
        "stop_time" => float 1487711515.3741
        "stop_memory" => integer 4500128
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3742
        "start_memory" => integer 4503632
        "stop_time" => float 1487711515.3743
        "stop_memory" => integer 4504224
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3753
        "start_memory" => integer 4518048
        "stop_time" => float 1487711515.3754
        "stop_memory" => integer 4518616
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3755
        "start_memory" => integer 4522120
        "stop_time" => float 1487711515.3755
        "stop_memory" => integer 4522712
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3775
        "start_memory" => integer 4545632
        "stop_time" => float 1487711515.3776
        "stop_memory" => integer 4546200
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3776
        "start_memory" => integer 4549664
        "stop_time" => float 1487711515.3777
        "stop_memory" => integer 4550240
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3787
        "start_memory" => integer 4631376
        "stop_time" => float 1487711515.3787
        "stop_memory" => integer 4631952
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3788
        "start_memory" => integer 4635416
        "stop_time" => float 1487711515.3788
        "stop_memory" => integer 4636008
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.38
        "start_memory" => integer 4737152
        "stop_time" => float 1487711515.3801
        "stop_memory" => integer 4737704
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3802
        "start_memory" => integer 4741160
        "stop_time" => float 1487711515.3802
        "stop_memory" => integer 4741744
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3819
        "start_memory" => integer 4774712
        "stop_time" => float 1487711515.382
        "stop_memory" => integer 4775304
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3821
        "start_memory" => integer 4778800
        "stop_time" => float 1487711515.3821
        "stop_memory" => integer 4779400
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3827
        "start_memory" => integer 4804992
        "stop_time" => float 1487711515.3827
        "stop_memory" => integer 4805584
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3828
        "start_memory" => integer 4809136
        "stop_time" => float 1487711515.3829
        "stop_memory" => integer 4809744
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3838
        "start_memory" => integer 4828448
        "stop_time" => float 1487711515.3838
        "stop_memory" => integer 4829016
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3839
        "start_memory" => integer 4832520
        "stop_time" => float 1487711515.384
        "stop_memory" => integer 4833120
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3853
        "start_memory" => integer 4851688
        "stop_time" => float 1487711515.3853
        "stop_memory" => integer 4852280
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3877
        "start_memory" => integer 4861968
        "stop_time" => float 1487711515.3878
        "stop_memory" => integer 4862544
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.388
        "start_memory" => integer 4871200
        "stop_time" => float 1487711515.388
        "stop_memory" => integer 4871784
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3891
        "start_memory" => integer 4881192
        "stop_time" => float 1487711515.3891
        "stop_memory" => integer 4881744
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3892
        "start_memory" => integer 4885200
        "stop_time" => float 1487711515.3893
        "stop_memory" => integer 4885784
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3897
        "start_memory" => integer 4889792
        "stop_time" => float 1487711515.3898
        "stop_memory" => integer 4890352
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3898
        "start_memory" => integer 4893856
        "stop_time" => float 1487711515.3899
        "stop_memory" => integer 4894440
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3903
        "start_memory" => integer 4898336
        "stop_time" => float 1487711515.3904
        "stop_memory" => integer 4898896
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3904
        "start_memory" => integer 4902448
        "stop_time" => float 1487711515.3905
        "stop_memory" => integer 4903040
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3913
        "start_memory" => integer 4912056
        "stop_time" => float 1487711515.3913
        "stop_memory" => integer 4912640
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3914
        "start_memory" => integer 4916096
        "stop_time" => float 1487711515.3914
        "stop_memory" => integer 4916680
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3918
        "start_memory" => integer 4918792
        "stop_time" => float 1487711515.3919
        "stop_memory" => integer 4919432
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.392
        "start_memory" => integer 4926144
        "stop_time" => float 1487711515.392
        "stop_memory" => integer 4926688
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3921
        "start_memory" => integer 4930136
        "stop_time" => float 1487711515.3921
        "stop_memory" => integer 4930720
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3939
        "start_memory" => integer 5162336
        "stop_time" => float 1487711515.3939
        "stop_memory" => integer 5162928
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3945
        "start_memory" => integer 5219592
        "stop_time" => float 1487711515.3945
        "stop_memory" => integer 5220176
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.395
        "start_memory" => integer 5254560
        "stop_time" => float 1487711515.395
        "stop_memory" => integer 5255144
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3951
        "start_memory" => integer 5258648
        "stop_time" => float 1487711515.3951
        "stop_memory" => integer 5259248
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3955
        "start_memory" => integer 5265272
        "stop_time" => float 1487711515.3956
        "stop_memory" => integer 5265832
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3959
        "start_memory" => integer 5291944
        "stop_time" => float 1487711515.396
        "stop_memory" => integer 5292520
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3963
        "start_memory" => integer 5321432
        "stop_time" => float 1487711515.3964
        "stop_memory" => integer 5322024
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3968
        "start_memory" => integer 5348736
        "stop_time" => float 1487711515.3968
        "stop_memory" => integer 5349272
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3969
        "start_memory" => integer 5352784
        "stop_time" => float 1487711515.397
        "stop_memory" => integer 5353368
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3986
        "start_memory" => integer 5380520
        "stop_time" => float 1487711515.3986
        "stop_memory" => integer 5381136
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.3987
        "start_memory" => integer 5384952
        "stop_time" => float 1487711515.3987
        "stop_memory" => integer 5385560
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4006
        "start_memory" => integer 5417392
        "stop_time" => float 1487711515.4007
        "stop_memory" => integer 5417960
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4008
        "start_memory" => integer 5421600
        "stop_time" => float 1487711515.4008
        "stop_memory" => integer 5422200
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4041
        "start_memory" => integer 5486944
        "stop_time" => float 1487711515.4041
        "stop_memory" => integer 5487488
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4042
        "start_memory" => integer 5491032
        "stop_time" => float 1487711515.4042
        "stop_memory" => integer 5491680
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4047
        "start_memory" => integer 5501784
        "stop_time" => float 1487711515.4047
        "stop_memory" => integer 5502360
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4048
        "start_memory" => integer 5505808
        "stop_time" => float 1487711515.4049
        "stop_memory" => integer 5506392
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4055
        "start_memory" => integer 5551032
        "stop_time" => float 1487711515.4055
        "stop_memory" => integer 5551608
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4056
        "start_memory" => integer 5555184
        "stop_time" => float 1487711515.4057
        "stop_memory" => integer 5555800
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4061
        "start_memory" => integer 5576144
        "stop_time" => float 1487711515.4061
        "stop_memory" => integer 5576752
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4062
        "start_memory" => integer 5580344
        "stop_time" => float 1487711515.4062
        "stop_memory" => integer 5580936
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4072
        "start_memory" => integer 5629600
        "stop_time" => float 1487711515.4072
        "stop_memory" => integer 5630192
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4073
        "start_memory" => integer 5633704
        "stop_time" => float 1487711515.4074
        "stop_memory" => integer 5634304
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4078
        "start_memory" => integer 5656560
        "stop_time" => float 1487711515.4079
        "stop_memory" => integer 5657136
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.408
        "start_memory" => integer 5660648
        "stop_time" => float 1487711515.408
        "stop_memory" => integer 5661216
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4089
        "start_memory" => integer 5733752
        "stop_time" => float 1487711515.409
        "stop_memory" => integer 5734336
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4091
        "start_memory" => integer 5737824
        "stop_time" => float 1487711515.4091
        "stop_memory" => integer 5738408
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.413
        "start_memory" => integer 5757592
        "stop_time" => float 1487711515.4131
        "stop_memory" => integer 5758152
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4132
        "start_memory" => integer 5761656
        "stop_time" => float 1487711515.4133
        "stop_memory" => integer 5762296
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4142
        "start_memory" => integer 5821704
        "stop_time" => float 1487711515.4142
        "stop_memory" => integer 5822280
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4143
        "start_memory" => integer 5825824
        "stop_time" => float 1487711515.4144
        "stop_memory" => integer 5826448
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4153
        "start_memory" => integer 5895584
        "stop_time" => float 1487711515.4154
        "stop_memory" => integer 5896232
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4155
        "start_memory" => integer 5899816
        "stop_time" => float 1487711515.4155
        "stop_memory" => integer 5900400
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4164
        "start_memory" => integer 5918448
        "stop_time" => float 1487711515.4164
        "stop_memory" => integer 5919080
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4167
        "start_memory" => integer 5885024
        "stop_time" => float 1487711515.4168
        "stop_memory" => integer 5887344
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4174
        "start_memory" => integer 5923536
        "stop_time" => float 1487711515.4174
        "stop_memory" => integer 5925200
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1487711515.4175
        "start_memory" => integer 5924832
        "stop_time" => float 1487711515.4175
        "stop_memory" => integer 5926504
    )
)

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