Modules

Kohana_Profiler

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

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

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

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1455040307.595
        "start_memory" => integer 1116528
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.595
        "start_memory" => integer 1118776
        "stop_time" => float 1455040307.5951
        "stop_memory" => integer 1119464
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5951
        "start_memory" => integer 1123032
        "stop_time" => float 1455040307.5952
        "stop_memory" => integer 1123640
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5958
        "start_memory" => integer 1200104
        "stop_time" => float 1455040307.5958
        "stop_memory" => integer 1200656
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5959
        "start_memory" => integer 1204160
        "stop_time" => float 1455040307.5959
        "stop_memory" => integer 1204752
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.596
        "start_memory" => integer 1212720
        "stop_time" => float 1455040307.5961
        "stop_memory" => integer 1213272
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5961
        "start_memory" => integer 1216736
        "stop_time" => float 1455040307.5962
        "stop_memory" => integer 1217320
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5963
        "start_memory" => integer 1226176
        "stop_time" => float 1455040307.5964
        "stop_memory" => integer 1226736
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5964
        "start_memory" => integer 1230176
        "stop_time" => float 1455040307.5965
        "stop_memory" => integer 1230832
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5973
        "start_memory" => integer 1325688
        "stop_time" => float 1455040307.5973
        "stop_memory" => integer 1326280
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5974
        "start_memory" => integer 1329744
        "stop_time" => float 1455040307.5975
        "stop_memory" => integer 1330336
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5976
        "start_memory" => integer 1342120
        "stop_time" => float 1455040307.5976
        "stop_memory" => integer 1342672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5977
        "start_memory" => integer 1346096
        "stop_time" => float 1455040307.5978
        "stop_memory" => integer 1346664
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.598
        "start_memory" => integer 1381056
        "stop_time" => float 1455040307.5981
        "stop_memory" => integer 1381656
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5981
        "start_memory" => integer 1382728
        "stop_time" => float 1455040307.5981
        "stop_memory" => integer 1383264
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5982
        "start_memory" => integer 1386672
        "stop_time" => float 1455040307.5983
        "stop_memory" => integer 1387248
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5985
        "start_memory" => integer 1406496
        "stop_time" => float 1455040307.5986
        "stop_memory" => integer 1407200
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5987
        "start_memory" => integer 1410624
        "stop_time" => float 1455040307.5987
        "stop_memory" => integer 1411192
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5994
        "start_memory" => integer 1506800
        "stop_time" => float 1455040307.5995
        "stop_memory" => integer 1507400
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.5995
        "start_memory" => integer 1510904
        "stop_time" => float 1455040307.5996
        "stop_memory" => integer 1511504
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6
        "start_memory" => integer 1550776
        "stop_time" => float 1455040307.6001
        "stop_memory" => integer 1551280
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6001
        "start_memory" => integer 1551920
        "stop_time" => float 1455040307.6002
        "stop_memory" => integer 1552496
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6047
        "start_memory" => integer 1951792
        "stop_time" => float 1455040307.6048
        "stop_memory" => integer 1952376
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6049
        "start_memory" => integer 1955880
        "stop_time" => float 1455040307.605
        "stop_memory" => integer 1956480
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6052
        "start_memory" => integer 1958112
        "stop_time" => float 1455040307.6052
        "stop_memory" => integer 1958712
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6054
        "start_memory" => integer 1962224
        "stop_time" => float 1455040307.6054
        "stop_memory" => integer 1962800
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6058
        "start_memory" => integer 1992448
        "stop_time" => float 1455040307.6059
        "stop_memory" => integer 1993008
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.606
        "start_memory" => integer 1996512
        "stop_time" => float 1455040307.6061
        "stop_memory" => integer 1997112
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6067
        "start_memory" => integer 2059160
        "stop_time" => float 1455040307.6068
        "stop_memory" => integer 2059712
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6069
        "start_memory" => integer 2063160
        "stop_time" => float 1455040307.6069
        "stop_memory" => integer 2063728
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6079
        "start_memory" => integer 2122888
        "stop_time" => float 1455040307.6079
        "stop_memory" => integer 2123504
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6798
        "start_memory" => integer 2164384
        "stop_time" => float 1455040307.6798
        "stop_memory" => integer 2164960
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6799
        "start_memory" => integer 2168384
        "stop_time" => float 1455040307.68
        "stop_memory" => integer 2169224
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6806
        "start_memory" => integer 2195472
        "stop_time" => float 1455040307.6806
        "stop_memory" => integer 2196048
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6807
        "start_memory" => integer 2199528
        "stop_time" => float 1455040307.6807
        "stop_memory" => integer 2200120
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6812
        "start_memory" => integer 2217416
        "stop_time" => float 1455040307.6812
        "stop_memory" => integer 2217984
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6813
        "start_memory" => integer 2221448
        "stop_time" => float 1455040307.6814
        "stop_memory" => integer 2222040
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.682
        "start_memory" => integer 2265496
        "stop_time" => float 1455040307.682
        "stop_memory" => integer 2266096
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6821
        "start_memory" => integer 2277632
        "stop_time" => float 1455040307.6821
        "stop_memory" => integer 2278208
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6822
        "start_memory" => integer 2281720
        "stop_time" => float 1455040307.6822
        "stop_memory" => integer 2282304
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6827
        "start_memory" => integer 2320320
        "stop_time" => float 1455040307.6827
        "stop_memory" => integer 2320920
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6829
        "start_memory" => integer 2333040
        "stop_time" => float 1455040307.6829
        "stop_memory" => integer 2333616
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6833
        "start_memory" => integer 2360632
        "stop_time" => float 1455040307.6833
        "stop_memory" => integer 2361232
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6835
        "start_memory" => integer 2369048
        "stop_time" => float 1455040307.6835
        "stop_memory" => integer 2369624
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6837
        "start_memory" => integer 2382776
        "stop_time" => float 1455040307.6837
        "stop_memory" => integer 2383376
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6839
        "start_memory" => integer 2390392
        "stop_time" => float 1455040307.6839
        "stop_memory" => integer 2390984
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6842
        "start_memory" => integer 2404288
        "stop_time" => float 1455040307.6842
        "stop_memory" => integer 2404880
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6844
        "start_memory" => integer 2418512
        "stop_time" => float 1455040307.6844
        "stop_memory" => integer 2419104
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6846
        "start_memory" => integer 2428584
        "stop_time" => float 1455040307.6846
        "stop_memory" => integer 2429176
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6848
        "start_memory" => integer 2437848
        "stop_time" => float 1455040307.6849
        "stop_memory" => integer 2438440
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6851
        "start_memory" => integer 2483776
        "stop_time" => float 1455040307.6851
        "stop_memory" => integer 2484352
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6854
        "start_memory" => integer 2507280
        "stop_time" => float 1455040307.6854
        "stop_memory" => integer 2507880
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6857
        "start_memory" => integer 2521176
        "stop_time" => float 1455040307.6857
        "stop_memory" => integer 2521752
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6859
        "start_memory" => integer 2540952
        "stop_time" => float 1455040307.6859
        "stop_memory" => integer 2541536
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6862
        "start_memory" => integer 2555192
        "stop_time" => float 1455040307.6862
        "stop_memory" => integer 2555760
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6863
        "start_memory" => integer 2559216
        "stop_time" => float 1455040307.6863
        "stop_memory" => integer 2559800
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6865
        "start_memory" => integer 2582000
        "stop_time" => float 1455040307.6865
        "stop_memory" => integer 2582560
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6866
        "start_memory" => integer 2585992
        "stop_time" => float 1455040307.6867
        "stop_memory" => integer 2586576
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6892
        "start_memory" => integer 2680504
        "stop_time" => float 1455040307.6892
        "stop_memory" => integer 2681080
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6947
        "start_memory" => integer 2711656
        "stop_time" => float 1455040307.6948
        "stop_memory" => integer 2712232
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6948
        "start_memory" => integer 2715712
        "stop_time" => float 1455040307.6949
        "stop_memory" => integer 2716304
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.698
        "start_memory" => integer 2735416
        "stop_time" => float 1455040307.698
        "stop_memory" => integer 2736000
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.6981
        "start_memory" => integer 2739528
        "stop_time" => float 1455040307.6981
        "stop_memory" => integer 2740128
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7023
        "start_memory" => integer 2759312
        "stop_time" => float 1455040307.7023
        "stop_memory" => integer 2759872
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7024
        "start_memory" => integer 2763352
        "stop_time" => float 1455040307.7025
        "stop_memory" => integer 2764456
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7032
        "start_memory" => integer 2818984
        "stop_time" => float 1455040307.7033
        "stop_memory" => integer 2819584
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7088
        "start_memory" => integer 2826896
        "stop_time" => float 1455040307.7088
        "stop_memory" => integer 2827472
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.709
        "start_memory" => integer 2830976
        "stop_time" => float 1455040307.709
        "stop_memory" => integer 2831576
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7228
        "start_memory" => integer 2871248
        "stop_time" => float 1455040307.7228
        "stop_memory" => integer 2871824
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7229
        "start_memory" => integer 2875352
        "stop_time" => float 1455040307.723
        "stop_memory" => integer 2875952
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7232
        "start_memory" => integer 2891928
        "stop_time" => float 1455040307.7232
        "stop_memory" => integer 2892504
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7236
        "start_memory" => integer 2899808
        "stop_time" => float 1455040307.7237
        "stop_memory" => integer 2900376
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7237
        "start_memory" => integer 2903848
        "stop_time" => float 1455040307.7238
        "stop_memory" => integer 2904440
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7245
        "start_memory" => integer 2953944
        "stop_time" => float 1455040307.7245
        "stop_memory" => integer 2954528
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7246
        "start_memory" => integer 2958032
        "stop_time" => float 1455040307.7247
        "stop_memory" => integer 2958632
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7285
        "start_memory" => integer 2978024
        "stop_time" => float 1455040307.7286
        "stop_memory" => integer 2978584
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7286
        "start_memory" => integer 2982080
        "stop_time" => float 1455040307.7287
        "stop_memory" => integer 2982672
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7292
        "start_memory" => integer 2997824
        "stop_time" => float 1455040307.7293
        "stop_memory" => integer 2998360
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7293
        "start_memory" => integer 3001768
        "stop_time" => float 1455040307.7294
        "stop_memory" => integer 3002344
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7305
        "start_memory" => integer 3009016
        "stop_time" => float 1455040307.7306
        "stop_memory" => integer 3009616
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7307
        "start_memory" => integer 3013128
        "stop_time" => float 1455040307.7307
        "stop_memory" => integer 3013728
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7333
        "start_memory" => integer 3048776
        "stop_time" => float 1455040307.7333
        "stop_memory" => integer 3049368
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7338
        "start_memory" => integer 3057064
        "stop_time" => float 1455040307.7338
        "stop_memory" => integer 3057624
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7339
        "start_memory" => integer 3061112
        "stop_time" => float 1455040307.734
        "stop_memory" => integer 3061704
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7364
        "start_memory" => integer 3079344
        "stop_time" => float 1455040307.7365
        "stop_memory" => integer 3079928
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7378
        "start_memory" => integer 3084528
        "stop_time" => float 1455040307.7379
        "stop_memory" => integer 3085096
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7379
        "start_memory" => integer 3088560
        "stop_time" => float 1455040307.738
        "stop_memory" => integer 3089152
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7397
        "start_memory" => integer 3183208
        "stop_time" => float 1455040307.7397
        "stop_memory" => integer 3183808
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7398
        "start_memory" => integer 3187360
        "stop_time" => float 1455040307.7398
        "stop_memory" => integer 3187952
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7402
        "start_memory" => integer 3200840
        "stop_time" => float 1455040307.7402
        "stop_memory" => integer 3201432
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7403
        "start_memory" => integer 3204984
        "stop_time" => float 1455040307.7403
        "stop_memory" => integer 3205592
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7414
        "start_memory" => integer 3210624
        "stop_time" => float 1455040307.7415
        "stop_memory" => integer 3211192
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7415
        "start_memory" => integer 3214696
        "stop_time" => float 1455040307.7416
        "stop_memory" => integer 3215296
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7425
        "start_memory" => integer 3310104
        "stop_time" => float 1455040307.7425
        "stop_memory" => integer 3310696
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7426
        "start_memory" => integer 3314248
        "stop_time" => float 1455040307.7426
        "stop_memory" => integer 3314856
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7428
        "start_memory" => integer 3326896
        "stop_time" => float 1455040307.7428
        "stop_memory" => integer 3327464
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7429
        "start_memory" => integer 3330968
        "stop_time" => float 1455040307.7429
        "stop_memory" => integer 3331592
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7437
        "start_memory" => integer 3375232
        "stop_time" => float 1455040307.7437
        "stop_memory" => integer 3375808
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7438
        "start_memory" => integer 3379328
        "stop_time" => float 1455040307.7438
        "stop_memory" => integer 3379928
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7444
        "start_memory" => integer 3424560
        "stop_time" => float 1455040307.7445
        "stop_memory" => integer 3425136
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7445
        "start_memory" => integer 3428640
        "stop_time" => float 1455040307.7446
        "stop_memory" => integer 3429240
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7453
        "start_memory" => integer 3456552
        "stop_time" => float 1455040307.7453
        "stop_memory" => integer 3457144
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7454
        "start_memory" => integer 3460704
        "stop_time" => float 1455040307.7455
        "stop_memory" => integer 3461312
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7468
        "start_memory" => integer 3497544
        "stop_time" => float 1455040307.7469
        "stop_memory" => integer 3498144
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.747
        "start_memory" => integer 3501776
        "stop_time" => float 1455040307.747
        "stop_memory" => integer 3502392
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7473
        "start_memory" => integer 3514536
        "stop_time" => float 1455040307.7475
        "stop_memory" => integer 3515128
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7477
        "start_memory" => integer 3518752
        "stop_time" => float 1455040307.7478
        "stop_memory" => integer 3519368
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7491
        "start_memory" => integer 3571488
        "stop_time" => float 1455040307.7491
        "stop_memory" => integer 3572080
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7493
        "start_memory" => integer 3575688
        "stop_time" => float 1455040307.7493
        "stop_memory" => integer 3576304
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7504
        "start_memory" => integer 3608896
        "stop_time" => float 1455040307.7505
        "stop_memory" => integer 3609488
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7506
        "start_memory" => integer 3613112
        "stop_time" => float 1455040307.7507
        "stop_memory" => integer 3613728
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7519
        "start_memory" => integer 3642352
        "stop_time" => float 1455040307.752
        "stop_memory" => integer 3642944
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.752
        "start_memory" => integer 3646552
        "stop_time" => float 1455040307.7521
        "stop_memory" => integer 3647168
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.753
        "start_memory" => integer 3723088
        "stop_time" => float 1455040307.753
        "stop_memory" => integer 3723680
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7531
        "start_memory" => integer 3727288
        "stop_time" => float 1455040307.7532
        "stop_memory" => integer 3727904
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7547
        "start_memory" => integer 3764424
        "stop_time" => float 1455040307.7548
        "stop_memory" => integer 3765000
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7549
        "start_memory" => integer 3768560
        "stop_time" => float 1455040307.7549
        "stop_memory" => integer 3769168
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7555
        "start_memory" => integer 3787496
        "stop_time" => float 1455040307.7556
        "stop_memory" => integer 3788032
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7557
        "start_memory" => integer 3791480
        "stop_time" => float 1455040307.7557
        "stop_memory" => integer 3792048
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7566
        "start_memory" => integer 3861608
        "stop_time" => float 1455040307.7566
        "stop_memory" => integer 3862192
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7567
        "start_memory" => integer 3865648
        "stop_time" => float 1455040307.7568
        "stop_memory" => integer 3866224
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7599
        "start_memory" => integer 3880424
        "stop_time" => float 1455040307.7599
        "stop_memory" => integer 3880984
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.76
        "start_memory" => integer 3884416
        "stop_time" => float 1455040307.7601
        "stop_memory" => integer 3885000
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7621
        "start_memory" => integer 3906840
        "stop_time" => float 1455040307.7621
        "stop_memory" => integer 3907400
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7622
        "start_memory" => integer 3910824
        "stop_time" => float 1455040307.7623
        "stop_memory" => integer 3911392
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7628
        "start_memory" => integer 3934536
        "stop_time" => float 1455040307.7629
        "stop_memory" => integer 3935104
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7629
        "start_memory" => integer 3938552
        "stop_time" => float 1455040307.763
        "stop_memory" => integer 3939120
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7635
        "start_memory" => integer 3965048
        "stop_time" => float 1455040307.7636
        "stop_memory" => integer 3965616
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7636
        "start_memory" => integer 3969040
        "stop_time" => float 1455040307.7637
        "stop_memory" => integer 3970632
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7647
        "start_memory" => integer 4017768
        "stop_time" => float 1455040307.7647
        "stop_memory" => integer 4018336
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7648
        "start_memory" => integer 4021776
        "stop_time" => float 1455040307.7648
        "stop_memory" => integer 4022360
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7664
        "start_memory" => integer 4036904
        "stop_time" => float 1455040307.7664
        "stop_memory" => integer 4037464
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7665
        "start_memory" => integer 4040912
        "stop_time" => float 1455040307.7666
        "stop_memory" => integer 4041480
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7676
        "start_memory" => integer 4058096
        "stop_time" => float 1455040307.7676
        "stop_memory" => integer 4058680
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7677
        "start_memory" => integer 4062160
        "stop_time" => float 1455040307.7677
        "stop_memory" => integer 4062752
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7685
        "start_memory" => integer 4078528
        "stop_time" => float 1455040307.7685
        "stop_memory" => integer 4079096
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7687
        "start_memory" => integer 4082600
        "stop_time" => float 1455040307.7688
        "stop_memory" => integer 4083192
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7695
        "start_memory" => integer 4096088
        "stop_time" => float 1455040307.7696
        "stop_memory" => integer 4096656
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7697
        "start_memory" => integer 4100160
        "stop_time" => float 1455040307.7698
        "stop_memory" => integer 4100752
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7703
        "start_memory" => integer 4113648
        "stop_time" => float 1455040307.7704
        "stop_memory" => integer 4114216
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7705
        "start_memory" => integer 4117720
        "stop_time" => float 1455040307.7706
        "stop_memory" => integer 4118312
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.771
        "start_memory" => integer 4131224
        "stop_time" => float 1455040307.7711
        "stop_memory" => integer 4131792
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7712
        "start_memory" => integer 4135296
        "stop_time" => float 1455040307.7712
        "stop_memory" => integer 4135888
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7717
        "start_memory" => integer 4148784
        "stop_time" => float 1455040307.7717
        "stop_memory" => integer 4149352
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7718
        "start_memory" => integer 4152856
        "stop_time" => float 1455040307.7719
        "stop_memory" => integer 4153448
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7724
        "start_memory" => integer 4166344
        "stop_time" => float 1455040307.7724
        "stop_memory" => integer 4166912
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7725
        "start_memory" => integer 4170416
        "stop_time" => float 1455040307.7725
        "stop_memory" => integer 4171008
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.773
        "start_memory" => integer 4183920
        "stop_time" => float 1455040307.7731
        "stop_memory" => integer 4184488
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7731
        "start_memory" => integer 4187992
        "stop_time" => float 1455040307.7732
        "stop_memory" => integer 4188584
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7737
        "start_memory" => integer 4201480
        "stop_time" => float 1455040307.7737
        "stop_memory" => integer 4202048
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7738
        "start_memory" => integer 4205552
        "stop_time" => float 1455040307.7738
        "stop_memory" => integer 4206144
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7743
        "start_memory" => integer 4219136
        "stop_time" => float 1455040307.7744
        "stop_memory" => integer 4219704
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7744
        "start_memory" => integer 4223208
        "stop_time" => float 1455040307.7745
        "stop_memory" => integer 4223800
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.775
        "start_memory" => integer 4236696
        "stop_time" => float 1455040307.775
        "stop_memory" => integer 4237264
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7751
        "start_memory" => integer 4240768
        "stop_time" => float 1455040307.7751
        "stop_memory" => integer 4241360
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7756
        "start_memory" => integer 4254256
        "stop_time" => float 1455040307.7756
        "stop_memory" => integer 4254824
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7757
        "start_memory" => integer 4258328
        "stop_time" => float 1455040307.7758
        "stop_memory" => integer 4258920
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7762
        "start_memory" => integer 4271800
        "stop_time" => float 1455040307.7763
        "stop_memory" => integer 4272368
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7764
        "start_memory" => integer 4275872
        "stop_time" => float 1455040307.7764
        "stop_memory" => integer 4276464
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7769
        "start_memory" => integer 4289360
        "stop_time" => float 1455040307.7769
        "stop_memory" => integer 4289928
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.777
        "start_memory" => integer 4293432
        "stop_time" => float 1455040307.7771
        "stop_memory" => integer 4294024
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7775
        "start_memory" => integer 4306936
        "stop_time" => float 1455040307.7776
        "stop_memory" => integer 4307504
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7777
        "start_memory" => integer 4311008
        "stop_time" => float 1455040307.7777
        "stop_memory" => integer 4311600
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7782
        "start_memory" => integer 4324528
        "stop_time" => float 1455040307.7783
        "stop_memory" => integer 4325096
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7784
        "start_memory" => integer 4328600
        "stop_time" => float 1455040307.7784
        "stop_memory" => integer 4329192
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7789
        "start_memory" => integer 4342104
        "stop_time" => float 1455040307.7789
        "stop_memory" => integer 4342672
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.779
        "start_memory" => integer 4346176
        "stop_time" => float 1455040307.7791
        "stop_memory" => integer 4346768
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7795
        "start_memory" => integer 4359808
        "stop_time" => float 1455040307.7796
        "stop_memory" => integer 4360376
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7796
        "start_memory" => integer 4363880
        "stop_time" => float 1455040307.7797
        "stop_memory" => integer 4364472
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7802
        "start_memory" => integer 4377400
        "stop_time" => float 1455040307.7802
        "stop_memory" => integer 4377968
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7803
        "start_memory" => integer 4381472
        "stop_time" => float 1455040307.7804
        "stop_memory" => integer 4382064
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7808
        "start_memory" => integer 4394976
        "stop_time" => float 1455040307.7809
        "stop_memory" => integer 4395544
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.781
        "start_memory" => integer 4399048
        "stop_time" => float 1455040307.781
        "stop_memory" => integer 4399640
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7815
        "start_memory" => integer 4412552
        "stop_time" => float 1455040307.7816
        "stop_memory" => integer 4413120
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7816
        "start_memory" => integer 4416624
        "stop_time" => float 1455040307.7817
        "stop_memory" => integer 4417216
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7822
        "start_memory" => integer 4430112
        "stop_time" => float 1455040307.7822
        "stop_memory" => integer 4430680
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7823
        "start_memory" => integer 4434184
        "stop_time" => float 1455040307.7824
        "stop_memory" => integer 4434776
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7828
        "start_memory" => integer 4447672
        "stop_time" => float 1455040307.7829
        "stop_memory" => integer 4448240
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7829
        "start_memory" => integer 4451744
        "stop_time" => float 1455040307.783
        "stop_memory" => integer 4452336
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7835
        "start_memory" => integer 4465248
        "stop_time" => float 1455040307.7835
        "stop_memory" => integer 4465816
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7836
        "start_memory" => integer 4469320
        "stop_time" => float 1455040307.7836
        "stop_memory" => integer 4469912
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7841
        "start_memory" => integer 4482832
        "stop_time" => float 1455040307.7842
        "stop_memory" => integer 4483400
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7842
        "start_memory" => integer 4486904
        "stop_time" => float 1455040307.7843
        "stop_memory" => integer 4487496
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7854
        "start_memory" => integer 4500632
        "stop_time" => float 1455040307.7854
        "stop_memory" => integer 4501200
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7855
        "start_memory" => integer 4504704
        "stop_time" => float 1455040307.7856
        "stop_memory" => integer 4505296
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7876
        "start_memory" => integer 4528216
        "stop_time" => float 1455040307.7876
        "stop_memory" => integer 4528784
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7877
        "start_memory" => integer 4532248
        "stop_time" => float 1455040307.7878
        "stop_memory" => integer 4532824
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.789
        "start_memory" => integer 4614024
        "stop_time" => float 1455040307.789
        "stop_memory" => integer 4614600
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7891
        "start_memory" => integer 4618064
        "stop_time" => float 1455040307.7892
        "stop_memory" => integer 4618656
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7904
        "start_memory" => integer 4719832
        "stop_time" => float 1455040307.7904
        "stop_memory" => integer 4720384
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7905
        "start_memory" => integer 4723864
        "stop_time" => float 1455040307.7906
        "stop_memory" => integer 4724448
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7923
        "start_memory" => integer 4757440
        "stop_time" => float 1455040307.7923
        "stop_memory" => integer 4758032
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7924
        "start_memory" => integer 4761528
        "stop_time" => float 1455040307.7925
        "stop_memory" => integer 4762128
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.793
        "start_memory" => integer 4787696
        "stop_time" => float 1455040307.7931
        "stop_memory" => integer 4788288
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7931
        "start_memory" => integer 4791864
        "stop_time" => float 1455040307.7932
        "stop_memory" => integer 4792472
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7942
        "start_memory" => integer 4811176
        "stop_time" => float 1455040307.7942
        "stop_memory" => integer 4811744
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7943
        "start_memory" => integer 4815296
        "stop_time" => float 1455040307.7943
        "stop_memory" => integer 4815896
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7957
        "start_memory" => integer 4834512
        "stop_time" => float 1455040307.7957
        "stop_memory" => integer 4835104
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7983
        "start_memory" => integer 4844424
        "stop_time" => float 1455040307.7984
        "stop_memory" => integer 4845000
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7986
        "start_memory" => integer 4853384
        "stop_time" => float 1455040307.7987
        "stop_memory" => integer 4853968
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7997
        "start_memory" => integer 4863000
        "stop_time" => float 1455040307.7998
        "stop_memory" => integer 4863552
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.7998
        "start_memory" => integer 4867008
        "stop_time" => float 1455040307.7999
        "stop_memory" => integer 4867608
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8003
        "start_memory" => integer 4871632
        "stop_time" => float 1455040307.8004
        "stop_memory" => integer 4872192
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8004
        "start_memory" => integer 4875680
        "stop_time" => float 1455040307.8005
        "stop_memory" => integer 4876304
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8009
        "start_memory" => integer 4880264
        "stop_time" => float 1455040307.801
        "stop_memory" => integer 4880824
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8011
        "start_memory" => integer 4884344
        "stop_time" => float 1455040307.8011
        "stop_memory" => integer 4884936
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8019
        "start_memory" => integer 4893984
        "stop_time" => float 1455040307.802
        "stop_memory" => integer 4894552
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.802
        "start_memory" => integer 4898080
        "stop_time" => float 1455040307.8021
        "stop_memory" => integer 4898664
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8025
        "start_memory" => integer 4900752
        "stop_time" => float 1455040307.8026
        "stop_memory" => integer 4901424
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8027
        "start_memory" => integer 4908160
        "stop_time" => float 1455040307.8027
        "stop_memory" => integer 4908704
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8028
        "start_memory" => integer 4912152
        "stop_time" => float 1455040307.8028
        "stop_memory" => integer 4912736
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8048
        "start_memory" => integer 5144344
        "stop_time" => float 1455040307.8048
        "stop_memory" => integer 5144936
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8054
        "start_memory" => integer 5201616
        "stop_time" => float 1455040307.8055
        "stop_memory" => integer 5202200
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8059
        "start_memory" => integer 5236600
        "stop_time" => float 1455040307.8059
        "stop_memory" => integer 5237184
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.806
        "start_memory" => integer 5240688
        "stop_time" => float 1455040307.8061
        "stop_memory" => integer 5241288
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8066
        "start_memory" => integer 5247280
        "stop_time" => float 1455040307.8067
        "stop_memory" => integer 5247840
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8071
        "start_memory" => integer 5273928
        "stop_time" => float 1455040307.8071
        "stop_memory" => integer 5274504
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8075
        "start_memory" => integer 5303400
        "stop_time" => float 1455040307.8075
        "stop_memory" => integer 5303992
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8079
        "start_memory" => integer 5330640
        "stop_time" => float 1455040307.808
        "stop_memory" => integer 5331176
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.808
        "start_memory" => integer 5334680
        "stop_time" => float 1455040307.8081
        "stop_memory" => integer 5335264
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8099
        "start_memory" => integer 5362416
        "stop_time" => float 1455040307.81
        "stop_memory" => integer 5363032
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8101
        "start_memory" => integer 5366840
        "stop_time" => float 1455040307.8101
        "stop_memory" => integer 5367432
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8123
        "start_memory" => integer 5398512
        "stop_time" => float 1455040307.8123
        "stop_memory" => integer 5399080
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8124
        "start_memory" => integer 5402672
        "stop_time" => float 1455040307.8125
        "stop_memory" => integer 5403312
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8161
        "start_memory" => integer 5468024
        "stop_time" => float 1455040307.8162
        "stop_memory" => integer 5468552
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8163
        "start_memory" => integer 5472088
        "stop_time" => float 1455040307.8163
        "stop_memory" => integer 5472712
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8168
        "start_memory" => integer 5482784
        "stop_time" => float 1455040307.8169
        "stop_memory" => integer 5483368
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.817
        "start_memory" => integer 5486864
        "stop_time" => float 1455040307.817
        "stop_memory" => integer 5487456
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8177
        "start_memory" => integer 5531960
        "stop_time" => float 1455040307.8178
        "stop_memory" => integer 5532552
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8179
        "start_memory" => integer 5536144
        "stop_time" => float 1455040307.8179
        "stop_memory" => integer 5536736
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8184
        "start_memory" => integer 5557056
        "stop_time" => float 1455040307.8184
        "stop_memory" => integer 5557664
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8185
        "start_memory" => integer 5561192
        "stop_time" => float 1455040307.8185
        "stop_memory" => integer 5561784
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8194
        "start_memory" => integer 5610440
        "stop_time" => float 1455040307.8195
        "stop_memory" => integer 5611000
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8196
        "start_memory" => integer 5614504
        "stop_time" => float 1455040307.8196
        "stop_memory" => integer 5615096
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8201
        "start_memory" => integer 5637368
        "stop_time" => float 1455040307.8201
        "stop_memory" => integer 5637984
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8202
        "start_memory" => integer 5641464
        "stop_time" => float 1455040307.8203
        "stop_memory" => integer 5642032
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8212
        "start_memory" => integer 5714592
        "stop_time" => float 1455040307.8212
        "stop_memory" => integer 5715176
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8214
        "start_memory" => integer 5718704
        "stop_time" => float 1455040307.8214
        "stop_memory" => integer 5719288
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8253
        "start_memory" => integer 5738384
        "stop_time" => float 1455040307.8254
        "stop_memory" => integer 5738944
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8255
        "start_memory" => integer 5742512
        "stop_time" => float 1455040307.8255
        "stop_memory" => integer 5743192
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8262
        "start_memory" => integer 5802760
        "stop_time" => float 1455040307.8263
        "stop_memory" => integer 5803344
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8264
        "start_memory" => integer 5806888
        "stop_time" => float 1455040307.8264
        "stop_memory" => integer 5807472
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8272
        "start_memory" => integer 5876560
        "stop_time" => float 1455040307.8273
        "stop_memory" => integer 5877168
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8274
        "start_memory" => integer 5880768
        "stop_time" => float 1455040307.8275
        "stop_memory" => integer 5881360
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8282
        "start_memory" => integer 5898728
        "stop_time" => float 1455040307.8283
        "stop_memory" => integer 5899328
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8285
        "start_memory" => integer 5865192
        "stop_time" => float 1455040307.8286
        "stop_memory" => integer 5867512
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8291
        "start_memory" => integer 5903696
        "stop_time" => float 1455040307.8291
        "stop_memory" => integer 5905360
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1455040307.8291
        "start_memory" => integer 5904992
        "stop_time" => float 1455040307.8292
        "stop_memory" => integer 5906656
    )
)

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