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 1430081873.3254
        "start_memory" => integer 899528
        "stop_time" => float 1430081873.5491
        "stop_memory" => integer 5468640
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3254
        "start_memory" => integer 901816
        "stop_time" => float 1430081873.3255
        "stop_memory" => integer 902504
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.326
        "start_memory" => integer 979344
        "stop_time" => float 1430081873.3261
        "stop_memory" => integer 979904
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3261
        "start_memory" => integer 983936
        "stop_time" => float 1430081873.3262
        "stop_memory" => integer 984528
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3263
        "start_memory" => integer 992192
        "stop_time" => float 1430081873.3264
        "stop_memory" => integer 992744
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3264
        "start_memory" => integer 996408
        "stop_time" => float 1430081873.3265
        "stop_memory" => integer 996992
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3266
        "start_memory" => integer 1000256
        "stop_time" => float 1430081873.3267
        "stop_memory" => integer 1000848
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3292
        "start_memory" => integer 1322512
        "stop_time" => float 1430081873.3292
        "stop_memory" => integer 1323048
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3293
        "start_memory" => integer 1326472
        "stop_time" => float 1430081873.3294
        "stop_memory" => integer 1327112
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3296
        "start_memory" => integer 1345960
        "stop_time" => float 1430081873.3297
        "stop_memory" => integer 1346528
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3297
        "start_memory" => integer 1349976
        "stop_time" => float 1430081873.3298
        "stop_memory" => integer 1350544
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3304
        "start_memory" => integer 1450296
        "stop_time" => float 1430081873.3305
        "stop_memory" => integer 1450896
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3305
        "start_memory" => integer 1454416
        "stop_time" => float 1430081873.3306
        "stop_memory" => integer 1455016
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.331
        "start_memory" => integer 1564232
        "stop_time" => float 1430081873.331
        "stop_memory" => integer 1564776
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3311
        "start_memory" => integer 1568216
        "stop_time" => float 1430081873.3312
        "stop_memory" => integer 1568784
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3314
        "start_memory" => integer 1602984
        "stop_time" => float 1430081873.3315
        "stop_memory" => integer 1603600
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3315
        "start_memory" => integer 1606136
        "stop_time" => float 1430081873.3315
        "stop_memory" => integer 1606848
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3316
        "start_memory" => integer 1610368
        "stop_time" => float 1430081873.3317
        "stop_memory" => integer 1610968
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3318
        "start_memory" => integer 1612680
        "stop_time" => float 1430081873.3318
        "stop_memory" => integer 1613280
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3319
        "start_memory" => integer 1616808
        "stop_time" => float 1430081873.332
        "stop_memory" => integer 1617384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3322
        "start_memory" => integer 1646904
        "stop_time" => float 1430081873.3323
        "stop_memory" => integer 1647480
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3323
        "start_memory" => integer 1650968
        "stop_time" => float 1430081873.3324
        "stop_memory" => integer 1651568
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.3329
        "start_memory" => integer 1712856
        "stop_time" => float 1430081873.3329
        "stop_memory" => integer 1713408
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.333
        "start_memory" => integer 1716872
        "stop_time" => float 1430081873.3331
        "stop_memory" => integer 1717440
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.334
        "start_memory" => integer 1770552
        "stop_time" => float 1430081873.334
        "stop_memory" => integer 1771168
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4169
        "start_memory" => integer 1809088
        "stop_time" => float 1430081873.4169
        "stop_memory" => integer 1809656
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4171
        "start_memory" => integer 1813096
        "stop_time" => float 1430081873.4171
        "stop_memory" => integer 1813680
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4178
        "start_memory" => integer 1848104
        "stop_time" => float 1430081873.4178
        "stop_memory" => integer 1848680
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4179
        "start_memory" => integer 1852176
        "stop_time" => float 1430081873.4179
        "stop_memory" => integer 1852768
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4183
        "start_memory" => integer 1871624
        "stop_time" => float 1430081873.4184
        "stop_memory" => integer 1872192
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4184
        "start_memory" => integer 1875672
        "stop_time" => float 1430081873.4185
        "stop_memory" => integer 1876264
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4191
        "start_memory" => integer 1923864
        "stop_time" => float 1430081873.4191
        "stop_memory" => integer 1924464
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4192
        "start_memory" => integer 1936040
        "stop_time" => float 1430081873.4193
        "stop_memory" => integer 1936872
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4193
        "start_memory" => integer 1940416
        "stop_time" => float 1430081873.4193
        "stop_memory" => integer 1941000
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4198
        "start_memory" => integer 1979104
        "stop_time" => float 1430081873.4198
        "stop_memory" => integer 1979704
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.42
        "start_memory" => integer 1991848
        "stop_time" => float 1430081873.42
        "stop_memory" => integer 1992424
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4204
        "start_memory" => integer 2019480
        "stop_time" => float 1430081873.4204
        "stop_memory" => integer 2020080
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4206
        "start_memory" => integer 2028944
        "stop_time" => float 1430081873.4206
        "stop_memory" => integer 2029520
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4208
        "start_memory" => integer 2042712
        "stop_time" => float 1430081873.4208
        "stop_memory" => integer 2043312
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.421
        "start_memory" => integer 2050400
        "stop_time" => float 1430081873.421
        "stop_memory" => integer 2050992
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4213
        "start_memory" => integer 2064376
        "stop_time" => float 1430081873.4213
        "stop_memory" => integer 2064968
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4215
        "start_memory" => integer 2078648
        "stop_time" => float 1430081873.4215
        "stop_memory" => integer 2079240
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4217
        "start_memory" => integer 2088776
        "stop_time" => float 1430081873.4217
        "stop_memory" => integer 2089368
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4219
        "start_memory" => integer 2098040
        "stop_time" => float 1430081873.4219
        "stop_memory" => integer 2098632
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4222
        "start_memory" => integer 2143976
        "stop_time" => float 1430081873.4223
        "stop_memory" => integer 2144552
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4226
        "start_memory" => integer 2167568
        "stop_time" => float 1430081873.4227
        "stop_memory" => integer 2168168
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4229
        "start_memory" => integer 2181536
        "stop_time" => float 1430081873.4229
        "stop_memory" => integer 2182112
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4232
        "start_memory" => integer 2201400
        "stop_time" => float 1430081873.4232
        "stop_memory" => integer 2201984
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4234
        "start_memory" => integer 2215696
        "stop_time" => float 1430081873.4235
        "stop_memory" => integer 2216264
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4236
        "start_memory" => integer 2219736
        "stop_time" => float 1430081873.4236
        "stop_memory" => integer 2220336
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4299
        "start_memory" => integer 2310944
        "stop_time" => float 1430081873.43
        "stop_memory" => integer 2311520
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4301
        "start_memory" => integer 2315032
        "stop_time" => float 1430081873.4301
        "stop_memory" => integer 2315624
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4329
        "start_memory" => integer 2334840
        "stop_time" => float 1430081873.4329
        "stop_memory" => integer 2335424
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.433
        "start_memory" => integer 2338992
        "stop_time" => float 1430081873.433
        "stop_memory" => integer 2339592
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4358
        "start_memory" => integer 2358872
        "stop_time" => float 1430081873.4358
        "stop_memory" => integer 2359432
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4359
        "start_memory" => integer 2362928
        "stop_time" => float 1430081873.4359
        "stop_memory" => integer 2363520
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4364
        "start_memory" => integer 2417304
        "stop_time" => float 1430081873.4364
        "stop_memory" => integer 2417904
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4394
        "start_memory" => integer 2425344
        "stop_time" => float 1430081873.4394
        "stop_memory" => integer 2425920
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4395
        "start_memory" => integer 2429456
        "stop_time" => float 1430081873.4395
        "stop_memory" => integer 2430056
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4486
        "start_memory" => integer 2469816
        "stop_time" => float 1430081873.4486
        "stop_memory" => integer 2470392
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4487
        "start_memory" => integer 2473936
        "stop_time" => float 1430081873.4488
        "stop_memory" => integer 2474536
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4489
        "start_memory" => integer 2490280
        "stop_time" => float 1430081873.449
        "stop_memory" => integer 2490856
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4494
        "start_memory" => integer 2498296
        "stop_time" => float 1430081873.4494
        "stop_memory" => integer 2498864
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4495
        "start_memory" => integer 2502352
        "stop_time" => float 1430081873.4495
        "stop_memory" => integer 2502944
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4503
        "start_memory" => integer 2552568
        "stop_time" => float 1430081873.4503
        "stop_memory" => integer 2553664
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4504
        "start_memory" => integer 2557184
        "stop_time" => float 1430081873.4504
        "stop_memory" => integer 2557784
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4538
        "start_memory" => integer 2577296
        "stop_time" => float 1430081873.4538
        "stop_memory" => integer 2577856
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4539
        "start_memory" => integer 2581344
        "stop_time" => float 1430081873.4539
        "stop_memory" => integer 2581936
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4544
        "start_memory" => integer 2597240
        "stop_time" => float 1430081873.4545
        "stop_memory" => integer 2597776
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4546
        "start_memory" => integer 2601200
        "stop_time" => float 1430081873.4546
        "stop_memory" => integer 2601776
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4562
        "start_memory" => integer 2608520
        "stop_time" => float 1430081873.4562
        "stop_memory" => integer 2609136
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4566
        "start_memory" => integer 2616640
        "stop_time" => float 1430081873.4567
        "stop_memory" => integer 2617232
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4569
        "start_memory" => integer 2641896
        "stop_time" => float 1430081873.4569
        "stop_memory" => integer 2642400
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4581
        "start_memory" => integer 2643696
        "stop_time" => float 1430081873.4581
        "stop_memory" => integer 2644288
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4593
        "start_memory" => integer 2663160
        "stop_time" => float 1430081873.4594
        "stop_memory" => integer 2663720
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4595
        "start_memory" => integer 2667240
        "stop_time" => float 1430081873.4595
        "stop_memory" => integer 2667832
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4617
        "start_memory" => integer 2679288
        "stop_time" => float 1430081873.4618
        "stop_memory" => integer 2679872
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4627
        "start_memory" => integer 2683912
        "stop_time" => float 1430081873.4628
        "stop_memory" => integer 2684464
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4629
        "start_memory" => integer 2687912
        "stop_time" => float 1430081873.4629
        "stop_memory" => integer 2688496
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4634
        "start_memory" => integer 2705992
        "stop_time" => float 1430081873.4634
        "stop_memory" => integer 2706568
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4635
        "start_memory" => integer 2710048
        "stop_time" => float 1430081873.4635
        "stop_memory" => integer 2710640
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4651
        "start_memory" => integer 2797224
        "stop_time" => float 1430081873.4651
        "stop_memory" => integer 2797824
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4652
        "start_memory" => integer 2801392
        "stop_time" => float 1430081873.4652
        "stop_memory" => integer 2801984
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4653
        "start_memory" => integer 2805728
        "stop_time" => float 1430081873.4654
        "stop_memory" => integer 2806288
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4657
        "start_memory" => integer 2822376
        "stop_time" => float 1430081873.4658
        "stop_memory" => integer 2822984
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4658
        "start_memory" => integer 2826552
        "stop_time" => float 1430081873.4659
        "stop_memory" => integer 2827160
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4668
        "start_memory" => integer 2832248
        "stop_time" => float 1430081873.4669
        "stop_memory" => integer 2832816
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4669
        "start_memory" => integer 2836336
        "stop_time" => float 1430081873.467
        "stop_memory" => integer 2836936
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4678
        "start_memory" => integer 2924656
        "stop_time" => float 1430081873.4679
        "stop_memory" => integer 2925248
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4679
        "start_memory" => integer 2928816
        "stop_time" => float 1430081873.468
        "stop_memory" => integer 2929424
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4681
        "start_memory" => integer 2941528
        "stop_time" => float 1430081873.4682
        "stop_memory" => integer 2942096
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4682
        "start_memory" => integer 2945648
        "stop_time" => float 1430081873.4683
        "stop_memory" => integer 2946264
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4689
        "start_memory" => integer 2990104
        "stop_time" => float 1430081873.469
        "stop_memory" => integer 2990680
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4691
        "start_memory" => integer 2994208
        "stop_time" => float 1430081873.4691
        "stop_memory" => integer 2994808
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4696
        "start_memory" => integer 3034536
        "stop_time" => float 1430081873.4697
        "stop_memory" => integer 3035112
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4698
        "start_memory" => integer 3038632
        "stop_time" => float 1430081873.4698
        "stop_memory" => integer 3039232
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4705
        "start_memory" => integer 3066512
        "stop_time" => float 1430081873.4705
        "stop_memory" => integer 3067104
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4706
        "start_memory" => integer 3070680
        "stop_time" => float 1430081873.4706
        "stop_memory" => integer 3071288
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4713
        "start_memory" => integer 3102832
        "stop_time" => float 1430081873.4713
        "stop_memory" => integer 3103432
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4714
        "start_memory" => integer 3107056
        "stop_time" => float 1430081873.4714
        "stop_memory" => integer 3107672
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4716
        "start_memory" => integer 3120888
        "stop_time" => float 1430081873.4716
        "stop_memory" => integer 3121480
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4717
        "start_memory" => integer 3126136
        "stop_time" => float 1430081873.4718
        "stop_memory" => integer 3126752
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4724
        "start_memory" => integer 3178152
        "stop_time" => float 1430081873.4724
        "stop_memory" => integer 3178744
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4725
        "start_memory" => integer 3182368
        "stop_time" => float 1430081873.4725
        "stop_memory" => integer 3182984
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4732
        "start_memory" => integer 3215168
        "stop_time" => float 1430081873.4732
        "stop_memory" => integer 3215760
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4733
        "start_memory" => integer 3219376
        "stop_time" => float 1430081873.4733
        "stop_memory" => integer 3219992
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4739
        "start_memory" => integer 3243568
        "stop_time" => float 1430081873.474
        "stop_memory" => integer 3244160
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4741
        "start_memory" => integer 3247784
        "stop_time" => float 1430081873.4741
        "stop_memory" => integer 3248400
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4749
        "start_memory" => integer 3316984
        "stop_time" => float 1430081873.4749
        "stop_memory" => integer 3317576
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.475
        "start_memory" => integer 3321200
        "stop_time" => float 1430081873.475
        "stop_memory" => integer 3321816
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4764
        "start_memory" => integer 3358096
        "stop_time" => float 1430081873.4765
        "stop_memory" => integer 3358672
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4765
        "start_memory" => integer 3362248
        "stop_time" => float 1430081873.4766
        "stop_memory" => integer 3362856
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4771
        "start_memory" => integer 3381440
        "stop_time" => float 1430081873.4772
        "stop_memory" => integer 3381976
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4773
        "start_memory" => integer 3385416
        "stop_time" => float 1430081873.4773
        "stop_memory" => integer 3385984
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4781
        "start_memory" => integer 3452080
        "stop_time" => float 1430081873.4782
        "stop_memory" => integer 3452664
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4783
        "start_memory" => integer 3456136
        "stop_time" => float 1430081873.4783
        "stop_memory" => integer 3456712
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4808
        "start_memory" => integer 3470464
        "stop_time" => float 1430081873.4809
        "stop_memory" => integer 3471024
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.481
        "start_memory" => integer 3474472
        "stop_time" => float 1430081873.481
        "stop_memory" => integer 3475056
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4828
        "start_memory" => integer 3496992
        "stop_time" => float 1430081873.4828
        "stop_memory" => integer 3497552
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4829
        "start_memory" => integer 3500992
        "stop_time" => float 1430081873.483
        "stop_memory" => integer 3501560
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4835
        "start_memory" => integer 3524688
        "stop_time" => float 1430081873.4836
        "stop_memory" => integer 3525256
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4836
        "start_memory" => integer 3528696
        "stop_time" => float 1430081873.4837
        "stop_memory" => integer 3529264
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4841
        "start_memory" => integer 3546768
        "stop_time" => float 1430081873.4842
        "stop_memory" => integer 3547336
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4843
        "start_memory" => integer 3550776
        "stop_time" => float 1430081873.4843
        "stop_memory" => integer 3551344
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4852
        "start_memory" => integer 3598304
        "stop_time" => float 1430081873.4853
        "stop_memory" => integer 3598872
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4853
        "start_memory" => integer 3602328
        "stop_time" => float 1430081873.4854
        "stop_memory" => integer 3602912
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4868
        "start_memory" => integer 3617488
        "stop_time" => float 1430081873.4868
        "stop_memory" => integer 3618048
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4869
        "start_memory" => integer 3621504
        "stop_time" => float 1430081873.487
        "stop_memory" => integer 3622072
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4881
        "start_memory" => integer 3635072
        "stop_time" => float 1430081873.4881
        "stop_memory" => integer 3636680
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4882
        "start_memory" => integer 3640168
        "stop_time" => float 1430081873.4882
        "stop_memory" => integer 3640744
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4891
        "start_memory" => integer 3720040
        "stop_time" => float 1430081873.4892
        "stop_memory" => integer 3720616
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4892
        "start_memory" => integer 3724096
        "stop_time" => float 1430081873.4893
        "stop_memory" => integer 3724688
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4904
        "start_memory" => integer 3824136
        "stop_time" => float 1430081873.4904
        "stop_memory" => integer 3824688
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4905
        "start_memory" => integer 3828160
        "stop_time" => float 1430081873.4906
        "stop_memory" => integer 3828744
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4921
        "start_memory" => integer 3861712
        "stop_time" => float 1430081873.4922
        "stop_memory" => integer 3862304
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4923
        "start_memory" => integer 3865816
        "stop_time" => float 1430081873.4923
        "stop_memory" => integer 3866416
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4928
        "start_memory" => integer 3892232
        "stop_time" => float 1430081873.4929
        "stop_memory" => integer 3892824
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.493
        "start_memory" => integer 3896392
        "stop_time" => float 1430081873.493
        "stop_memory" => integer 3897000
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4939
        "start_memory" => integer 3915856
        "stop_time" => float 1430081873.4939
        "stop_memory" => integer 3916424
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.494
        "start_memory" => integer 3919944
        "stop_time" => float 1430081873.4941
        "stop_memory" => integer 3920544
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4954
        "start_memory" => integer 3939416
        "stop_time" => float 1430081873.4954
        "stop_memory" => integer 3940008
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.4968
        "start_memory" => integer 3948176
        "stop_time" => float 1430081873.4968
        "stop_memory" => integer 3948768
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5
        "start_memory" => integer 3975344
        "stop_time" => float 1430081873.5001
        "stop_memory" => integer 3975904
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5002
        "start_memory" => integer 3981592
        "stop_time" => float 1430081873.5003
        "stop_memory" => integer 3982096
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5012
        "start_memory" => integer 3982464
        "stop_time" => float 1430081873.5012
        "stop_memory" => integer 3983040
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5022
        "start_memory" => integer 3987416
        "stop_time" => float 1430081873.5023
        "stop_memory" => integer 3987992
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.503
        "start_memory" => integer 3996472
        "stop_time" => float 1430081873.503
        "stop_memory" => integer 3997080
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5034
        "start_memory" => integer 4004512
        "stop_time" => float 1430081873.5034
        "stop_memory" => integer 4005088
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5037
        "start_memory" => integer 4007488
        "stop_time" => float 1430081873.5038
        "stop_memory" => integer 4008072
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5043
        "start_memory" => integer 4015096
        "stop_time" => float 1430081873.5044
        "stop_memory" => integer 4015680
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5047
        "start_memory" => integer 4022680
        "stop_time" => float 1430081873.5048
        "stop_memory" => integer 4023232
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5049
        "start_memory" => integer 4026688
        "stop_time" => float 1430081873.505
        "stop_memory" => integer 4027272
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5055
        "start_memory" => integer 4033512
        "stop_time" => float 1430081873.5055
        "stop_memory" => integer 4034104
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5056
        "start_memory" => integer 4041296
        "stop_time" => float 1430081873.5057
        "stop_memory" => integer 4041848
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5058
        "start_memory" => integer 4045304
        "stop_time" => float 1430081873.5059
        "stop_memory" => integer 4045888
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5086
        "start_memory" => integer 4261936
        "stop_time" => float 1430081873.5086
        "stop_memory" => integer 4262528
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5095
        "start_memory" => integer 4323352
        "stop_time" => float 1430081873.5096
        "stop_memory" => integer 4323936
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5102
        "start_memory" => integer 4355944
        "stop_time" => float 1430081873.5102
        "stop_memory" => integer 4356512
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5107
        "start_memory" => integer 4380112
        "stop_time" => float 1430081873.5108
        "stop_memory" => integer 4380688
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5113
        "start_memory" => integer 4406824
        "stop_time" => float 1430081873.5113
        "stop_memory" => integer 4407416
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5118
        "start_memory" => integer 4431784
        "stop_time" => float 1430081873.5119
        "stop_memory" => integer 4432320
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.512
        "start_memory" => integer 4435744
        "stop_time" => float 1430081873.5121
        "stop_memory" => integer 4436320
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5128
        "start_memory" => integer 4442984
        "stop_time" => float 1430081873.5129
        "stop_memory" => integer 4443568
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.513
        "start_memory" => integer 4447040
        "stop_time" => float 1430081873.5131
        "stop_memory" => integer 4447616
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5139
        "start_memory" => integer 4472608
        "stop_time" => float 1430081873.5139
        "stop_memory" => integer 4473184
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.514
        "start_memory" => integer 4476656
        "stop_time" => float 1430081873.5141
        "stop_memory" => integer 4477248
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5147
        "start_memory" => integer 4488120
        "stop_time" => float 1430081873.5147
        "stop_memory" => integer 4488704
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5148
        "start_memory" => integer 4492224
        "stop_time" => float 1430081873.5149
        "stop_memory" => integer 4492808
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5152
        "start_memory" => integer 4503224
        "stop_time" => float 1430081873.5153
        "stop_memory" => integer 4503808
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5154
        "start_memory" => integer 4507336
        "stop_time" => float 1430081873.5154
        "stop_memory" => integer 4507936
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5158
        "start_memory" => integer 4520504
        "stop_time" => float 1430081873.5158
        "stop_memory" => integer 4521096
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5159
        "start_memory" => integer 4524672
        "stop_time" => float 1430081873.516
        "stop_memory" => integer 4525280
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5162
        "start_memory" => integer 4530688
        "stop_time" => float 1430081873.5163
        "stop_memory" => integer 4531256
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5164
        "start_memory" => integer 4534776
        "stop_time" => float 1430081873.5165
        "stop_memory" => integer 4535376
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5166
        "start_memory" => integer 4541368
        "stop_time" => float 1430081873.5167
        "stop_memory" => integer 4541944
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5168
        "start_memory" => integer 4545464
        "stop_time" => float 1430081873.5168
        "stop_memory" => integer 4546048
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.518
        "start_memory" => integer 4611696
        "stop_time" => float 1430081873.5181
        "stop_memory" => integer 4612296
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5182
        "start_memory" => integer 4615872
        "stop_time" => float 1430081873.5183
        "stop_memory" => integer 4616480
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5188
        "start_memory" => integer 4633120
        "stop_time" => float 1430081873.5189
        "stop_memory" => integer 4633704
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.519
        "start_memory" => integer 4637296
        "stop_time" => float 1430081873.5191
        "stop_memory" => integer 4637904
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5196
        "start_memory" => integer 4653352
        "stop_time" => float 1430081873.5197
        "stop_memory" => integer 4653920
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5198
        "start_memory" => integer 4657456
        "stop_time" => float 1430081873.5199
        "stop_memory" => integer 4658056
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5205
        "start_memory" => integer 4674480
        "stop_time" => float 1430081873.5205
        "stop_memory" => integer 4675040
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5206
        "start_memory" => integer 4678528
        "stop_time" => float 1430081873.5207
        "stop_memory" => integer 4679120
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5209
        "start_memory" => integer 4684112
        "stop_time" => float 1430081873.5209
        "stop_memory" => integer 4684680
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.521
        "start_memory" => integer 4688176
        "stop_time" => float 1430081873.5211
        "stop_memory" => integer 4688768
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5217
        "start_memory" => integer 4698632
        "stop_time" => float 1430081873.5218
        "stop_memory" => integer 4699216
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5219
        "start_memory" => integer 4702760
        "stop_time" => float 1430081873.522
        "stop_memory" => integer 4703360
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5225
        "start_memory" => integer 4707760
        "stop_time" => float 1430081873.5225
        "stop_memory" => integer 4708336
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5226
        "start_memory" => integer 4711856
        "stop_time" => float 1430081873.5227
        "stop_memory" => integer 4712456
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5233
        "start_memory" => integer 4722496
        "stop_time" => float 1430081873.5234
        "stop_memory" => integer 4723072
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5235
        "start_memory" => integer 4726592
        "stop_time" => float 1430081873.5235
        "stop_memory" => integer 4727192
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5243
        "start_memory" => integer 4753048
        "stop_time" => float 1430081873.5243
        "stop_memory" => integer 4753640
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5245
        "start_memory" => integer 4757208
        "stop_time" => float 1430081873.5245
        "stop_memory" => integer 4757800
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5256
        "start_memory" => integer 4769040
        "stop_time" => float 1430081873.5256
        "stop_memory" => integer 4769632
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5257
        "start_memory" => integer 4773208
        "stop_time" => float 1430081873.5258
        "stop_memory" => integer 4773816
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5267
        "start_memory" => integer 4783480
        "stop_time" => float 1430081873.5268
        "stop_memory" => integer 4784048
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5268
        "start_memory" => integer 4787584
        "stop_time" => float 1430081873.5269
        "stop_memory" => integer 4788184
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5273
        "start_memory" => integer 4806224
        "stop_time" => float 1430081873.5273
        "stop_memory" => integer 4806816
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5274
        "start_memory" => integer 4810392
        "stop_time" => float 1430081873.5274
        "stop_memory" => integer 4811000
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5278
        "start_memory" => integer 4828160
        "stop_time" => float 1430081873.5279
        "stop_memory" => integer 4828744
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5279
        "start_memory" => integer 4832336
        "stop_time" => float 1430081873.528
        "stop_memory" => integer 4832944
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5283
        "start_memory" => integer 4848776
        "stop_time" => float 1430081873.5284
        "stop_memory" => integer 4849360
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5285
        "start_memory" => integer 4852936
        "stop_time" => float 1430081873.5285
        "stop_memory" => integer 4853544
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5289
        "start_memory" => integer 4870472
        "stop_time" => float 1430081873.5289
        "stop_memory" => integer 4871040
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.529
        "start_memory" => integer 4874584
        "stop_time" => float 1430081873.529
        "stop_memory" => integer 4875184
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5294
        "start_memory" => integer 4893016
        "stop_time" => float 1430081873.5294
        "stop_memory" => integer 4893592
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5295
        "start_memory" => integer 4897112
        "stop_time" => float 1430081873.5296
        "stop_memory" => integer 4897712
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5299
        "start_memory" => integer 4904808
        "stop_time" => float 1430081873.53
        "stop_memory" => integer 4905384
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.53
        "start_memory" => integer 4908912
        "stop_time" => float 1430081873.5301
        "stop_memory" => integer 4909512
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5305
        "start_memory" => integer 4919840
        "stop_time" => float 1430081873.5305
        "stop_memory" => integer 4920432
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5306
        "start_memory" => integer 4924024
        "stop_time" => float 1430081873.5306
        "stop_memory" => integer 4924632
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5314
        "start_memory" => integer 4933296
        "stop_time" => float 1430081873.5314
        "stop_memory" => integer 4933880
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5315
        "start_memory" => integer 4937472
        "stop_time" => float 1430081873.5316
        "stop_memory" => integer 4938080
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5323
        "start_memory" => integer 4945792
        "stop_time" => float 1430081873.5323
        "stop_memory" => integer 4946360
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5324
        "start_memory" => integer 4949904
        "stop_time" => float 1430081873.5324
        "stop_memory" => integer 4950504
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5328
        "start_memory" => integer 4956112
        "stop_time" => float 1430081873.5328
        "stop_memory" => integer 4956688
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5329
        "start_memory" => integer 4960232
        "stop_time" => float 1430081873.5329
        "stop_memory" => integer 4960832
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5341
        "start_memory" => integer 4969424
        "stop_time" => float 1430081873.5341
        "stop_memory" => integer 4970000
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5342
        "start_memory" => integer 4973520
        "stop_time" => float 1430081873.5343
        "stop_memory" => integer 4974120
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5354
        "start_memory" => integer 5020064
        "stop_time" => float 1430081873.5355
        "stop_memory" => integer 5020608
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5355
        "start_memory" => integer 5024056
        "stop_time" => float 1430081873.5356
        "stop_memory" => integer 5024640
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5381
        "start_memory" => integer 5039616
        "stop_time" => float 1430081873.5382
        "stop_memory" => integer 5040176
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5382
        "start_memory" => integer 5043656
        "stop_time" => float 1430081873.5383
        "stop_memory" => integer 5044240
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5388
        "start_memory" => integer 5062936
        "stop_time" => float 1430081873.5388
        "stop_memory" => integer 5063496
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5389
        "start_memory" => integer 5066976
        "stop_time" => float 1430081873.539
        "stop_memory" => integer 5067560
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5395
        "start_memory" => integer 5112304
        "stop_time" => float 1430081873.5396
        "stop_memory" => integer 5112880
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5397
        "start_memory" => integer 5116376
        "stop_time" => float 1430081873.5397
        "stop_memory" => integer 5116968
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5401
        "start_memory" => integer 5137664
        "stop_time" => float 1430081873.5402
        "stop_memory" => integer 5138248
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5403
        "start_memory" => integer 5143840
        "stop_time" => float 1430081873.5403
        "stop_memory" => integer 5144448
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5412
        "start_memory" => integer 5195320
        "stop_time" => float 1430081873.5412
        "stop_memory" => integer 5195872
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5413
        "start_memory" => integer 5199392
        "stop_time" => float 1430081873.5414
        "stop_memory" => integer 5199992
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5418
        "start_memory" => integer 5222624
        "stop_time" => float 1430081873.5418
        "stop_memory" => integer 5223184
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5419
        "start_memory" => integer 5226712
        "stop_time" => float 1430081873.542
        "stop_memory" => integer 5227280
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5429
        "start_memory" => integer 5299768
        "stop_time" => float 1430081873.5429
        "stop_memory" => integer 5300336
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.543
        "start_memory" => integer 5303832
        "stop_time" => float 1430081873.5431
        "stop_memory" => integer 5304440
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5464
        "start_memory" => integer 5327328
        "stop_time" => float 1430081873.5464
        "stop_memory" => integer 5327888
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5465
        "start_memory" => integer 5331360
        "stop_time" => float 1430081873.5466
        "stop_memory" => integer 5331944
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5478
        "start_memory" => integer 5478056
        "stop_time" => float 1430081873.5479
        "stop_memory" => integer 5478632
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.548
        "start_memory" => integer 5482152
        "stop_time" => float 1430081873.5481
        "stop_memory" => integer 5482744
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5487
        "start_memory" => integer 5497664
        "stop_time" => float 1430081873.5487
        "stop_memory" => integer 5498248
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1430081873.5489
        "start_memory" => integer 5466608
        "stop_time" => float 1430081873.549
        "stop_memory" => integer 5468936
    )
)

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