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-2010 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(242) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1414302916.8178
        "start_memory" => integer 1695736
        "stop_time" => float 1414302917.0596
        "stop_memory" => integer 8468544
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8179
        "start_memory" => integer 1698552
        "stop_time" => float 1414302916.8179
        "stop_memory" => integer 1699144
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8184
        "start_memory" => integer 1827536
        "stop_time" => float 1414302916.8185
        "stop_memory" => integer 1828096
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8186
        "start_memory" => integer 1833528
        "stop_time" => float 1414302916.8186
        "stop_memory" => integer 1834112
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8188
        "start_memory" => integer 1844808
        "stop_time" => float 1414302916.8189
        "stop_memory" => integer 1845352
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8189
        "start_memory" => integer 1850232
        "stop_time" => float 1414302916.819
        "stop_memory" => integer 1850808
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8191
        "start_memory" => integer 1854192
        "stop_time" => float 1414302916.8192
        "stop_memory" => integer 1854776
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8218
        "start_memory" => integer 2438648
        "stop_time" => float 1414302916.8219
        "stop_memory" => integer 2439224
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8219
        "start_memory" => integer 2444096
        "stop_time" => float 1414302916.822
        "stop_memory" => integer 2444736
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8224
        "start_memory" => integer 2590472
        "stop_time" => float 1414302916.8224
        "stop_memory" => integer 2591000
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8225
        "start_memory" => integer 2595648
        "stop_time" => float 1414302916.8225
        "stop_memory" => integer 2596216
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8228
        "start_memory" => integer 2627976
        "stop_time" => float 1414302916.8229
        "stop_memory" => integer 2628528
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.823
        "start_memory" => integer 2633168
        "stop_time" => float 1414302916.823
        "stop_memory" => integer 2633736
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8238
        "start_memory" => integer 2800120
        "stop_time" => float 1414302916.8239
        "stop_memory" => integer 2800664
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.824
        "start_memory" => integer 2805304
        "stop_time" => float 1414302916.824
        "stop_memory" => integer 2805872
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8244
        "start_memory" => integer 2860392
        "stop_time" => float 1414302916.8244
        "stop_memory" => integer 2860984
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8245
        "start_memory" => integer 2862904
        "stop_time" => float 1414302916.8245
        "stop_memory" => integer 2863592
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8246
        "start_memory" => integer 2868472
        "stop_time" => float 1414302916.8247
        "stop_memory" => integer 2869056
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8248
        "start_memory" => integer 2871768
        "stop_time" => float 1414302916.8249
        "stop_memory" => integer 2872328
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8249
        "start_memory" => integer 2877208
        "stop_time" => float 1414302916.825
        "stop_memory" => integer 2877792
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8252
        "start_memory" => integer 2927288
        "stop_time" => float 1414302916.8253
        "stop_memory" => integer 2927832
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8254
        "start_memory" => integer 2932504
        "stop_time" => float 1414302916.8254
        "stop_memory" => integer 2933080
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8259
        "start_memory" => integer 3029440
        "stop_time" => float 1414302916.826
        "stop_memory" => integer 3029976
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8261
        "start_memory" => integer 3034616
        "stop_time" => float 1414302916.8261
        "stop_memory" => integer 3035184
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8276
        "start_memory" => integer 3117760
        "stop_time" => float 1414302916.8277
        "stop_memory" => integer 3118352
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8956
        "start_memory" => integer 3157656
        "stop_time" => float 1414302916.8956
        "stop_memory" => integer 3158216
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8957
        "start_memory" => integer 3162880
        "stop_time" => float 1414302916.8957
        "stop_memory" => integer 3163456
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8965
        "start_memory" => integer 3217376
        "stop_time" => float 1414302916.8966
        "stop_memory" => integer 3217928
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8966
        "start_memory" => integer 3222768
        "stop_time" => float 1414302916.8967
        "stop_memory" => integer 3223344
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8973
        "start_memory" => integer 3248400
        "stop_time" => float 1414302916.8973
        "stop_memory" => integer 3248952
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8974
        "start_memory" => integer 3253648
        "stop_time" => float 1414302916.8974
        "stop_memory" => integer 3254224
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8981
        "start_memory" => integer 3327328
        "stop_time" => float 1414302916.8981
        "stop_memory" => integer 3327912
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8983
        "start_memory" => integer 3345904
        "stop_time" => float 1414302916.8983
        "stop_memory" => integer 3346720
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8984
        "start_memory" => integer 3351584
        "stop_time" => float 1414302916.8984
        "stop_memory" => integer 3352168
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.899
        "start_memory" => integer 3417304
        "stop_time" => float 1414302916.899
        "stop_memory" => integer 3417880
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8992
        "start_memory" => integer 3437280
        "stop_time" => float 1414302916.8993
        "stop_memory" => integer 3437856
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8996
        "start_memory" => integer 3485896
        "stop_time" => float 1414302916.8996
        "stop_memory" => integer 3486496
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.8999
        "start_memory" => integer 3498200
        "stop_time" => float 1414302916.8999
        "stop_memory" => integer 3498776
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9001
        "start_memory" => integer 3516792
        "stop_time" => float 1414302916.9002
        "stop_memory" => integer 3517368
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9004
        "start_memory" => integer 3527040
        "stop_time" => float 1414302916.9004
        "stop_memory" => integer 3527616
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9007
        "start_memory" => integer 3547744
        "stop_time" => float 1414302916.9008
        "stop_memory" => integer 3548320
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.901
        "start_memory" => integer 3568800
        "stop_time" => float 1414302916.901
        "stop_memory" => integer 3569392
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9012
        "start_memory" => integer 3582640
        "stop_time" => float 1414302916.9013
        "stop_memory" => integer 3583208
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9015
        "start_memory" => integer 3595416
        "stop_time" => float 1414302916.9015
        "stop_memory" => integer 3595992
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9018
        "start_memory" => integer 3644264
        "stop_time" => float 1414302916.9018
        "stop_memory" => integer 3644824
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9021
        "start_memory" => integer 3683296
        "stop_time" => float 1414302916.9021
        "stop_memory" => integer 3683880
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9024
        "start_memory" => integer 3703280
        "stop_time" => float 1414302916.9024
        "stop_memory" => integer 3703856
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9028
        "start_memory" => integer 3735032
        "stop_time" => float 1414302916.9028
        "stop_memory" => integer 3735608
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.903
        "start_memory" => integer 3754320
        "stop_time" => float 1414302916.903
        "stop_memory" => integer 3754864
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9031
        "start_memory" => integer 3759536
        "stop_time" => float 1414302916.9032
        "stop_memory" => integer 3760112
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9116
        "start_memory" => integer 3880816
        "stop_time" => float 1414302916.9116
        "stop_memory" => integer 3881368
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9117
        "start_memory" => integer 3886200
        "stop_time" => float 1414302916.9117
        "stop_memory" => integer 3886776
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9154
        "start_memory" => integer 3912256
        "stop_time" => float 1414302916.9155
        "stop_memory" => integer 3912840
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9155
        "start_memory" => integer 3917776
        "stop_time" => float 1414302916.9156
        "stop_memory" => integer 3918352
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9194
        "start_memory" => integer 3943912
        "stop_time" => float 1414302916.9195
        "stop_memory" => integer 3944472
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9196
        "start_memory" => integer 3949328
        "stop_time" => float 1414302916.9196
        "stop_memory" => integer 3949896
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9201
        "start_memory" => integer 4037224
        "stop_time" => float 1414302916.9201
        "stop_memory" => integer 4037824
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.925
        "start_memory" => integer 4044768
        "stop_time" => float 1414302916.925
        "stop_memory" => integer 4045320
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9251
        "start_memory" => integer 4050200
        "stop_time" => float 1414302916.9252
        "stop_memory" => integer 4050784
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9378
        "start_memory" => integer 4107624
        "stop_time" => float 1414302916.9379
        "stop_memory" => integer 4108184
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.938
        "start_memory" => integer 4113104
        "stop_time" => float 1414302916.9381
        "stop_memory" => integer 4113688
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9382
        "start_memory" => integer 4136976
        "stop_time" => float 1414302916.9383
        "stop_memory" => integer 4137552
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9389
        "start_memory" => integer 4146656
        "stop_time" => float 1414302916.9389
        "stop_memory" => integer 4147216
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.939
        "start_memory" => integer 4152080
        "stop_time" => float 1414302916.939
        "stop_memory" => integer 4152664
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9399
        "start_memory" => integer 4232120
        "stop_time" => float 1414302916.9399
        "stop_memory" => integer 4233192
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.94
        "start_memory" => integer 4238096
        "stop_time" => float 1414302916.94
        "stop_memory" => integer 4238680
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9445
        "start_memory" => integer 4264360
        "stop_time" => float 1414302916.9445
        "stop_memory" => integer 4264920
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9446
        "start_memory" => integer 4269784
        "stop_time" => float 1414302916.9446
        "stop_memory" => integer 4270368
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9453
        "start_memory" => integer 4291800
        "stop_time" => float 1414302916.9454
        "stop_memory" => integer 4292328
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9455
        "start_memory" => integer 4296976
        "stop_time" => float 1414302916.9456
        "stop_memory" => integer 4297544
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9478
        "start_memory" => integer 4308448
        "stop_time" => float 1414302916.9479
        "stop_memory" => integer 4309040
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9484
        "start_memory" => integer 4319824
        "stop_time" => float 1414302916.9484
        "stop_memory" => integer 4320400
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9487
        "start_memory" => integer 4359024
        "stop_time" => float 1414302916.9487
        "stop_memory" => integer 4359512
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9502
        "start_memory" => integer 4360688
        "stop_time" => float 1414302916.9503
        "stop_memory" => integer 4361264
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9521
        "start_memory" => integer 4390296
        "stop_time" => float 1414302916.9521
        "stop_memory" => integer 4390840
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9522
        "start_memory" => integer 4395720
        "stop_time" => float 1414302916.9523
        "stop_memory" => integer 4396296
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9552
        "start_memory" => integer 4410816
        "stop_time" => float 1414302916.9553
        "stop_memory" => integer 4411384
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9567
        "start_memory" => integer 4416224
        "stop_time" => float 1414302916.9567
        "stop_memory" => integer 4416760
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9568
        "start_memory" => integer 4421408
        "stop_time" => float 1414302916.9569
        "stop_memory" => integer 4421976
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9574
        "start_memory" => integer 4449776
        "stop_time" => float 1414302916.9575
        "stop_memory" => integer 4450352
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9576
        "start_memory" => integer 4455192
        "stop_time" => float 1414302916.9576
        "stop_memory" => integer 4455776
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9597
        "start_memory" => integer 4575848
        "stop_time" => float 1414302916.9598
        "stop_memory" => integer 4576424
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9599
        "start_memory" => integer 4581376
        "stop_time" => float 1414302916.9599
        "stop_memory" => integer 4581968
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.96
        "start_memory" => integer 4587136
        "stop_time" => float 1414302916.96
        "stop_memory" => integer 4587672
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9605
        "start_memory" => integer 4607128
        "stop_time" => float 1414302916.9606
        "stop_memory" => integer 4607720
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9607
        "start_memory" => integer 4612680
        "stop_time" => float 1414302916.9607
        "stop_memory" => integer 4613272
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.962
        "start_memory" => integer 4619232
        "stop_time" => float 1414302916.9621
        "stop_memory" => integer 4619784
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9622
        "start_memory" => integer 4624648
        "stop_time" => float 1414302916.9622
        "stop_memory" => integer 4625232
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9631
        "start_memory" => integer 4757112
        "stop_time" => float 1414302916.9632
        "stop_memory" => integer 4757688
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9633
        "start_memory" => integer 4762648
        "stop_time" => float 1414302916.9633
        "stop_memory" => integer 4763264
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9635
        "start_memory" => integer 4783944
        "stop_time" => float 1414302916.9636
        "stop_memory" => integer 4784512
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9636
        "start_memory" => integer 4789424
        "stop_time" => float 1414302916.9637
        "stop_memory" => integer 4790000
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9645
        "start_memory" => integer 4852016
        "stop_time" => float 1414302916.9645
        "stop_memory" => integer 4852576
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9646
        "start_memory" => integer 4857448
        "stop_time" => float 1414302916.9646
        "stop_memory" => integer 4858032
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9653
        "start_memory" => integer 4916224
        "stop_time" => float 1414302916.9654
        "stop_memory" => integer 4916784
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9655
        "start_memory" => integer 4921648
        "stop_time" => float 1414302916.9655
        "stop_memory" => integer 4922232
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9663
        "start_memory" => integer 4964792
        "stop_time" => float 1414302916.9664
        "stop_memory" => integer 4965368
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9664
        "start_memory" => integer 4970336
        "stop_time" => float 1414302916.9665
        "stop_memory" => integer 4970936
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9673
        "start_memory" => integer 5020880
        "stop_time" => float 1414302916.9674
        "stop_memory" => integer 5021456
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9675
        "start_memory" => integer 5026520
        "stop_time" => float 1414302916.9675
        "stop_memory" => integer 5027120
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9678
        "start_memory" => integer 5047808
        "stop_time" => float 1414302916.9678
        "stop_memory" => integer 5048384
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9679
        "start_memory" => integer 5054456
        "stop_time" => float 1414302916.9679
        "stop_memory" => integer 5055056
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9687
        "start_memory" => integer 5118024
        "stop_time" => float 1414302916.9688
        "stop_memory" => integer 5118600
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9688
        "start_memory" => integer 5123664
        "stop_time" => float 1414302916.9689
        "stop_memory" => integer 5124264
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9698
        "start_memory" => integer 5171824
        "stop_time" => float 1414302916.9698
        "stop_memory" => integer 5172400
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9699
        "start_memory" => integer 5177456
        "stop_time" => float 1414302916.9699
        "stop_memory" => integer 5178056
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9706
        "start_memory" => integer 5210120
        "stop_time" => float 1414302916.9707
        "stop_memory" => integer 5210696
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9707
        "start_memory" => integer 5215760
        "stop_time" => float 1414302916.9708
        "stop_memory" => integer 5216360
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9719
        "start_memory" => integer 5316184
        "stop_time" => float 1414302916.972
        "stop_memory" => integer 5316760
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.972
        "start_memory" => integer 5321824
        "stop_time" => float 1414302916.9721
        "stop_memory" => integer 5322424
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.974
        "start_memory" => integer 5370312
        "stop_time" => float 1414302916.9741
        "stop_memory" => integer 5370872
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9742
        "start_memory" => integer 5375840
        "stop_time" => float 1414302916.9742
        "stop_memory" => integer 5376432
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.975
        "start_memory" => integer 5399560
        "stop_time" => float 1414302916.975
        "stop_memory" => integer 5400080
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9751
        "start_memory" => integer 5404720
        "stop_time" => float 1414302916.9752
        "stop_memory" => integer 5405288
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9762
        "start_memory" => integer 5514344
        "stop_time" => float 1414302916.9762
        "stop_memory" => integer 5514904
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9763
        "start_memory" => integer 5519576
        "stop_time" => float 1414302916.9763
        "stop_memory" => integer 5520152
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9799
        "start_memory" => integer 5539904
        "stop_time" => float 1414302916.9799
        "stop_memory" => integer 5540440
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.98
        "start_memory" => integer 5545088
        "stop_time" => float 1414302916.9801
        "stop_memory" => integer 5545656
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9824
        "start_memory" => integer 5582288
        "stop_time" => float 1414302916.9825
        "stop_memory" => integer 5582832
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9825
        "start_memory" => integer 5587472
        "stop_time" => float 1414302916.9826
        "stop_memory" => integer 5588040
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9832
        "start_memory" => integer 5630408
        "stop_time" => float 1414302916.9833
        "stop_memory" => integer 5630952
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9833
        "start_memory" => integer 5635592
        "stop_time" => float 1414302916.9834
        "stop_memory" => integer 5636160
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.984
        "start_memory" => integer 5665504
        "stop_time" => float 1414302916.9841
        "stop_memory" => integer 5666048
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9842
        "start_memory" => integer 5670688
        "stop_time" => float 1414302916.9843
        "stop_memory" => integer 5671256
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9854
        "start_memory" => integer 5746256
        "stop_time" => float 1414302916.9856
        "stop_memory" => integer 5746800
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9858
        "start_memory" => integer 5751464
        "stop_time" => float 1414302916.9858
        "stop_memory" => integer 5752032
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9877
        "start_memory" => integer 5774176
        "stop_time" => float 1414302916.9878
        "stop_memory" => integer 5774720
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9879
        "start_memory" => integer 5779360
        "stop_time" => float 1414302916.9879
        "stop_memory" => integer 5779928
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9897
        "start_memory" => integer 5800784
        "stop_time" => float 1414302916.9897
        "stop_memory" => integer 5802368
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9898
        "start_memory" => integer 5807056
        "stop_time" => float 1414302916.9899
        "stop_memory" => integer 5807632
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.991
        "start_memory" => integer 5935032
        "stop_time" => float 1414302916.991
        "stop_memory" => integer 5935584
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9911
        "start_memory" => integer 5940264
        "stop_time" => float 1414302916.9912
        "stop_memory" => integer 5940840
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9926
        "start_memory" => integer 6107872
        "stop_time" => float 1414302916.9927
        "stop_memory" => integer 6108424
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9927
        "start_memory" => integer 6113112
        "stop_time" => float 1414302916.9928
        "stop_memory" => integer 6113672
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9949
        "start_memory" => integer 6169288
        "stop_time" => float 1414302916.9949
        "stop_memory" => integer 6169864
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.995
        "start_memory" => integer 6174768
        "stop_time" => float 1414302916.995
        "stop_memory" => integer 6175336
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9957
        "start_memory" => integer 6215392
        "stop_time" => float 1414302916.9958
        "stop_memory" => integer 6215968
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9959
        "start_memory" => integer 6220920
        "stop_time" => float 1414302916.9959
        "stop_memory" => integer 6221512
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.997
        "start_memory" => integer 6247448
        "stop_time" => float 1414302916.997
        "stop_memory" => integer 6248016
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9971
        "start_memory" => integer 6252888
        "stop_time" => float 1414302916.9972
        "stop_memory" => integer 6253464
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302916.9991
        "start_memory" => integer 6279360
        "stop_time" => float 1414302916.9991
        "stop_memory" => integer 6279936
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0012
        "start_memory" => integer 6289432
        "stop_time" => float 1414302917.0013
        "stop_memory" => integer 6290008
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0057
        "start_memory" => integer 6326128
        "stop_time" => float 1414302917.0058
        "stop_memory" => integer 6326688
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0059
        "start_memory" => integer 6335160
        "stop_time" => float 1414302917.0059
        "stop_memory" => integer 6335648
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0072
        "start_memory" => integer 6335904
        "stop_time" => float 1414302917.0072
        "stop_memory" => integer 6336472
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0084
        "start_memory" => integer 6342944
        "stop_time" => float 1414302917.0085
        "stop_memory" => integer 6343512
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0094
        "start_memory" => integer 6355320
        "stop_time" => float 1414302917.0094
        "stop_memory" => integer 6355904
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0098
        "start_memory" => integer 6364656
        "stop_time" => float 1414302917.0099
        "stop_memory" => integer 6365232
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0103
        "start_memory" => integer 6368312
        "stop_time" => float 1414302917.0104
        "stop_memory" => integer 6368872
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0107
        "start_memory" => integer 6377216
        "stop_time" => float 1414302917.0108
        "stop_memory" => integer 6377784
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.011
        "start_memory" => integer 6386088
        "stop_time" => float 1414302917.011
        "stop_memory" => integer 6386624
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0111
        "start_memory" => integer 6391272
        "stop_time" => float 1414302917.0111
        "stop_memory" => integer 6391840
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0117
        "start_memory" => integer 6401144
        "stop_time" => float 1414302917.0117
        "stop_memory" => integer 6401720
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0118
        "start_memory" => integer 6410416
        "stop_time" => float 1414302917.0118
        "stop_memory" => integer 6410952
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0119
        "start_memory" => integer 6415600
        "stop_time" => float 1414302917.0119
        "stop_memory" => integer 6416168
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0137
        "start_memory" => integer 6766568
        "stop_time" => float 1414302917.0137
        "stop_memory" => integer 6767144
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0144
        "start_memory" => integer 6850560
        "stop_time" => float 1414302917.0145
        "stop_memory" => integer 6851144
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0151
        "start_memory" => integer 6894304
        "stop_time" => float 1414302917.0151
        "stop_memory" => integer 6894848
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0156
        "start_memory" => integer 6924240
        "stop_time" => float 1414302917.0156
        "stop_memory" => integer 6924800
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0161
        "start_memory" => integer 6956704
        "stop_time" => float 1414302917.0162
        "stop_memory" => integer 6957280
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0167
        "start_memory" => integer 6987616
        "stop_time" => float 1414302917.0167
        "stop_memory" => integer 6988152
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0168
        "start_memory" => integer 6992800
        "stop_time" => float 1414302917.0169
        "stop_memory" => integer 6993368
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0177
        "start_memory" => integer 7004376
        "stop_time" => float 1414302917.0178
        "stop_memory" => integer 7004936
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0179
        "start_memory" => integer 7009632
        "stop_time" => float 1414302917.018
        "stop_memory" => integer 7010208
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0187
        "start_memory" => integer 7052992
        "stop_time" => float 1414302917.0188
        "stop_memory" => integer 7053544
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0189
        "start_memory" => integer 7058216
        "stop_time" => float 1414302917.0189
        "stop_memory" => integer 7058792
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0196
        "start_memory" => integer 7072568
        "stop_time" => float 1414302917.0196
        "stop_memory" => integer 7073136
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0198
        "start_memory" => integer 7078008
        "stop_time" => float 1414302917.0199
        "stop_memory" => integer 7078592
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0201
        "start_memory" => integer 7094288
        "stop_time" => float 1414302917.0202
        "stop_memory" => integer 7094848
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0203
        "start_memory" => integer 7099736
        "stop_time" => float 1414302917.0203
        "stop_memory" => integer 7100320
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0206
        "start_memory" => integer 7118400
        "stop_time" => float 1414302917.0206
        "stop_memory" => integer 7118976
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0207
        "start_memory" => integer 7123968
        "stop_time" => float 1414302917.0208
        "stop_memory" => integer 7124560
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.021
        "start_memory" => integer 7130008
        "stop_time" => float 1414302917.021
        "stop_memory" => integer 7130560
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0211
        "start_memory" => integer 7135440
        "stop_time" => float 1414302917.0211
        "stop_memory" => integer 7136024
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0212
        "start_memory" => integer 7144744
        "stop_time" => float 1414302917.0213
        "stop_memory" => integer 7145304
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0213
        "start_memory" => integer 7150176
        "stop_time" => float 1414302917.0214
        "stop_memory" => integer 7150760
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0225
        "start_memory" => integer 7248352
        "stop_time" => float 1414302917.0226
        "stop_memory" => integer 7248928
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0227
        "start_memory" => integer 7253912
        "stop_time" => float 1414302917.0227
        "stop_memory" => integer 7254504
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0233
        "start_memory" => integer 7273344
        "stop_time" => float 1414302917.0233
        "stop_memory" => integer 7273928
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0234
        "start_memory" => integer 7278960
        "stop_time" => float 1414302917.0235
        "stop_memory" => integer 7279544
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.024
        "start_memory" => integer 7296368
        "stop_time" => float 1414302917.0241
        "stop_memory" => integer 7296936
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0241
        "start_memory" => integer 7301880
        "stop_time" => float 1414302917.0242
        "stop_memory" => integer 7302472
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0247
        "start_memory" => integer 7321232
        "stop_time" => float 1414302917.0247
        "stop_memory" => integer 7321784
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0248
        "start_memory" => integer 7326648
        "stop_time" => float 1414302917.0249
        "stop_memory" => integer 7327232
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.025
        "start_memory" => integer 7334608
        "stop_time" => float 1414302917.025
        "stop_memory" => integer 7335168
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0251
        "start_memory" => integer 7340040
        "stop_time" => float 1414302917.0251
        "stop_memory" => integer 7340624
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0258
        "start_memory" => integer 7353816
        "stop_time" => float 1414302917.0258
        "stop_memory" => integer 7354392
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0259
        "start_memory" => integer 7359344
        "stop_time" => float 1414302917.0259
        "stop_memory" => integer 7359936
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0264
        "start_memory" => integer 7364616
        "stop_time" => float 1414302917.0264
        "stop_memory" => integer 7365168
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0265
        "start_memory" => integer 7370048
        "stop_time" => float 1414302917.0265
        "stop_memory" => integer 7370632
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0271
        "start_memory" => integer 7385920
        "stop_time" => float 1414302917.0271
        "stop_memory" => integer 7386480
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0272
        "start_memory" => integer 7391360
        "stop_time" => float 1414302917.0272
        "stop_memory" => integer 7391944
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.028
        "start_memory" => integer 7429928
        "stop_time" => float 1414302917.028
        "stop_memory" => integer 7430504
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0281
        "start_memory" => integer 7435464
        "stop_time" => float 1414302917.0281
        "stop_memory" => integer 7436056
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0295
        "start_memory" => integer 7449784
        "stop_time" => float 1414302917.0296
        "stop_memory" => integer 7450352
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0297
        "start_memory" => integer 7455320
        "stop_time" => float 1414302917.0298
        "stop_memory" => integer 7455912
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0312
        "start_memory" => integer 7466248
        "stop_time" => float 1414302917.0312
        "stop_memory" => integer 7466816
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0313
        "start_memory" => integer 7471760
        "stop_time" => float 1414302917.0314
        "stop_memory" => integer 7472352
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0319
        "start_memory" => integer 7492712
        "stop_time" => float 1414302917.0319
        "stop_memory" => integer 7493280
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.032
        "start_memory" => integer 7498248
        "stop_time" => float 1414302917.032
        "stop_memory" => integer 7498840
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0326
        "start_memory" => integer 7518168
        "stop_time" => float 1414302917.0327
        "stop_memory" => integer 7518736
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0328
        "start_memory" => integer 7523760
        "stop_time" => float 1414302917.0329
        "stop_memory" => integer 7524352
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0333
        "start_memory" => integer 7541568
        "stop_time" => float 1414302917.0334
        "stop_memory" => integer 7542136
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0335
        "start_memory" => integer 7547104
        "stop_time" => float 1414302917.0336
        "stop_memory" => integer 7547696
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.034
        "start_memory" => integer 7566032
        "stop_time" => float 1414302917.034
        "stop_memory" => integer 7566600
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0341
        "start_memory" => integer 7571552
        "stop_time" => float 1414302917.0342
        "stop_memory" => integer 7572144
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0347
        "start_memory" => integer 7592280
        "stop_time" => float 1414302917.0347
        "stop_memory" => integer 7592832
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0349
        "start_memory" => integer 7597712
        "stop_time" => float 1414302917.0349
        "stop_memory" => integer 7598296
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0354
        "start_memory" => integer 7608664
        "stop_time" => float 1414302917.0354
        "stop_memory" => integer 7609224
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0355
        "start_memory" => integer 7614112
        "stop_time" => float 1414302917.0355
        "stop_memory" => integer 7614696
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.036
        "start_memory" => integer 7630192
        "stop_time" => float 1414302917.036
        "stop_memory" => integer 7630768
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0361
        "start_memory" => integer 7635784
        "stop_time" => float 1414302917.0362
        "stop_memory" => integer 7636376
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0372
        "start_memory" => integer 7647848
        "stop_time" => float 1414302917.0373
        "stop_memory" => integer 7648416
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0374
        "start_memory" => integer 7653432
        "stop_time" => float 1414302917.0374
        "stop_memory" => integer 7654024
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0384
        "start_memory" => integer 7663816
        "stop_time" => float 1414302917.0385
        "stop_memory" => integer 7664384
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0386
        "start_memory" => integer 7669320
        "stop_time" => float 1414302917.0386
        "stop_memory" => integer 7669896
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0391
        "start_memory" => integer 7676088
        "stop_time" => float 1414302917.0391
        "stop_memory" => integer 7676664
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0392
        "start_memory" => integer 7681616
        "stop_time" => float 1414302917.0393
        "stop_memory" => integer 7682208
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0408
        "start_memory" => integer 7692040
        "stop_time" => float 1414302917.0409
        "stop_memory" => integer 7692592
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.041
        "start_memory" => integer 7697472
        "stop_time" => float 1414302917.041
        "stop_memory" => integer 7698056
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0426
        "start_memory" => integer 7772440
        "stop_time" => float 1414302917.0427
        "stop_memory" => integer 7772968
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0428
        "start_memory" => integer 7777616
        "stop_time" => float 1414302917.0428
        "stop_memory" => integer 7778184
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0462
        "start_memory" => integer 7804240
        "stop_time" => float 1414302917.0463
        "stop_memory" => integer 7804784
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0464
        "start_memory" => integer 7809440
        "stop_time" => float 1414302917.0464
        "stop_memory" => integer 7810008
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.047
        "start_memory" => integer 7841784
        "stop_time" => float 1414302917.047
        "stop_memory" => integer 7842328
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0471
        "start_memory" => integer 7846976
        "stop_time" => float 1414302917.0472
        "stop_memory" => integer 7847544
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0479
        "start_memory" => integer 7913840
        "stop_time" => float 1414302917.048
        "stop_memory" => integer 7914400
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0481
        "start_memory" => integer 7919256
        "stop_time" => float 1414302917.0481
        "stop_memory" => integer 7919832
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0487
        "start_memory" => integer 7943280
        "stop_time" => float 1414302917.0487
        "stop_memory" => integer 7943864
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0488
        "start_memory" => integer 7950832
        "stop_time" => float 1414302917.0489
        "stop_memory" => integer 7951424
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.05
        "start_memory" => integer 8024144
        "stop_time" => float 1414302917.0501
        "stop_memory" => integer 8024680
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0501
        "start_memory" => integer 8029544
        "stop_time" => float 1414302917.0502
        "stop_memory" => integer 8030120
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0507
        "start_memory" => integer 8057880
        "stop_time" => float 1414302917.0507
        "stop_memory" => integer 8058416
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0508
        "start_memory" => integer 8063072
        "stop_time" => float 1414302917.0509
        "stop_memory" => integer 8063640
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0519
        "start_memory" => integer 8184488
        "stop_time" => float 1414302917.0519
        "stop_memory" => integer 8185032
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.052
        "start_memory" => integer 8189704
        "stop_time" => float 1414302917.0521
        "stop_memory" => integer 8190272
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0564
        "start_memory" => integer 8229000
        "stop_time" => float 1414302917.0564
        "stop_memory" => integer 8229544
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0565
        "start_memory" => integer 8234200
        "stop_time" => float 1414302917.0566
        "stop_memory" => integer 8234768
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.058
        "start_memory" => integer 8475672
        "stop_time" => float 1414302917.0581
        "stop_memory" => integer 8476248
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0581
        "start_memory" => integer 8481184
        "stop_time" => float 1414302917.0582
        "stop_memory" => integer 8481768
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.059
        "start_memory" => integer 8499808
        "stop_time" => float 1414302917.059
        "stop_memory" => integer 8500384
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414302917.0594
        "start_memory" => integer 8467048
        "stop_time" => float 1414302917.0595
        "stop_memory" => integer 8469160
    )
)

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