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 1406549984.4942
        "start_memory" => integer 1691528
        "stop_time" => float 1406549984.8907
        "stop_memory" => integer 8471288
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.4942
        "start_memory" => integer 1694344
        "stop_time" => float 1406549984.4942
        "stop_memory" => integer 1694936
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.495
        "start_memory" => integer 1823336
        "stop_time" => float 1406549984.4951
        "stop_memory" => integer 1823896
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.4952
        "start_memory" => integer 1829328
        "stop_time" => float 1406549984.4952
        "stop_memory" => integer 1829912
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.4954
        "start_memory" => integer 1840608
        "stop_time" => float 1406549984.4954
        "stop_memory" => integer 1841152
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.4955
        "start_memory" => integer 1846032
        "stop_time" => float 1406549984.4956
        "stop_memory" => integer 1846608
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.4958
        "start_memory" => integer 1850008
        "stop_time" => float 1406549984.4959
        "stop_memory" => integer 1850592
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5005
        "start_memory" => integer 2434352
        "stop_time" => float 1406549984.5006
        "stop_memory" => integer 2434928
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5008
        "start_memory" => integer 2439800
        "stop_time" => float 1406549984.5009
        "stop_memory" => integer 2440440
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5016
        "start_memory" => integer 2586176
        "stop_time" => float 1406549984.5018
        "stop_memory" => integer 2586704
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5018
        "start_memory" => integer 2591352
        "stop_time" => float 1406549984.5019
        "stop_memory" => integer 2591920
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5022
        "start_memory" => integer 2623680
        "stop_time" => float 1406549984.5023
        "stop_memory" => integer 2624232
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5025
        "start_memory" => integer 2628872
        "stop_time" => float 1406549984.5025
        "stop_memory" => integer 2629440
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5034
        "start_memory" => integer 2796976
        "stop_time" => float 1406549984.5035
        "stop_memory" => integer 2797520
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5036
        "start_memory" => integer 2802160
        "stop_time" => float 1406549984.5038
        "stop_memory" => integer 2802728
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5041
        "start_memory" => integer 2857248
        "stop_time" => float 1406549984.5042
        "stop_memory" => integer 2857840
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5042
        "start_memory" => integer 2859760
        "stop_time" => float 1406549984.5042
        "stop_memory" => integer 2860448
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5043
        "start_memory" => integer 2865328
        "stop_time" => float 1406549984.5044
        "stop_memory" => integer 2865912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5045
        "start_memory" => integer 2868624
        "stop_time" => float 1406549984.5046
        "stop_memory" => integer 2869184
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5048
        "start_memory" => integer 2874056
        "stop_time" => float 1406549984.5049
        "stop_memory" => integer 2874640
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5053
        "start_memory" => integer 2924152
        "stop_time" => float 1406549984.5054
        "stop_memory" => integer 2924696
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5055
        "start_memory" => integer 2929368
        "stop_time" => float 1406549984.5058
        "stop_memory" => integer 2929944
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5064
        "start_memory" => integer 3026304
        "stop_time" => float 1406549984.5065
        "stop_memory" => integer 3026840
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5066
        "start_memory" => integer 3031480
        "stop_time" => float 1406549984.5067
        "stop_memory" => integer 3032048
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.5086
        "start_memory" => integer 3116616
        "stop_time" => float 1406549984.5087
        "stop_memory" => integer 3117208
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6158
        "start_memory" => integer 3156480
        "stop_time" => float 1406549984.6158
        "stop_memory" => integer 3157048
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.616
        "start_memory" => integer 3161712
        "stop_time" => float 1406549984.616
        "stop_memory" => integer 3162288
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6172
        "start_memory" => integer 3216232
        "stop_time" => float 1406549984.6172
        "stop_memory" => integer 3216784
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6173
        "start_memory" => integer 3221624
        "stop_time" => float 1406549984.6173
        "stop_memory" => integer 3222200
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6185
        "start_memory" => integer 3247232
        "stop_time" => float 1406549984.6185
        "stop_memory" => integer 3247784
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6186
        "start_memory" => integer 3252464
        "stop_time" => float 1406549984.6187
        "stop_memory" => integer 3253040
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6202
        "start_memory" => integer 3326192
        "stop_time" => float 1406549984.6202
        "stop_memory" => integer 3326776
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6205
        "start_memory" => integer 3344768
        "stop_time" => float 1406549984.6206
        "stop_memory" => integer 3345584
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6207
        "start_memory" => integer 3350448
        "stop_time" => float 1406549984.6207
        "stop_memory" => integer 3351032
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6218
        "start_memory" => integer 3416168
        "stop_time" => float 1406549984.6218
        "stop_memory" => integer 3416744
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6224
        "start_memory" => integer 3436144
        "stop_time" => float 1406549984.6224
        "stop_memory" => integer 3436720
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6233
        "start_memory" => integer 3485280
        "stop_time" => float 1406549984.6233
        "stop_memory" => integer 3485856
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6238
        "start_memory" => integer 3497040
        "stop_time" => float 1406549984.6238
        "stop_memory" => integer 3497616
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6244
        "start_memory" => integer 3515624
        "stop_time" => float 1406549984.6244
        "stop_memory" => integer 3516200
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.625
        "start_memory" => integer 3525872
        "stop_time" => float 1406549984.625
        "stop_memory" => integer 3526448
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6256
        "start_memory" => integer 3546568
        "stop_time" => float 1406549984.6257
        "stop_memory" => integer 3547144
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6263
        "start_memory" => integer 3567632
        "stop_time" => float 1406549984.6264
        "stop_memory" => integer 3568224
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6269
        "start_memory" => integer 3581472
        "stop_time" => float 1406549984.6269
        "stop_memory" => integer 3582056
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6274
        "start_memory" => integer 3594264
        "stop_time" => float 1406549984.6275
        "stop_memory" => integer 3594840
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6281
        "start_memory" => integer 3643136
        "stop_time" => float 1406549984.6282
        "stop_memory" => integer 3643696
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.629
        "start_memory" => integer 3682168
        "stop_time" => float 1406549984.629
        "stop_memory" => integer 3682752
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6296
        "start_memory" => integer 3702152
        "stop_time" => float 1406549984.6297
        "stop_memory" => integer 3702728
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6303
        "start_memory" => integer 3733904
        "stop_time" => float 1406549984.6303
        "stop_memory" => integer 3734480
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6309
        "start_memory" => integer 3753192
        "stop_time" => float 1406549984.631
        "stop_memory" => integer 3753736
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6312
        "start_memory" => integer 3758408
        "stop_time" => float 1406549984.6312
        "stop_memory" => integer 3758984
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6442
        "start_memory" => integer 3879664
        "stop_time" => float 1406549984.6443
        "stop_memory" => integer 3880216
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6445
        "start_memory" => integer 3885048
        "stop_time" => float 1406549984.6445
        "stop_memory" => integer 3885624
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6506
        "start_memory" => integer 3911104
        "stop_time" => float 1406549984.6506
        "stop_memory" => integer 3911688
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.651
        "start_memory" => integer 3916624
        "stop_time" => float 1406549984.6511
        "stop_memory" => integer 3917200
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6576
        "start_memory" => integer 3942776
        "stop_time" => float 1406549984.6577
        "stop_memory" => integer 3943336
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6579
        "start_memory" => integer 3948192
        "stop_time" => float 1406549984.658
        "stop_memory" => integer 3948760
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6591
        "start_memory" => integer 4036136
        "stop_time" => float 1406549984.6591
        "stop_memory" => integer 4036736
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6677
        "start_memory" => integer 4043680
        "stop_time" => float 1406549984.6678
        "stop_memory" => integer 4044232
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6681
        "start_memory" => integer 4049112
        "stop_time" => float 1406549984.6681
        "stop_memory" => integer 4049696
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6919
        "start_memory" => integer 4106536
        "stop_time" => float 1406549984.692
        "stop_memory" => integer 4107096
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6922
        "start_memory" => integer 4112016
        "stop_time" => float 1406549984.6922
        "stop_memory" => integer 4112600
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6925
        "start_memory" => integer 4135872
        "stop_time" => float 1406549984.6925
        "stop_memory" => integer 4136448
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6934
        "start_memory" => integer 4145560
        "stop_time" => float 1406549984.6935
        "stop_memory" => integer 4146120
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6936
        "start_memory" => integer 4150984
        "stop_time" => float 1406549984.6937
        "stop_memory" => integer 4151568
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6952
        "start_memory" => integer 4231016
        "stop_time" => float 1406549984.6953
        "stop_memory" => integer 4232088
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.6954
        "start_memory" => integer 4236968
        "stop_time" => float 1406549984.6954
        "stop_memory" => integer 4237552
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7046
        "start_memory" => integer 4263240
        "stop_time" => float 1406549984.7047
        "stop_memory" => integer 4263800
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7048
        "start_memory" => integer 4268664
        "stop_time" => float 1406549984.7049
        "stop_memory" => integer 4269248
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7061
        "start_memory" => integer 4290632
        "stop_time" => float 1406549984.7062
        "stop_memory" => integer 4291160
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7063
        "start_memory" => integer 4295808
        "stop_time" => float 1406549984.7064
        "stop_memory" => integer 4296384
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7105
        "start_memory" => integer 4307288
        "stop_time" => float 1406549984.7106
        "stop_memory" => integer 4307880
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7117
        "start_memory" => integer 4318680
        "stop_time" => float 1406549984.7118
        "stop_memory" => integer 4319256
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7123
        "start_memory" => integer 4357864
        "stop_time" => float 1406549984.7124
        "stop_memory" => integer 4358352
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.716
        "start_memory" => integer 4359528
        "stop_time" => float 1406549984.7161
        "stop_memory" => integer 4360104
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7195
        "start_memory" => integer 4389120
        "stop_time" => float 1406549984.7197
        "stop_memory" => integer 4389664
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7199
        "start_memory" => integer 4394520
        "stop_time" => float 1406549984.7201
        "stop_memory" => integer 4395096
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.727
        "start_memory" => integer 4409608
        "stop_time" => float 1406549984.7272
        "stop_memory" => integer 4410176
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7305
        "start_memory" => integer 4415016
        "stop_time" => float 1406549984.7307
        "stop_memory" => integer 4415552
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.731
        "start_memory" => integer 4420200
        "stop_time" => float 1406549984.7312
        "stop_memory" => integer 4420768
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7325
        "start_memory" => integer 4448552
        "stop_time" => float 1406549984.7326
        "stop_memory" => integer 4449128
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.733
        "start_memory" => integer 4453992
        "stop_time" => float 1406549984.733
        "stop_memory" => integer 4454576
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7378
        "start_memory" => integer 4574632
        "stop_time" => float 1406549984.738
        "stop_memory" => integer 4575208
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7381
        "start_memory" => integer 4580160
        "stop_time" => float 1406549984.7381
        "stop_memory" => integer 4580752
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7383
        "start_memory" => integer 4585912
        "stop_time" => float 1406549984.7383
        "stop_memory" => integer 4586464
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7394
        "start_memory" => integer 4605904
        "stop_time" => float 1406549984.7394
        "stop_memory" => integer 4606496
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7397
        "start_memory" => integer 4611464
        "stop_time" => float 1406549984.7402
        "stop_memory" => integer 4612048
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7422
        "start_memory" => integer 4618000
        "stop_time" => float 1406549984.7423
        "stop_memory" => integer 4618552
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7424
        "start_memory" => integer 4623424
        "stop_time" => float 1406549984.7424
        "stop_memory" => integer 4624000
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7445
        "start_memory" => integer 4755872
        "stop_time" => float 1406549984.7445
        "stop_memory" => integer 4756448
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7446
        "start_memory" => integer 4761408
        "stop_time" => float 1406549984.7447
        "stop_memory" => integer 4762000
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7451
        "start_memory" => integer 4782680
        "stop_time" => float 1406549984.7451
        "stop_memory" => integer 4783248
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7452
        "start_memory" => integer 4788136
        "stop_time" => float 1406549984.7453
        "stop_memory" => integer 4788712
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7466
        "start_memory" => integer 4850744
        "stop_time" => float 1406549984.7466
        "stop_memory" => integer 4851304
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7468
        "start_memory" => integer 4856176
        "stop_time" => float 1406549984.7469
        "stop_memory" => integer 4856760
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7481
        "start_memory" => integer 4914976
        "stop_time" => float 1406549984.7481
        "stop_memory" => integer 4915536
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7482
        "start_memory" => integer 4920400
        "stop_time" => float 1406549984.7483
        "stop_memory" => integer 4920984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7495
        "start_memory" => integer 4963560
        "stop_time" => float 1406549984.7495
        "stop_memory" => integer 4964136
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7496
        "start_memory" => integer 4969104
        "stop_time" => float 1406549984.7497
        "stop_memory" => integer 4969696
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7512
        "start_memory" => integer 5019640
        "stop_time" => float 1406549984.7512
        "stop_memory" => integer 5020224
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7514
        "start_memory" => integer 5026312
        "stop_time" => float 1406549984.7515
        "stop_memory" => integer 5026912
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7518
        "start_memory" => integer 5046560
        "stop_time" => float 1406549984.752
        "stop_memory" => integer 5047136
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7522
        "start_memory" => integer 5053208
        "stop_time" => float 1406549984.7522
        "stop_memory" => integer 5053808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.754
        "start_memory" => integer 5116768
        "stop_time" => float 1406549984.7541
        "stop_memory" => integer 5117344
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7543
        "start_memory" => integer 5122408
        "stop_time" => float 1406549984.7543
        "stop_memory" => integer 5123008
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7555
        "start_memory" => integer 5170584
        "stop_time" => float 1406549984.7555
        "stop_memory" => integer 5171160
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7557
        "start_memory" => integer 5176216
        "stop_time" => float 1406549984.7557
        "stop_memory" => integer 5176816
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7567
        "start_memory" => integer 5208888
        "stop_time" => float 1406549984.7568
        "stop_memory" => integer 5209464
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7569
        "start_memory" => integer 5214528
        "stop_time" => float 1406549984.757
        "stop_memory" => integer 5215128
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7586
        "start_memory" => integer 5314928
        "stop_time" => float 1406549984.7587
        "stop_memory" => integer 5315504
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7588
        "start_memory" => integer 5320568
        "stop_time" => float 1406549984.7589
        "stop_memory" => integer 5321168
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7614
        "start_memory" => integer 5369056
        "stop_time" => float 1406549984.7614
        "stop_memory" => integer 5369616
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7616
        "start_memory" => integer 5374584
        "stop_time" => float 1406549984.7616
        "stop_memory" => integer 5375176
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7626
        "start_memory" => integer 5398304
        "stop_time" => float 1406549984.7626
        "stop_memory" => integer 5398824
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7628
        "start_memory" => integer 5403464
        "stop_time" => float 1406549984.7629
        "stop_memory" => integer 5404032
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7645
        "start_memory" => integer 5513128
        "stop_time" => float 1406549984.7647
        "stop_memory" => integer 5513688
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7649
        "start_memory" => integer 5518360
        "stop_time" => float 1406549984.7649
        "stop_memory" => integer 5518936
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7713
        "start_memory" => integer 5538688
        "stop_time" => float 1406549984.7715
        "stop_memory" => integer 5539224
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7716
        "start_memory" => integer 5543880
        "stop_time" => float 1406549984.7718
        "stop_memory" => integer 5544448
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7753
        "start_memory" => integer 5581840
        "stop_time" => float 1406549984.7754
        "stop_memory" => integer 5582384
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7755
        "start_memory" => integer 5587024
        "stop_time" => float 1406549984.7757
        "stop_memory" => integer 5587592
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7768
        "start_memory" => integer 5629920
        "stop_time" => float 1406549984.7769
        "stop_memory" => integer 5630464
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.777
        "start_memory" => integer 5635104
        "stop_time" => float 1406549984.7771
        "stop_memory" => integer 5635696
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7778
        "start_memory" => integer 5665040
        "stop_time" => float 1406549984.7778
        "stop_memory" => integer 5665584
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7779
        "start_memory" => integer 5670224
        "stop_time" => float 1406549984.778
        "stop_memory" => integer 5670792
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7794
        "start_memory" => integer 5745784
        "stop_time" => float 1406549984.7795
        "stop_memory" => integer 5746328
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7796
        "start_memory" => integer 5750984
        "stop_time" => float 1406549984.7797
        "stop_memory" => integer 5751552
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7829
        "start_memory" => integer 5773680
        "stop_time" => float 1406549984.7831
        "stop_memory" => integer 5774224
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7833
        "start_memory" => integer 5778864
        "stop_time" => float 1406549984.7833
        "stop_memory" => integer 5779432
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7855
        "start_memory" => integer 5800264
        "stop_time" => float 1406549984.7856
        "stop_memory" => integer 5801848
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7857
        "start_memory" => integer 5806536
        "stop_time" => float 1406549984.7858
        "stop_memory" => integer 5807112
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7877
        "start_memory" => integer 5934496
        "stop_time" => float 1406549984.7878
        "stop_memory" => integer 5935048
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7879
        "start_memory" => integer 5939728
        "stop_time" => float 1406549984.788
        "stop_memory" => integer 5940304
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7903
        "start_memory" => integer 6107320
        "stop_time" => float 1406549984.7904
        "stop_memory" => integer 6107872
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7905
        "start_memory" => integer 6112560
        "stop_time" => float 1406549984.7906
        "stop_memory" => integer 6113120
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7939
        "start_memory" => integer 6168688
        "stop_time" => float 1406549984.7939
        "stop_memory" => integer 6169264
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.794
        "start_memory" => integer 6174144
        "stop_time" => float 1406549984.7941
        "stop_memory" => integer 6174720
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7953
        "start_memory" => integer 6214776
        "stop_time" => float 1406549984.7954
        "stop_memory" => integer 6215352
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7955
        "start_memory" => integer 6220304
        "stop_time" => float 1406549984.7955
        "stop_memory" => integer 6220896
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.797
        "start_memory" => integer 6246816
        "stop_time" => float 1406549984.797
        "stop_memory" => integer 6247384
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.7972
        "start_memory" => integer 6252256
        "stop_time" => float 1406549984.7972
        "stop_memory" => integer 6252832
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8002
        "start_memory" => integer 6282040
        "stop_time" => float 1406549984.8002
        "stop_memory" => integer 6282616
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.804
        "start_memory" => integer 6292104
        "stop_time" => float 1406549984.8041
        "stop_memory" => integer 6292680
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8131
        "start_memory" => integer 6328816
        "stop_time" => float 1406549984.8132
        "stop_memory" => integer 6329376
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8134
        "start_memory" => integer 6337848
        "stop_time" => float 1406549984.8135
        "stop_memory" => integer 6338336
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8149
        "start_memory" => integer 6338592
        "stop_time" => float 1406549984.815
        "stop_memory" => integer 6339160
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8165
        "start_memory" => integer 6345624
        "stop_time" => float 1406549984.8166
        "stop_memory" => integer 6346192
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8178
        "start_memory" => integer 6358000
        "stop_time" => float 1406549984.8178
        "stop_memory" => integer 6358584
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8184
        "start_memory" => integer 6367328
        "stop_time" => float 1406549984.8185
        "stop_memory" => integer 6367904
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.819
        "start_memory" => integer 6370984
        "stop_time" => float 1406549984.8191
        "stop_memory" => integer 6371544
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8194
        "start_memory" => integer 6379888
        "stop_time" => float 1406549984.8194
        "stop_memory" => integer 6380456
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8197
        "start_memory" => integer 6388760
        "stop_time" => float 1406549984.8197
        "stop_memory" => integer 6389296
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8198
        "start_memory" => integer 6393944
        "stop_time" => float 1406549984.8199
        "stop_memory" => integer 6394512
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8205
        "start_memory" => integer 6403816
        "stop_time" => float 1406549984.8206
        "stop_memory" => integer 6404392
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8207
        "start_memory" => integer 6413104
        "stop_time" => float 1406549984.8208
        "stop_memory" => integer 6413640
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8208
        "start_memory" => integer 6418288
        "stop_time" => float 1406549984.8209
        "stop_memory" => integer 6418856
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8232
        "start_memory" => integer 6769224
        "stop_time" => float 1406549984.8232
        "stop_memory" => integer 6769800
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8241
        "start_memory" => integer 6853216
        "stop_time" => float 1406549984.8242
        "stop_memory" => integer 6853800
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8249
        "start_memory" => integer 6896960
        "stop_time" => float 1406549984.825
        "stop_memory" => integer 6897504
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8256
        "start_memory" => integer 6926896
        "stop_time" => float 1406549984.8256
        "stop_memory" => integer 6927456
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8262
        "start_memory" => integer 6959360
        "stop_time" => float 1406549984.8263
        "stop_memory" => integer 6959936
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8272
        "start_memory" => integer 6990256
        "stop_time" => float 1406549984.8272
        "stop_memory" => integer 6990792
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8273
        "start_memory" => integer 6995440
        "stop_time" => float 1406549984.8274
        "stop_memory" => integer 6996008
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8283
        "start_memory" => integer 7007008
        "stop_time" => float 1406549984.8284
        "stop_memory" => integer 7007568
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8285
        "start_memory" => integer 7012264
        "stop_time" => float 1406549984.8286
        "stop_memory" => integer 7012840
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8296
        "start_memory" => integer 7055624
        "stop_time" => float 1406549984.8297
        "stop_memory" => integer 7056176
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8298
        "start_memory" => integer 7060848
        "stop_time" => float 1406549984.8298
        "stop_memory" => integer 7061424
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8306
        "start_memory" => integer 7075200
        "stop_time" => float 1406549984.8307
        "stop_memory" => integer 7075768
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8308
        "start_memory" => integer 7080640
        "stop_time" => float 1406549984.8309
        "stop_memory" => integer 7081224
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8313
        "start_memory" => integer 7096920
        "stop_time" => float 1406549984.8314
        "stop_memory" => integer 7097480
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8315
        "start_memory" => integer 7102368
        "stop_time" => float 1406549984.8316
        "stop_memory" => integer 7102952
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.832
        "start_memory" => integer 7121032
        "stop_time" => float 1406549984.832
        "stop_memory" => integer 7121608
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8321
        "start_memory" => integer 7126600
        "stop_time" => float 1406549984.8322
        "stop_memory" => integer 7127192
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8324
        "start_memory" => integer 7132640
        "stop_time" => float 1406549984.8324
        "stop_memory" => integer 7133192
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8325
        "start_memory" => integer 7138072
        "stop_time" => float 1406549984.8326
        "stop_memory" => integer 7138656
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8328
        "start_memory" => integer 7147376
        "stop_time" => float 1406549984.8328
        "stop_memory" => integer 7147936
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.833
        "start_memory" => integer 7152808
        "stop_time" => float 1406549984.833
        "stop_memory" => integer 7153392
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8342
        "start_memory" => integer 7250984
        "stop_time" => float 1406549984.8342
        "stop_memory" => integer 7251560
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8343
        "start_memory" => integer 7256544
        "stop_time" => float 1406549984.8344
        "stop_memory" => integer 7257136
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8354
        "start_memory" => integer 7275976
        "stop_time" => float 1406549984.8355
        "stop_memory" => integer 7276560
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8356
        "start_memory" => integer 7281592
        "stop_time" => float 1406549984.8356
        "stop_memory" => integer 7282176
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8368
        "start_memory" => integer 7299000
        "stop_time" => float 1406549984.8369
        "stop_memory" => integer 7299568
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.837
        "start_memory" => integer 7304512
        "stop_time" => float 1406549984.8371
        "stop_memory" => integer 7305104
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8381
        "start_memory" => integer 7323864
        "stop_time" => float 1406549984.8382
        "stop_memory" => integer 7324416
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8383
        "start_memory" => integer 7329280
        "stop_time" => float 1406549984.8384
        "stop_memory" => integer 7329864
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8386
        "start_memory" => integer 7337240
        "stop_time" => float 1406549984.8387
        "stop_memory" => integer 7337800
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8388
        "start_memory" => integer 7342672
        "stop_time" => float 1406549984.8388
        "stop_memory" => integer 7343256
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8399
        "start_memory" => integer 7356448
        "stop_time" => float 1406549984.84
        "stop_memory" => integer 7357024
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8401
        "start_memory" => integer 7361976
        "stop_time" => float 1406549984.8402
        "stop_memory" => integer 7362568
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.841
        "start_memory" => integer 7367248
        "stop_time" => float 1406549984.8411
        "stop_memory" => integer 7367800
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8413
        "start_memory" => integer 7372680
        "stop_time" => float 1406549984.8414
        "stop_memory" => integer 7373264
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8422
        "start_memory" => integer 7388552
        "stop_time" => float 1406549984.8423
        "stop_memory" => integer 7389112
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8425
        "start_memory" => integer 7393992
        "stop_time" => float 1406549984.8426
        "stop_memory" => integer 7394576
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8434
        "start_memory" => integer 7432560
        "stop_time" => float 1406549984.8435
        "stop_memory" => integer 7433136
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8437
        "start_memory" => integer 7438096
        "stop_time" => float 1406549984.8438
        "stop_memory" => integer 7438688
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8458
        "start_memory" => integer 7452416
        "stop_time" => float 1406549984.8458
        "stop_memory" => integer 7452984
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.846
        "start_memory" => integer 7457952
        "stop_time" => float 1406549984.8461
        "stop_memory" => integer 7458544
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.848
        "start_memory" => integer 7468880
        "stop_time" => float 1406549984.848
        "stop_memory" => integer 7469448
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8482
        "start_memory" => integer 7474392
        "stop_time" => float 1406549984.8482
        "stop_memory" => integer 7474984
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.849
        "start_memory" => integer 7495344
        "stop_time" => float 1406549984.849
        "stop_memory" => integer 7495912
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8491
        "start_memory" => integer 7500880
        "stop_time" => float 1406549984.8492
        "stop_memory" => integer 7501472
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8499
        "start_memory" => integer 7520800
        "stop_time" => float 1406549984.85
        "stop_memory" => integer 7521368
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8501
        "start_memory" => integer 7526384
        "stop_time" => float 1406549984.8501
        "stop_memory" => integer 7526976
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8509
        "start_memory" => integer 7544216
        "stop_time" => float 1406549984.851
        "stop_memory" => integer 7544784
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8511
        "start_memory" => integer 7549752
        "stop_time" => float 1406549984.8512
        "stop_memory" => integer 7550344
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8518
        "start_memory" => integer 7568680
        "stop_time" => float 1406549984.852
        "stop_memory" => integer 7569248
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8521
        "start_memory" => integer 7574200
        "stop_time" => float 1406549984.8521
        "stop_memory" => integer 7574792
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8527
        "start_memory" => integer 7594928
        "stop_time" => float 1406549984.8528
        "stop_memory" => integer 7595480
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8529
        "start_memory" => integer 7600360
        "stop_time" => float 1406549984.853
        "stop_memory" => integer 7600944
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8537
        "start_memory" => integer 7611312
        "stop_time" => float 1406549984.8538
        "stop_memory" => integer 7611872
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8539
        "start_memory" => integer 7616760
        "stop_time" => float 1406549984.8539
        "stop_memory" => integer 7617344
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8548
        "start_memory" => integer 7632840
        "stop_time" => float 1406549984.8549
        "stop_memory" => integer 7633416
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.855
        "start_memory" => integer 7638432
        "stop_time" => float 1406549984.855
        "stop_memory" => integer 7639024
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8563
        "start_memory" => integer 7650496
        "stop_time" => float 1406549984.8564
        "stop_memory" => integer 7651064
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8566
        "start_memory" => integer 7656080
        "stop_time" => float 1406549984.8567
        "stop_memory" => integer 7656672
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.858
        "start_memory" => integer 7666472
        "stop_time" => float 1406549984.8581
        "stop_memory" => integer 7667040
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8582
        "start_memory" => integer 7671976
        "stop_time" => float 1406549984.8582
        "stop_memory" => integer 7672552
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8589
        "start_memory" => integer 7678736
        "stop_time" => float 1406549984.859
        "stop_memory" => integer 7679336
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8591
        "start_memory" => integer 7684288
        "stop_time" => float 1406549984.8591
        "stop_memory" => integer 7684880
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8619
        "start_memory" => integer 7694736
        "stop_time" => float 1406549984.862
        "stop_memory" => integer 7695288
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8621
        "start_memory" => integer 7700168
        "stop_time" => float 1406549984.8621
        "stop_memory" => integer 7700752
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8648
        "start_memory" => integer 7775136
        "stop_time" => float 1406549984.8649
        "stop_memory" => integer 7775664
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.865
        "start_memory" => integer 7780312
        "stop_time" => float 1406549984.8651
        "stop_memory" => integer 7780880
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8704
        "start_memory" => integer 7806936
        "stop_time" => float 1406549984.8706
        "stop_memory" => integer 7807480
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8708
        "start_memory" => integer 7812136
        "stop_time" => float 1406549984.8709
        "stop_memory" => integer 7812704
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.872
        "start_memory" => integer 7844496
        "stop_time" => float 1406549984.8721
        "stop_memory" => integer 7845040
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8722
        "start_memory" => integer 7849688
        "stop_time" => float 1406549984.8723
        "stop_memory" => integer 7850256
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8736
        "start_memory" => integer 7916576
        "stop_time" => float 1406549984.8737
        "stop_memory" => integer 7917136
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8739
        "start_memory" => integer 7924040
        "stop_time" => float 1406549984.874
        "stop_memory" => integer 7924616
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8749
        "start_memory" => integer 7948064
        "stop_time" => float 1406549984.8749
        "stop_memory" => integer 7948648
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8751
        "start_memory" => integer 7955616
        "stop_time" => float 1406549984.8751
        "stop_memory" => integer 7956208
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.877
        "start_memory" => integer 8026872
        "stop_time" => float 1406549984.8771
        "stop_memory" => integer 8027408
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8772
        "start_memory" => integer 8032256
        "stop_time" => float 1406549984.8773
        "stop_memory" => integer 8032856
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.878
        "start_memory" => integer 8060592
        "stop_time" => float 1406549984.8781
        "stop_memory" => integer 8061128
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8782
        "start_memory" => integer 8065768
        "stop_time" => float 1406549984.8783
        "stop_memory" => integer 8066336
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8795
        "start_memory" => integer 8187208
        "stop_time" => float 1406549984.8795
        "stop_memory" => integer 8187752
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8796
        "start_memory" => integer 8192424
        "stop_time" => float 1406549984.8797
        "stop_memory" => integer 8192992
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8853
        "start_memory" => integer 8231720
        "stop_time" => float 1406549984.8854
        "stop_memory" => integer 8232264
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8855
        "start_memory" => integer 8236920
        "stop_time" => float 1406549984.8856
        "stop_memory" => integer 8237488
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8881
        "start_memory" => integer 8478408
        "stop_time" => float 1406549984.8882
        "stop_memory" => integer 8478984
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8883
        "start_memory" => integer 8483920
        "stop_time" => float 1406549984.8884
        "stop_memory" => integer 8484504
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8898
        "start_memory" => integer 8502520
        "stop_time" => float 1406549984.8898
        "stop_memory" => integer 8503096
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406549984.8905
        "start_memory" => integer 8469792
        "stop_time" => float 1406549984.8905
        "stop_memory" => integer 8471904
    )
)

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