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 1397972506.0009
        "start_memory" => integer 1691528
        "stop_time" => float 1397972506.3937
        "stop_memory" => integer 8471368
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0009
        "start_memory" => integer 1694344
        "stop_time" => float 1397972506.001
        "stop_memory" => integer 1694936
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0023
        "start_memory" => integer 1823336
        "stop_time" => float 1397972506.0024
        "stop_memory" => integer 1823896
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0025
        "start_memory" => integer 1829328
        "stop_time" => float 1397972506.0027
        "stop_memory" => integer 1829912
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0029
        "start_memory" => integer 1840608
        "stop_time" => float 1397972506.003
        "stop_memory" => integer 1841152
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0032
        "start_memory" => integer 1846032
        "stop_time" => float 1397972506.0033
        "stop_memory" => integer 1846608
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0035
        "start_memory" => integer 1850008
        "stop_time" => float 1397972506.0036
        "stop_memory" => integer 1850592
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0087
        "start_memory" => integer 2434352
        "stop_time" => float 1397972506.0089
        "stop_memory" => integer 2434928
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0091
        "start_memory" => integer 2439800
        "stop_time" => float 1397972506.0092
        "stop_memory" => integer 2440440
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0101
        "start_memory" => integer 2586176
        "stop_time" => float 1397972506.0102
        "stop_memory" => integer 2586704
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0103
        "start_memory" => integer 2591352
        "stop_time" => float 1397972506.0104
        "stop_memory" => integer 2591920
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0109
        "start_memory" => integer 2623680
        "stop_time" => float 1397972506.011
        "stop_memory" => integer 2624232
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0111
        "start_memory" => integer 2628872
        "stop_time" => float 1397972506.0112
        "stop_memory" => integer 2629440
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0125
        "start_memory" => integer 2796976
        "stop_time" => float 1397972506.0127
        "stop_memory" => integer 2797520
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0128
        "start_memory" => integer 2802160
        "stop_time" => float 1397972506.013
        "stop_memory" => integer 2802728
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0135
        "start_memory" => integer 2857248
        "stop_time" => float 1397972506.0136
        "stop_memory" => integer 2857840
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0137
        "start_memory" => integer 2859760
        "stop_time" => float 1397972506.0138
        "stop_memory" => integer 2860448
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0139
        "start_memory" => integer 2865328
        "stop_time" => float 1397972506.0141
        "stop_memory" => integer 2865912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0143
        "start_memory" => integer 2868624
        "stop_time" => float 1397972506.0144
        "stop_memory" => integer 2869184
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0145
        "start_memory" => integer 2874056
        "stop_time" => float 1397972506.0146
        "stop_memory" => integer 2874640
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0151
        "start_memory" => integer 2924152
        "stop_time" => float 1397972506.0152
        "stop_memory" => integer 2924696
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0153
        "start_memory" => integer 2929368
        "stop_time" => float 1397972506.0154
        "stop_memory" => integer 2929944
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0164
        "start_memory" => integer 3026304
        "stop_time" => float 1397972506.0166
        "stop_memory" => integer 3026840
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0167
        "start_memory" => integer 3031480
        "stop_time" => float 1397972506.0169
        "stop_memory" => integer 3032048
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.0195
        "start_memory" => integer 3116616
        "stop_time" => float 1397972506.0196
        "stop_memory" => integer 3117208
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1257
        "start_memory" => integer 3156496
        "stop_time" => float 1397972506.1258
        "stop_memory" => integer 3157064
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.126
        "start_memory" => integer 3161728
        "stop_time" => float 1397972506.126
        "stop_memory" => integer 3162304
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1277
        "start_memory" => integer 3216224
        "stop_time" => float 1397972506.1278
        "stop_memory" => integer 3216776
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1279
        "start_memory" => integer 3221616
        "stop_time" => float 1397972506.128
        "stop_memory" => integer 3222192
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.129
        "start_memory" => integer 3247248
        "stop_time" => float 1397972506.1291
        "stop_memory" => integer 3247800
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1292
        "start_memory" => integer 3252488
        "stop_time" => float 1397972506.1293
        "stop_memory" => integer 3253064
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1308
        "start_memory" => integer 3326176
        "stop_time" => float 1397972506.1309
        "stop_memory" => integer 3326760
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.131
        "start_memory" => integer 3344752
        "stop_time" => float 1397972506.1311
        "stop_memory" => integer 3345568
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1313
        "start_memory" => integer 3350432
        "stop_time" => float 1397972506.1313
        "stop_memory" => integer 3351016
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1323
        "start_memory" => integer 3416168
        "stop_time" => float 1397972506.1324
        "stop_memory" => integer 3416744
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1329
        "start_memory" => integer 3436160
        "stop_time" => float 1397972506.133
        "stop_memory" => integer 3436736
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1338
        "start_memory" => integer 3485288
        "stop_time" => float 1397972506.1339
        "stop_memory" => integer 3485864
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1343
        "start_memory" => integer 3497040
        "stop_time" => float 1397972506.1343
        "stop_memory" => integer 3497616
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1348
        "start_memory" => integer 3515616
        "stop_time" => float 1397972506.1349
        "stop_memory" => integer 3516192
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1352
        "start_memory" => integer 3525856
        "stop_time" => float 1397972506.1352
        "stop_memory" => integer 3526432
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1356
        "start_memory" => integer 3546536
        "stop_time" => float 1397972506.1357
        "stop_memory" => integer 3547112
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.136
        "start_memory" => integer 3567600
        "stop_time" => float 1397972506.136
        "stop_memory" => integer 3568192
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1365
        "start_memory" => integer 3581432
        "stop_time" => float 1397972506.1366
        "stop_memory" => integer 3582000
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1369
        "start_memory" => integer 3594216
        "stop_time" => float 1397972506.1369
        "stop_memory" => integer 3594792
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1374
        "start_memory" => integer 3643048
        "stop_time" => float 1397972506.1374
        "stop_memory" => integer 3643608
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1379
        "start_memory" => integer 3682080
        "stop_time" => float 1397972506.138
        "stop_memory" => integer 3682664
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1383
        "start_memory" => integer 3702064
        "stop_time" => float 1397972506.1384
        "stop_memory" => integer 3702640
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1388
        "start_memory" => integer 3733816
        "stop_time" => float 1397972506.1388
        "stop_memory" => integer 3734392
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1392
        "start_memory" => integer 3753104
        "stop_time" => float 1397972506.1392
        "stop_memory" => integer 3753648
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1394
        "start_memory" => integer 3758320
        "stop_time" => float 1397972506.1394
        "stop_memory" => integer 3758896
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1517
        "start_memory" => integer 3879592
        "stop_time" => float 1397972506.1518
        "stop_memory" => integer 3880144
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.152
        "start_memory" => integer 3884976
        "stop_time" => float 1397972506.152
        "stop_memory" => integer 3885552
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1587
        "start_memory" => integer 3911032
        "stop_time" => float 1397972506.1588
        "stop_memory" => integer 3911616
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.159
        "start_memory" => integer 3916552
        "stop_time" => float 1397972506.159
        "stop_memory" => integer 3917128
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1664
        "start_memory" => integer 3942712
        "stop_time" => float 1397972506.1665
        "stop_memory" => integer 3943272
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1667
        "start_memory" => integer 3948128
        "stop_time" => float 1397972506.1668
        "stop_memory" => integer 3948696
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1675
        "start_memory" => integer 4036080
        "stop_time" => float 1397972506.1677
        "stop_memory" => integer 4036680
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1754
        "start_memory" => integer 4043608
        "stop_time" => float 1397972506.1755
        "stop_memory" => integer 4044160
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1756
        "start_memory" => integer 4049040
        "stop_time" => float 1397972506.1756
        "stop_memory" => integer 4049624
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1983
        "start_memory" => integer 4106456
        "stop_time" => float 1397972506.1984
        "stop_memory" => integer 4107016
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1987
        "start_memory" => integer 4111936
        "stop_time" => float 1397972506.1987
        "stop_memory" => integer 4112520
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1989
        "start_memory" => integer 4135832
        "stop_time" => float 1397972506.199
        "stop_memory" => integer 4136408
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.1999
        "start_memory" => integer 4145456
        "stop_time" => float 1397972506.1999
        "stop_memory" => integer 4146016
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2
        "start_memory" => integer 4150880
        "stop_time" => float 1397972506.2
        "stop_memory" => integer 4151464
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2012
        "start_memory" => integer 4230928
        "stop_time" => float 1397972506.2012
        "stop_memory" => integer 4232000
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2013
        "start_memory" => integer 4236904
        "stop_time" => float 1397972506.2013
        "stop_memory" => integer 4237488
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2084
        "start_memory" => integer 4263168
        "stop_time" => float 1397972506.2086
        "stop_memory" => integer 4263728
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2088
        "start_memory" => integer 4268592
        "stop_time" => float 1397972506.2088
        "stop_memory" => integer 4269176
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2102
        "start_memory" => integer 4290568
        "stop_time" => float 1397972506.2103
        "stop_memory" => integer 4291096
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2104
        "start_memory" => integer 4295744
        "stop_time" => float 1397972506.2106
        "stop_memory" => integer 4296312
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2147
        "start_memory" => integer 4307216
        "stop_time" => float 1397972506.2147
        "stop_memory" => integer 4307808
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2158
        "start_memory" => integer 4318592
        "stop_time" => float 1397972506.2158
        "stop_memory" => integer 4319168
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2162
        "start_memory" => integer 4357768
        "stop_time" => float 1397972506.2163
        "stop_memory" => integer 4358256
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2183
        "start_memory" => integer 4359456
        "stop_time" => float 1397972506.2184
        "stop_memory" => integer 4360032
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2213
        "start_memory" => integer 4389040
        "stop_time" => float 1397972506.2214
        "stop_memory" => integer 4389584
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2215
        "start_memory" => integer 4394440
        "stop_time" => float 1397972506.2216
        "stop_memory" => integer 4395016
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2263
        "start_memory" => integer 4409552
        "stop_time" => float 1397972506.2264
        "stop_memory" => integer 4410128
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2289
        "start_memory" => integer 4414984
        "stop_time" => float 1397972506.229
        "stop_memory" => integer 4415520
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2292
        "start_memory" => integer 4420168
        "stop_time" => float 1397972506.2294
        "stop_memory" => integer 4420736
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2304
        "start_memory" => integer 4448512
        "stop_time" => float 1397972506.2305
        "stop_memory" => integer 4449088
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2306
        "start_memory" => integer 4453928
        "stop_time" => float 1397972506.2307
        "stop_memory" => integer 4454512
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2342
        "start_memory" => integer 4574584
        "stop_time" => float 1397972506.2343
        "stop_memory" => integer 4575160
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2345
        "start_memory" => integer 4580112
        "stop_time" => float 1397972506.2346
        "stop_memory" => integer 4580704
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2347
        "start_memory" => integer 4585864
        "stop_time" => float 1397972506.2348
        "stop_memory" => integer 4586416
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2358
        "start_memory" => integer 4605872
        "stop_time" => float 1397972506.2358
        "stop_memory" => integer 4606464
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.236
        "start_memory" => integer 4611424
        "stop_time" => float 1397972506.236
        "stop_memory" => integer 4612016
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2384
        "start_memory" => integer 4617952
        "stop_time" => float 1397972506.2385
        "stop_memory" => integer 4618504
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2387
        "start_memory" => integer 4623368
        "stop_time" => float 1397972506.2388
        "stop_memory" => integer 4623952
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2406
        "start_memory" => integer 4755848
        "stop_time" => float 1397972506.2407
        "stop_memory" => integer 4756424
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2409
        "start_memory" => integer 4761384
        "stop_time" => float 1397972506.2409
        "stop_memory" => integer 4762000
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2412
        "start_memory" => integer 4782680
        "stop_time" => float 1397972506.2413
        "stop_memory" => integer 4783248
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2415
        "start_memory" => integer 4788160
        "stop_time" => float 1397972506.2415
        "stop_memory" => integer 4788736
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2432
        "start_memory" => integer 4850752
        "stop_time" => float 1397972506.2432
        "stop_memory" => integer 4851312
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2434
        "start_memory" => integer 4856184
        "stop_time" => float 1397972506.2435
        "stop_memory" => integer 4856768
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2448
        "start_memory" => integer 4914976
        "stop_time" => float 1397972506.2449
        "stop_memory" => integer 4915536
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.245
        "start_memory" => integer 4920400
        "stop_time" => float 1397972506.2451
        "stop_memory" => integer 4920984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2467
        "start_memory" => integer 4963552
        "stop_time" => float 1397972506.2468
        "stop_memory" => integer 4964128
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2469
        "start_memory" => integer 4969096
        "stop_time" => float 1397972506.247
        "stop_memory" => integer 4969696
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2486
        "start_memory" => integer 5019640
        "stop_time" => float 1397972506.2487
        "stop_memory" => integer 5020216
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2489
        "start_memory" => integer 5026304
        "stop_time" => float 1397972506.249
        "stop_memory" => integer 5026904
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2493
        "start_memory" => integer 5046552
        "stop_time" => float 1397972506.2493
        "stop_memory" => integer 5047128
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2495
        "start_memory" => integer 5053200
        "stop_time" => float 1397972506.2496
        "stop_memory" => integer 5053808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2512
        "start_memory" => integer 5116768
        "stop_time" => float 1397972506.2513
        "stop_memory" => integer 5117344
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2514
        "start_memory" => integer 5122408
        "stop_time" => float 1397972506.2515
        "stop_memory" => integer 5123008
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2528
        "start_memory" => integer 5170616
        "stop_time" => float 1397972506.2529
        "stop_memory" => integer 5171192
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.253
        "start_memory" => integer 5176248
        "stop_time" => float 1397972506.253
        "stop_memory" => integer 5176848
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.254
        "start_memory" => integer 5208912
        "stop_time" => float 1397972506.2541
        "stop_memory" => integer 5209488
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2542
        "start_memory" => integer 5214552
        "stop_time" => float 1397972506.2542
        "stop_memory" => integer 5215152
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2555
        "start_memory" => integer 5314952
        "stop_time" => float 1397972506.2555
        "stop_memory" => integer 5315528
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2556
        "start_memory" => integer 5320592
        "stop_time" => float 1397972506.2557
        "stop_memory" => integer 5321192
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2582
        "start_memory" => integer 5369080
        "stop_time" => float 1397972506.2582
        "stop_memory" => integer 5369640
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2583
        "start_memory" => integer 5374608
        "stop_time" => float 1397972506.2584
        "stop_memory" => integer 5375200
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2596
        "start_memory" => integer 5398328
        "stop_time" => float 1397972506.2597
        "stop_memory" => integer 5398848
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2598
        "start_memory" => integer 5403488
        "stop_time" => float 1397972506.26
        "stop_memory" => integer 5404056
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2612
        "start_memory" => integer 5513104
        "stop_time" => float 1397972506.2613
        "stop_memory" => integer 5513664
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2614
        "start_memory" => integer 5518360
        "stop_time" => float 1397972506.2615
        "stop_memory" => integer 5518936
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2668
        "start_memory" => integer 5538704
        "stop_time" => float 1397972506.267
        "stop_memory" => integer 5539240
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2671
        "start_memory" => integer 5543904
        "stop_time" => float 1397972506.2672
        "stop_memory" => integer 5544472
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2705
        "start_memory" => integer 5581904
        "stop_time" => float 1397972506.2706
        "stop_memory" => integer 5582448
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2708
        "start_memory" => integer 5587088
        "stop_time" => float 1397972506.2709
        "stop_memory" => integer 5587656
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2719
        "start_memory" => integer 5629984
        "stop_time" => float 1397972506.2719
        "stop_memory" => integer 5630528
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.272
        "start_memory" => integer 5635168
        "stop_time" => float 1397972506.2721
        "stop_memory" => integer 5635760
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.273
        "start_memory" => integer 5665104
        "stop_time" => float 1397972506.273
        "stop_memory" => integer 5665648
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2731
        "start_memory" => integer 5670288
        "stop_time" => float 1397972506.2732
        "stop_memory" => integer 5670856
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2751
        "start_memory" => integer 5745880
        "stop_time" => float 1397972506.2752
        "stop_memory" => integer 5746424
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2753
        "start_memory" => integer 5751080
        "stop_time" => float 1397972506.2754
        "stop_memory" => integer 5751648
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2779
        "start_memory" => integer 5773776
        "stop_time" => float 1397972506.278
        "stop_memory" => integer 5774320
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2781
        "start_memory" => integer 5778960
        "stop_time" => float 1397972506.2781
        "stop_memory" => integer 5779528
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.28
        "start_memory" => integer 5800376
        "stop_time" => float 1397972506.2801
        "stop_memory" => integer 5801960
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2802
        "start_memory" => integer 5806648
        "stop_time" => float 1397972506.2803
        "stop_memory" => integer 5807224
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2821
        "start_memory" => integer 5934608
        "stop_time" => float 1397972506.2822
        "stop_memory" => integer 5935160
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2823
        "start_memory" => integer 5939840
        "stop_time" => float 1397972506.2824
        "stop_memory" => integer 5940416
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2842
        "start_memory" => integer 6107432
        "stop_time" => float 1397972506.2843
        "stop_memory" => integer 6107984
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2845
        "start_memory" => integer 6112672
        "stop_time" => float 1397972506.2847
        "stop_memory" => integer 6113232
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2876
        "start_memory" => integer 6168848
        "stop_time" => float 1397972506.2877
        "stop_memory" => integer 6169424
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2879
        "start_memory" => integer 6174312
        "stop_time" => float 1397972506.288
        "stop_memory" => integer 6174880
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2892
        "start_memory" => integer 6214912
        "stop_time" => float 1397972506.2893
        "stop_memory" => integer 6215488
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2894
        "start_memory" => integer 6220440
        "stop_time" => float 1397972506.2894
        "stop_memory" => integer 6221032
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.291
        "start_memory" => integer 6246992
        "stop_time" => float 1397972506.2911
        "stop_memory" => integer 6247568
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2912
        "start_memory" => integer 6252464
        "stop_time" => float 1397972506.2912
        "stop_memory" => integer 6253040
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2949
        "start_memory" => integer 6282224
        "stop_time" => float 1397972506.2949
        "stop_memory" => integer 6282800
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.2983
        "start_memory" => integer 6292288
        "stop_time" => float 1397972506.2986
        "stop_memory" => integer 6292864
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3074
        "start_memory" => integer 6329000
        "stop_time" => float 1397972506.3076
        "stop_memory" => integer 6329560
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3079
        "start_memory" => integer 6338032
        "stop_time" => float 1397972506.308
        "stop_memory" => integer 6338520
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3104
        "start_memory" => integer 6338776
        "stop_time" => float 1397972506.3106
        "stop_memory" => integer 6339344
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3131
        "start_memory" => integer 6345808
        "stop_time" => float 1397972506.3133
        "stop_memory" => integer 6346376
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3153
        "start_memory" => integer 6358184
        "stop_time" => float 1397972506.3154
        "stop_memory" => integer 6358768
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3163
        "start_memory" => integer 6367512
        "stop_time" => float 1397972506.3164
        "stop_memory" => integer 6368088
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3172
        "start_memory" => integer 6371168
        "stop_time" => float 1397972506.3173
        "stop_memory" => integer 6371728
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3179
        "start_memory" => integer 6380072
        "stop_time" => float 1397972506.318
        "stop_memory" => integer 6380640
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3184
        "start_memory" => integer 6388944
        "stop_time" => float 1397972506.3185
        "stop_memory" => integer 6389480
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3187
        "start_memory" => integer 6394128
        "stop_time" => float 1397972506.3188
        "stop_memory" => integer 6394696
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3199
        "start_memory" => integer 6404000
        "stop_time" => float 1397972506.3199
        "stop_memory" => integer 6404576
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.32
        "start_memory" => integer 6413288
        "stop_time" => float 1397972506.3201
        "stop_memory" => integer 6413824
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3202
        "start_memory" => integer 6418472
        "stop_time" => float 1397972506.3202
        "stop_memory" => integer 6419040
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3237
        "start_memory" => integer 6769432
        "stop_time" => float 1397972506.3238
        "stop_memory" => integer 6770008
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3251
        "start_memory" => integer 6853424
        "stop_time" => float 1397972506.3252
        "stop_memory" => integer 6854008
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3261
        "start_memory" => integer 6897168
        "stop_time" => float 1397972506.3261
        "stop_memory" => integer 6897712
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3269
        "start_memory" => integer 6927104
        "stop_time" => float 1397972506.3269
        "stop_memory" => integer 6927664
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3278
        "start_memory" => integer 6959568
        "stop_time" => float 1397972506.3278
        "stop_memory" => integer 6960144
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3288
        "start_memory" => integer 6990464
        "stop_time" => float 1397972506.3289
        "stop_memory" => integer 6991000
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.329
        "start_memory" => integer 6995648
        "stop_time" => float 1397972506.3291
        "stop_memory" => integer 6996216
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3302
        "start_memory" => integer 7007216
        "stop_time" => float 1397972506.3303
        "stop_memory" => integer 7007776
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3304
        "start_memory" => integer 7012472
        "stop_time" => float 1397972506.3305
        "stop_memory" => integer 7013048
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3318
        "start_memory" => integer 7055832
        "stop_time" => float 1397972506.3319
        "stop_memory" => integer 7056384
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.332
        "start_memory" => integer 7061056
        "stop_time" => float 1397972506.3321
        "stop_memory" => integer 7061632
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.333
        "start_memory" => integer 7075408
        "stop_time" => float 1397972506.333
        "stop_memory" => integer 7075976
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3331
        "start_memory" => integer 7080848
        "stop_time" => float 1397972506.3332
        "stop_memory" => integer 7081432
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3334
        "start_memory" => integer 7097128
        "stop_time" => float 1397972506.3335
        "stop_memory" => integer 7097688
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3336
        "start_memory" => integer 7102576
        "stop_time" => float 1397972506.3337
        "stop_memory" => integer 7103160
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3341
        "start_memory" => integer 7121240
        "stop_time" => float 1397972506.3341
        "stop_memory" => integer 7121816
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3342
        "start_memory" => integer 7126808
        "stop_time" => float 1397972506.3343
        "stop_memory" => integer 7127400
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3347
        "start_memory" => integer 7132848
        "stop_time" => float 1397972506.3347
        "stop_memory" => integer 7133400
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3349
        "start_memory" => integer 7138280
        "stop_time" => float 1397972506.3349
        "stop_memory" => integer 7138864
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3351
        "start_memory" => integer 7147584
        "stop_time" => float 1397972506.3352
        "stop_memory" => integer 7148144
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3352
        "start_memory" => integer 7153016
        "stop_time" => float 1397972506.3353
        "stop_memory" => integer 7153600
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3369
        "start_memory" => integer 7251192
        "stop_time" => float 1397972506.337
        "stop_memory" => integer 7251768
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3371
        "start_memory" => integer 7256752
        "stop_time" => float 1397972506.3372
        "stop_memory" => integer 7257344
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3379
        "start_memory" => integer 7276216
        "stop_time" => float 1397972506.3379
        "stop_memory" => integer 7276800
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3381
        "start_memory" => integer 7281832
        "stop_time" => float 1397972506.3381
        "stop_memory" => integer 7282416
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3388
        "start_memory" => integer 7299240
        "stop_time" => float 1397972506.3389
        "stop_memory" => integer 7299808
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.339
        "start_memory" => integer 7304752
        "stop_time" => float 1397972506.3391
        "stop_memory" => integer 7305344
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3399
        "start_memory" => integer 7324104
        "stop_time" => float 1397972506.3399
        "stop_memory" => integer 7324656
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.34
        "start_memory" => integer 7329520
        "stop_time" => float 1397972506.3401
        "stop_memory" => integer 7330104
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3402
        "start_memory" => integer 7337480
        "stop_time" => float 1397972506.3403
        "stop_memory" => integer 7338040
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3404
        "start_memory" => integer 7342912
        "stop_time" => float 1397972506.3406
        "stop_memory" => integer 7343496
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3412
        "start_memory" => integer 7356688
        "stop_time" => float 1397972506.3412
        "stop_memory" => integer 7357264
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3413
        "start_memory" => integer 7362216
        "stop_time" => float 1397972506.3414
        "stop_memory" => integer 7362808
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3421
        "start_memory" => integer 7367488
        "stop_time" => float 1397972506.3421
        "stop_memory" => integer 7368040
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3422
        "start_memory" => integer 7372920
        "stop_time" => float 1397972506.3423
        "stop_memory" => integer 7373504
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3429
        "start_memory" => integer 7388792
        "stop_time" => float 1397972506.343
        "stop_memory" => integer 7389352
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3431
        "start_memory" => integer 7394232
        "stop_time" => float 1397972506.3431
        "stop_memory" => integer 7394816
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.344
        "start_memory" => integer 7432800
        "stop_time" => float 1397972506.3441
        "stop_memory" => integer 7433376
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3442
        "start_memory" => integer 7438336
        "stop_time" => float 1397972506.3443
        "stop_memory" => integer 7438928
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3466
        "start_memory" => integer 7452632
        "stop_time" => float 1397972506.3467
        "stop_memory" => integer 7453200
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3469
        "start_memory" => integer 7458168
        "stop_time" => float 1397972506.347
        "stop_memory" => integer 7458760
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.35
        "start_memory" => integer 7469096
        "stop_time" => float 1397972506.3501
        "stop_memory" => integer 7469664
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3503
        "start_memory" => integer 7474608
        "stop_time" => float 1397972506.3504
        "stop_memory" => integer 7475200
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3514
        "start_memory" => integer 7495560
        "stop_time" => float 1397972506.3514
        "stop_memory" => integer 7496128
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3516
        "start_memory" => integer 7501096
        "stop_time" => float 1397972506.3516
        "stop_memory" => integer 7501688
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3522
        "start_memory" => integer 7521032
        "stop_time" => float 1397972506.3522
        "stop_memory" => integer 7521600
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3523
        "start_memory" => integer 7526624
        "stop_time" => float 1397972506.3524
        "stop_memory" => integer 7527216
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.353
        "start_memory" => integer 7544432
        "stop_time" => float 1397972506.3531
        "stop_memory" => integer 7545000
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3532
        "start_memory" => integer 7549968
        "stop_time" => float 1397972506.3532
        "stop_memory" => integer 7550560
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3539
        "start_memory" => integer 7568888
        "stop_time" => float 1397972506.3539
        "stop_memory" => integer 7569456
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.354
        "start_memory" => integer 7574408
        "stop_time" => float 1397972506.3541
        "stop_memory" => integer 7575000
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3547
        "start_memory" => integer 7595136
        "stop_time" => float 1397972506.3548
        "stop_memory" => integer 7595688
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3549
        "start_memory" => integer 7600568
        "stop_time" => float 1397972506.3549
        "stop_memory" => integer 7601152
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3556
        "start_memory" => integer 7611520
        "stop_time" => float 1397972506.3557
        "stop_memory" => integer 7612080
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3559
        "start_memory" => integer 7616968
        "stop_time" => float 1397972506.3559
        "stop_memory" => integer 7617552
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3569
        "start_memory" => integer 7633048
        "stop_time" => float 1397972506.357
        "stop_memory" => integer 7633624
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3571
        "start_memory" => integer 7638640
        "stop_time" => float 1397972506.3572
        "stop_memory" => integer 7639232
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3591
        "start_memory" => integer 7650704
        "stop_time" => float 1397972506.3592
        "stop_memory" => integer 7651272
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3594
        "start_memory" => integer 7656288
        "stop_time" => float 1397972506.3595
        "stop_memory" => integer 7656880
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3614
        "start_memory" => integer 7666688
        "stop_time" => float 1397972506.3616
        "stop_memory" => integer 7667256
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3617
        "start_memory" => integer 7672192
        "stop_time" => float 1397972506.3618
        "stop_memory" => integer 7672768
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3627
        "start_memory" => integer 7678928
        "stop_time" => float 1397972506.3628
        "stop_memory" => integer 7679528
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3629
        "start_memory" => integer 7684480
        "stop_time" => float 1397972506.363
        "stop_memory" => integer 7685072
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.366
        "start_memory" => integer 7694912
        "stop_time" => float 1397972506.3661
        "stop_memory" => integer 7695464
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3663
        "start_memory" => integer 7700344
        "stop_time" => float 1397972506.3664
        "stop_memory" => integer 7700928
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3692
        "start_memory" => integer 7775304
        "stop_time" => float 1397972506.3693
        "stop_memory" => integer 7775832
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3695
        "start_memory" => integer 7780480
        "stop_time" => float 1397972506.3697
        "stop_memory" => integer 7781048
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3751
        "start_memory" => integer 7807104
        "stop_time" => float 1397972506.3752
        "stop_memory" => integer 7807648
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3753
        "start_memory" => integer 7812304
        "stop_time" => float 1397972506.3754
        "stop_memory" => integer 7812872
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3762
        "start_memory" => integer 7844672
        "stop_time" => float 1397972506.3763
        "stop_memory" => integer 7845216
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3764
        "start_memory" => integer 7849864
        "stop_time" => float 1397972506.3764
        "stop_memory" => integer 7850432
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3777
        "start_memory" => integer 7916728
        "stop_time" => float 1397972506.3777
        "stop_memory" => integer 7917288
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3779
        "start_memory" => integer 7924192
        "stop_time" => float 1397972506.3781
        "stop_memory" => integer 7924768
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3788
        "start_memory" => integer 7948216
        "stop_time" => float 1397972506.3788
        "stop_memory" => integer 7948800
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.379
        "start_memory" => integer 7955768
        "stop_time" => float 1397972506.379
        "stop_memory" => integer 7956360
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3805
        "start_memory" => integer 8027040
        "stop_time" => float 1397972506.3806
        "stop_memory" => integer 8027576
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3807
        "start_memory" => integer 8032448
        "stop_time" => float 1397972506.3808
        "stop_memory" => integer 8033000
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3815
        "start_memory" => integer 8060736
        "stop_time" => float 1397972506.3816
        "stop_memory" => integer 8061272
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3818
        "start_memory" => integer 8065912
        "stop_time" => float 1397972506.3818
        "stop_memory" => integer 8066480
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3831
        "start_memory" => integer 8187360
        "stop_time" => float 1397972506.3832
        "stop_memory" => integer 8187904
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3833
        "start_memory" => integer 8192560
        "stop_time" => float 1397972506.3834
        "stop_memory" => integer 8193128
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3892
        "start_memory" => integer 8231848
        "stop_time" => float 1397972506.3893
        "stop_memory" => integer 8232392
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3895
        "start_memory" => integer 8237048
        "stop_time" => float 1397972506.3896
        "stop_memory" => integer 8237616
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3917
        "start_memory" => integer 8478488
        "stop_time" => float 1397972506.3918
        "stop_memory" => integer 8479064
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3919
        "start_memory" => integer 8484000
        "stop_time" => float 1397972506.392
        "stop_memory" => integer 8484584
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.393
        "start_memory" => integer 8502616
        "stop_time" => float 1397972506.393
        "stop_memory" => integer 8503192
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397972506.3934
        "start_memory" => integer 8469872
        "stop_time" => float 1397972506.3935
        "stop_memory" => integer 8471984
    )
)

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