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 1432988705.3416
        "start_memory" => integer 899528
        "stop_time" => float 1432988705.5478
        "stop_memory" => integer 5469104
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3416
        "start_memory" => integer 901816
        "stop_time" => float 1432988705.3417
        "stop_memory" => integer 902504
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3423
        "start_memory" => integer 979344
        "stop_time" => float 1432988705.3423
        "stop_memory" => integer 979904
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3424
        "start_memory" => integer 983936
        "stop_time" => float 1432988705.3424
        "stop_memory" => integer 984528
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3425
        "start_memory" => integer 992192
        "stop_time" => float 1432988705.3426
        "stop_memory" => integer 992744
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3427
        "start_memory" => integer 996408
        "stop_time" => float 1432988705.3427
        "stop_memory" => integer 996992
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3428
        "start_memory" => integer 1000256
        "stop_time" => float 1432988705.3429
        "stop_memory" => integer 1000848
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3458
        "start_memory" => integer 1322512
        "stop_time" => float 1432988705.3458
        "stop_memory" => integer 1323048
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3459
        "start_memory" => integer 1326472
        "stop_time" => float 1432988705.346
        "stop_memory" => integer 1327112
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3462
        "start_memory" => integer 1345960
        "stop_time" => float 1432988705.3463
        "stop_memory" => integer 1346528
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3464
        "start_memory" => integer 1349976
        "stop_time" => float 1432988705.3464
        "stop_memory" => integer 1350544
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3472
        "start_memory" => integer 1450296
        "stop_time" => float 1432988705.3473
        "stop_memory" => integer 1450896
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3473
        "start_memory" => integer 1454416
        "stop_time" => float 1432988705.3474
        "stop_memory" => integer 1455016
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3479
        "start_memory" => integer 1564232
        "stop_time" => float 1432988705.348
        "stop_memory" => integer 1564776
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3481
        "start_memory" => integer 1568216
        "stop_time" => float 1432988705.3481
        "stop_memory" => integer 1568784
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3485
        "start_memory" => integer 1602984
        "stop_time" => float 1432988705.3485
        "stop_memory" => integer 1603600
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3486
        "start_memory" => integer 1606136
        "stop_time" => float 1432988705.3486
        "stop_memory" => integer 1606848
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3487
        "start_memory" => integer 1610368
        "stop_time" => float 1432988705.3487
        "stop_memory" => integer 1610968
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3489
        "start_memory" => integer 1612680
        "stop_time" => float 1432988705.3489
        "stop_memory" => integer 1613280
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.349
        "start_memory" => integer 1616808
        "stop_time" => float 1432988705.3491
        "stop_memory" => integer 1617384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3494
        "start_memory" => integer 1646904
        "stop_time" => float 1432988705.3494
        "stop_memory" => integer 1647480
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3495
        "start_memory" => integer 1650968
        "stop_time" => float 1432988705.3495
        "stop_memory" => integer 1651568
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3502
        "start_memory" => integer 1712856
        "stop_time" => float 1432988705.3502
        "stop_memory" => integer 1713408
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3503
        "start_memory" => integer 1716872
        "stop_time" => float 1432988705.3503
        "stop_memory" => integer 1717440
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.3518
        "start_memory" => integer 1770552
        "stop_time" => float 1432988705.3519
        "stop_memory" => integer 1771168
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4149
        "start_memory" => integer 1809088
        "stop_time" => float 1432988705.4149
        "stop_memory" => integer 1809656
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.415
        "start_memory" => integer 1813096
        "stop_time" => float 1432988705.415
        "stop_memory" => integer 1813680
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4157
        "start_memory" => integer 1848024
        "stop_time" => float 1432988705.4157
        "stop_memory" => integer 1848600
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4158
        "start_memory" => integer 1852096
        "stop_time" => float 1432988705.4158
        "stop_memory" => integer 1852688
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4163
        "start_memory" => integer 1871544
        "stop_time" => float 1432988705.4163
        "stop_memory" => integer 1872112
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4164
        "start_memory" => integer 1875592
        "stop_time" => float 1432988705.4164
        "stop_memory" => integer 1876184
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4172
        "start_memory" => integer 1923784
        "stop_time" => float 1432988705.4172
        "stop_memory" => integer 1924384
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4173
        "start_memory" => integer 1935976
        "stop_time" => float 1432988705.4174
        "stop_memory" => integer 1936808
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4174
        "start_memory" => integer 1940320
        "stop_time" => float 1432988705.4175
        "stop_memory" => integer 1940904
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.418
        "start_memory" => integer 1979032
        "stop_time" => float 1432988705.418
        "stop_memory" => integer 1979632
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4182
        "start_memory" => integer 1991776
        "stop_time" => float 1432988705.4182
        "stop_memory" => integer 1992352
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4186
        "start_memory" => integer 2019408
        "stop_time" => float 1432988705.4186
        "stop_memory" => integer 2020008
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4188
        "start_memory" => integer 2028896
        "stop_time" => float 1432988705.4189
        "stop_memory" => integer 2029472
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4191
        "start_memory" => integer 2042672
        "stop_time" => float 1432988705.4191
        "stop_memory" => integer 2043272
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4193
        "start_memory" => integer 2050352
        "stop_time" => float 1432988705.4193
        "stop_memory" => integer 2050944
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4195
        "start_memory" => integer 2064328
        "stop_time" => float 1432988705.4196
        "stop_memory" => integer 2064920
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4199
        "start_memory" => integer 2078600
        "stop_time" => float 1432988705.4199
        "stop_memory" => integer 2079192
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4201
        "start_memory" => integer 2088728
        "stop_time" => float 1432988705.4202
        "stop_memory" => integer 2089320
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4204
        "start_memory" => integer 2097992
        "stop_time" => float 1432988705.4204
        "stop_memory" => integer 2098584
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4207
        "start_memory" => integer 2143928
        "stop_time" => float 1432988705.4207
        "stop_memory" => integer 2144504
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4211
        "start_memory" => integer 2167520
        "stop_time" => float 1432988705.4211
        "stop_memory" => integer 2168120
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4213
        "start_memory" => integer 2181480
        "stop_time" => float 1432988705.4213
        "stop_memory" => integer 2182056
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4216
        "start_memory" => integer 2201392
        "stop_time" => float 1432988705.4217
        "stop_memory" => integer 2201976
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4219
        "start_memory" => integer 2215656
        "stop_time" => float 1432988705.4219
        "stop_memory" => integer 2216224
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.422
        "start_memory" => integer 2219696
        "stop_time" => float 1432988705.422
        "stop_memory" => integer 2220296
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4287
        "start_memory" => integer 2310904
        "stop_time" => float 1432988705.4288
        "stop_memory" => integer 2311480
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4289
        "start_memory" => integer 2314992
        "stop_time" => float 1432988705.4289
        "stop_memory" => integer 2315584
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4316
        "start_memory" => integer 2334800
        "stop_time" => float 1432988705.4316
        "stop_memory" => integer 2335384
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4317
        "start_memory" => integer 2338952
        "stop_time" => float 1432988705.4317
        "stop_memory" => integer 2339552
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4345
        "start_memory" => integer 2358832
        "stop_time" => float 1432988705.4346
        "stop_memory" => integer 2359392
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4346
        "start_memory" => integer 2362888
        "stop_time" => float 1432988705.4347
        "stop_memory" => integer 2363480
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4352
        "start_memory" => integer 2417264
        "stop_time" => float 1432988705.4352
        "stop_memory" => integer 2417864
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4382
        "start_memory" => integer 2425304
        "stop_time" => float 1432988705.4383
        "stop_memory" => integer 2425880
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4383
        "start_memory" => integer 2429416
        "stop_time" => float 1432988705.4384
        "stop_memory" => integer 2430016
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4476
        "start_memory" => integer 2469784
        "stop_time" => float 1432988705.4476
        "stop_memory" => integer 2470360
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4477
        "start_memory" => integer 2473904
        "stop_time" => float 1432988705.4477
        "stop_memory" => integer 2474504
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4479
        "start_memory" => integer 2490248
        "stop_time" => float 1432988705.4479
        "stop_memory" => integer 2490824
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4483
        "start_memory" => integer 2498264
        "stop_time" => float 1432988705.4483
        "stop_memory" => integer 2498832
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4484
        "start_memory" => integer 2502320
        "stop_time" => float 1432988705.4484
        "stop_memory" => integer 2502912
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4492
        "start_memory" => integer 2552544
        "stop_time" => float 1432988705.4492
        "stop_memory" => integer 2553640
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4493
        "start_memory" => integer 2557160
        "stop_time" => float 1432988705.4493
        "stop_memory" => integer 2557760
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4528
        "start_memory" => integer 2577296
        "stop_time" => float 1432988705.4528
        "stop_memory" => integer 2577856
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4529
        "start_memory" => integer 2581344
        "stop_time" => float 1432988705.453
        "stop_memory" => integer 2581936
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4535
        "start_memory" => integer 2597240
        "stop_time" => float 1432988705.4536
        "stop_memory" => integer 2597776
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4537
        "start_memory" => integer 2601200
        "stop_time" => float 1432988705.4537
        "stop_memory" => integer 2601776
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4553
        "start_memory" => integer 2608520
        "stop_time" => float 1432988705.4553
        "stop_memory" => integer 2609136
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4557
        "start_memory" => integer 2616640
        "stop_time" => float 1432988705.4558
        "stop_memory" => integer 2617232
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4561
        "start_memory" => integer 2641896
        "stop_time" => float 1432988705.4561
        "stop_memory" => integer 2642400
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4572
        "start_memory" => integer 2643696
        "stop_time" => float 1432988705.4573
        "stop_memory" => integer 2644288
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4586
        "start_memory" => integer 2663160
        "stop_time" => float 1432988705.4586
        "stop_memory" => integer 2663720
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4587
        "start_memory" => integer 2667240
        "stop_time" => float 1432988705.4588
        "stop_memory" => integer 2667832
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.461
        "start_memory" => integer 2679288
        "stop_time" => float 1432988705.4611
        "stop_memory" => integer 2679872
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4621
        "start_memory" => integer 2683912
        "stop_time" => float 1432988705.4622
        "stop_memory" => integer 2684464
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4622
        "start_memory" => integer 2687912
        "stop_time" => float 1432988705.4623
        "stop_memory" => integer 2688496
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4628
        "start_memory" => integer 2705936
        "stop_time" => float 1432988705.4629
        "stop_memory" => integer 2706512
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4629
        "start_memory" => integer 2709992
        "stop_time" => float 1432988705.463
        "stop_memory" => integer 2710584
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4647
        "start_memory" => integer 2797240
        "stop_time" => float 1432988705.4647
        "stop_memory" => integer 2797840
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4648
        "start_memory" => integer 2801408
        "stop_time" => float 1432988705.4648
        "stop_memory" => integer 2802000
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4649
        "start_memory" => integer 2805744
        "stop_time" => float 1432988705.465
        "stop_memory" => integer 2806304
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4654
        "start_memory" => integer 2822392
        "stop_time" => float 1432988705.4654
        "stop_memory" => integer 2823000
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4655
        "start_memory" => integer 2826568
        "stop_time" => float 1432988705.4655
        "stop_memory" => integer 2827176
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4665
        "start_memory" => integer 2832256
        "stop_time" => float 1432988705.4666
        "stop_memory" => integer 2832824
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4666
        "start_memory" => integer 2836344
        "stop_time" => float 1432988705.4667
        "stop_memory" => integer 2836944
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4678
        "start_memory" => integer 2924672
        "stop_time" => float 1432988705.4678
        "stop_memory" => integer 2925264
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4679
        "start_memory" => integer 2928832
        "stop_time" => float 1432988705.4679
        "stop_memory" => integer 2929440
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4681
        "start_memory" => integer 2941544
        "stop_time" => float 1432988705.4681
        "stop_memory" => integer 2942112
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4682
        "start_memory" => integer 2945664
        "stop_time" => float 1432988705.4682
        "stop_memory" => integer 2946280
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.469
        "start_memory" => integer 2990160
        "stop_time" => float 1432988705.4691
        "stop_memory" => integer 2990736
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4692
        "start_memory" => integer 2994264
        "stop_time" => float 1432988705.4692
        "stop_memory" => integer 2994864
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4699
        "start_memory" => integer 3034592
        "stop_time" => float 1432988705.4699
        "stop_memory" => integer 3035168
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.47
        "start_memory" => integer 3038688
        "stop_time" => float 1432988705.47
        "stop_memory" => integer 3039288
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4707
        "start_memory" => integer 3066568
        "stop_time" => float 1432988705.4707
        "stop_memory" => integer 3067160
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4708
        "start_memory" => integer 3070736
        "stop_time" => float 1432988705.4709
        "stop_memory" => integer 3071344
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4716
        "start_memory" => integer 3102888
        "stop_time" => float 1432988705.4716
        "stop_memory" => integer 3103488
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4717
        "start_memory" => integer 3107112
        "stop_time" => float 1432988705.4718
        "stop_memory" => integer 3107728
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4719
        "start_memory" => integer 3120944
        "stop_time" => float 1432988705.472
        "stop_memory" => integer 3121536
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4721
        "start_memory" => integer 3126192
        "stop_time" => float 1432988705.4721
        "stop_memory" => integer 3126808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4729
        "start_memory" => integer 3178208
        "stop_time" => float 1432988705.473
        "stop_memory" => integer 3178800
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4731
        "start_memory" => integer 3182424
        "stop_time" => float 1432988705.4731
        "stop_memory" => integer 3183040
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4738
        "start_memory" => integer 3215224
        "stop_time" => float 1432988705.4739
        "stop_memory" => integer 3215816
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.474
        "start_memory" => integer 3219432
        "stop_time" => float 1432988705.474
        "stop_memory" => integer 3220048
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4747
        "start_memory" => integer 3243624
        "stop_time" => float 1432988705.4747
        "stop_memory" => integer 3244216
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4748
        "start_memory" => integer 3247840
        "stop_time" => float 1432988705.4748
        "stop_memory" => integer 3248456
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4757
        "start_memory" => integer 3317040
        "stop_time" => float 1432988705.4758
        "stop_memory" => integer 3317632
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4758
        "start_memory" => integer 3321256
        "stop_time" => float 1432988705.4759
        "stop_memory" => integer 3321872
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4773
        "start_memory" => integer 3358152
        "stop_time" => float 1432988705.4774
        "stop_memory" => integer 3358728
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4775
        "start_memory" => integer 3362304
        "stop_time" => float 1432988705.4775
        "stop_memory" => integer 3362912
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4781
        "start_memory" => integer 3381496
        "stop_time" => float 1432988705.4782
        "stop_memory" => integer 3382032
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4783
        "start_memory" => integer 3385472
        "stop_time" => float 1432988705.4783
        "stop_memory" => integer 3386040
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4793
        "start_memory" => integer 3452136
        "stop_time" => float 1432988705.4793
        "stop_memory" => integer 3452720
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4794
        "start_memory" => integer 3456192
        "stop_time" => float 1432988705.4794
        "stop_memory" => integer 3456768
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4821
        "start_memory" => integer 3470520
        "stop_time" => float 1432988705.4822
        "stop_memory" => integer 3471080
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4823
        "start_memory" => integer 3474528
        "stop_time" => float 1432988705.4824
        "stop_memory" => integer 3475112
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4842
        "start_memory" => integer 3497048
        "stop_time" => float 1432988705.4843
        "stop_memory" => integer 3497608
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4844
        "start_memory" => integer 3501048
        "stop_time" => float 1432988705.4844
        "stop_memory" => integer 3501616
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.485
        "start_memory" => integer 3524728
        "stop_time" => float 1432988705.4851
        "stop_memory" => integer 3525296
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4852
        "start_memory" => integer 3528736
        "stop_time" => float 1432988705.4852
        "stop_memory" => integer 3529304
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4857
        "start_memory" => integer 3546808
        "stop_time" => float 1432988705.4858
        "stop_memory" => integer 3547376
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4858
        "start_memory" => integer 3550816
        "stop_time" => float 1432988705.4859
        "stop_memory" => integer 3551384
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4869
        "start_memory" => integer 3598320
        "stop_time" => float 1432988705.487
        "stop_memory" => integer 3598888
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.487
        "start_memory" => integer 3602344
        "stop_time" => float 1432988705.4871
        "stop_memory" => integer 3602928
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4886
        "start_memory" => integer 3617504
        "stop_time" => float 1432988705.4887
        "stop_memory" => integer 3618064
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4888
        "start_memory" => integer 3621520
        "stop_time" => float 1432988705.4888
        "stop_memory" => integer 3622088
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.49
        "start_memory" => integer 3635088
        "stop_time" => float 1432988705.4901
        "stop_memory" => integer 3636696
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4902
        "start_memory" => integer 3640184
        "stop_time" => float 1432988705.4902
        "stop_memory" => integer 3640760
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4914
        "start_memory" => integer 3720056
        "stop_time" => float 1432988705.4915
        "stop_memory" => integer 3720632
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4916
        "start_memory" => integer 3724112
        "stop_time" => float 1432988705.4916
        "stop_memory" => integer 3724704
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4929
        "start_memory" => integer 3824168
        "stop_time" => float 1432988705.493
        "stop_memory" => integer 3824720
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4931
        "start_memory" => integer 3828192
        "stop_time" => float 1432988705.4931
        "stop_memory" => integer 3828776
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4947
        "start_memory" => integer 3861752
        "stop_time" => float 1432988705.4948
        "stop_memory" => integer 3862344
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4949
        "start_memory" => integer 3865856
        "stop_time" => float 1432988705.4949
        "stop_memory" => integer 3866456
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4955
        "start_memory" => integer 3892264
        "stop_time" => float 1432988705.4956
        "stop_memory" => integer 3892856
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4956
        "start_memory" => integer 3896424
        "stop_time" => float 1432988705.4957
        "stop_memory" => integer 3897032
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4966
        "start_memory" => integer 3915888
        "stop_time" => float 1432988705.4967
        "stop_memory" => integer 3916456
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4968
        "start_memory" => integer 3919976
        "stop_time" => float 1432988705.4968
        "stop_memory" => integer 3920576
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4982
        "start_memory" => integer 3939448
        "stop_time" => float 1432988705.4982
        "stop_memory" => integer 3940040
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.4996
        "start_memory" => integer 3948208
        "stop_time" => float 1432988705.4997
        "stop_memory" => integer 3948800
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.503
        "start_memory" => integer 3975400
        "stop_time" => float 1432988705.5031
        "stop_memory" => integer 3975960
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5032
        "start_memory" => integer 3981648
        "stop_time" => float 1432988705.5033
        "stop_memory" => integer 3982152
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5042
        "start_memory" => integer 3982520
        "stop_time" => float 1432988705.5042
        "stop_memory" => integer 3983096
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5052
        "start_memory" => integer 3987472
        "stop_time" => float 1432988705.5052
        "stop_memory" => integer 3988048
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.506
        "start_memory" => integer 3996528
        "stop_time" => float 1432988705.506
        "stop_memory" => integer 3997136
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5064
        "start_memory" => integer 4004568
        "stop_time" => float 1432988705.5064
        "stop_memory" => integer 4005144
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5067
        "start_memory" => integer 4007544
        "stop_time" => float 1432988705.5068
        "stop_memory" => integer 4008128
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.507
        "start_memory" => integer 4015152
        "stop_time" => float 1432988705.507
        "stop_memory" => integer 4015736
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5072
        "start_memory" => integer 4022752
        "stop_time" => float 1432988705.5073
        "stop_memory" => integer 4023304
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5073
        "start_memory" => integer 4026752
        "stop_time" => float 1432988705.5074
        "stop_memory" => integer 4027336
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5078
        "start_memory" => integer 4033592
        "stop_time" => float 1432988705.5079
        "stop_memory" => integer 4034184
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.508
        "start_memory" => integer 4041376
        "stop_time" => float 1432988705.508
        "stop_memory" => integer 4041928
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5081
        "start_memory" => integer 4045384
        "stop_time" => float 1432988705.5081
        "stop_memory" => integer 4045968
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5101
        "start_memory" => integer 4262016
        "stop_time" => float 1432988705.5102
        "stop_memory" => integer 4262608
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5108
        "start_memory" => integer 4323432
        "stop_time" => float 1432988705.5109
        "stop_memory" => integer 4324016
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5113
        "start_memory" => integer 4356024
        "stop_time" => float 1432988705.5114
        "stop_memory" => integer 4356592
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5117
        "start_memory" => integer 4380192
        "stop_time" => float 1432988705.5118
        "stop_memory" => integer 4380768
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5121
        "start_memory" => integer 4406904
        "stop_time" => float 1432988705.5122
        "stop_memory" => integer 4407496
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5125
        "start_memory" => integer 4431864
        "stop_time" => float 1432988705.5126
        "stop_memory" => integer 4432400
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5127
        "start_memory" => integer 4435824
        "stop_time" => float 1432988705.5127
        "stop_memory" => integer 4436400
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5132
        "start_memory" => integer 4443064
        "stop_time" => float 1432988705.5133
        "stop_memory" => integer 4443648
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5133
        "start_memory" => integer 4447120
        "stop_time" => float 1432988705.5134
        "stop_memory" => integer 4447696
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.514
        "start_memory" => integer 4472688
        "stop_time" => float 1432988705.514
        "stop_memory" => integer 4473264
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5141
        "start_memory" => integer 4476736
        "stop_time" => float 1432988705.5141
        "stop_memory" => integer 4477328
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5145
        "start_memory" => integer 4488200
        "stop_time" => float 1432988705.5146
        "stop_memory" => integer 4488784
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5146
        "start_memory" => integer 4492304
        "stop_time" => float 1432988705.5147
        "stop_memory" => integer 4492888
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5149
        "start_memory" => integer 4503304
        "stop_time" => float 1432988705.515
        "stop_memory" => integer 4503888
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.515
        "start_memory" => integer 4507416
        "stop_time" => float 1432988705.5151
        "stop_memory" => integer 4508016
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5153
        "start_memory" => integer 4520584
        "stop_time" => float 1432988705.5154
        "stop_memory" => integer 4521176
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5154
        "start_memory" => integer 4524752
        "stop_time" => float 1432988705.5155
        "stop_memory" => integer 4525360
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5157
        "start_memory" => integer 4530768
        "stop_time" => float 1432988705.5157
        "stop_memory" => integer 4531336
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5158
        "start_memory" => integer 4534856
        "stop_time" => float 1432988705.5158
        "stop_memory" => integer 4535456
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5159
        "start_memory" => integer 4541448
        "stop_time" => float 1432988705.516
        "stop_memory" => integer 4542024
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.516
        "start_memory" => integer 4545544
        "stop_time" => float 1432988705.5161
        "stop_memory" => integer 4546128
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5169
        "start_memory" => integer 4611776
        "stop_time" => float 1432988705.517
        "stop_memory" => integer 4612376
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5171
        "start_memory" => integer 4615952
        "stop_time" => float 1432988705.5171
        "stop_memory" => integer 4616560
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5175
        "start_memory" => integer 4633200
        "stop_time" => float 1432988705.5176
        "stop_memory" => integer 4633784
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5176
        "start_memory" => integer 4637376
        "stop_time" => float 1432988705.5177
        "stop_memory" => integer 4637984
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5181
        "start_memory" => integer 4653432
        "stop_time" => float 1432988705.5181
        "stop_memory" => integer 4654000
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5182
        "start_memory" => integer 4657536
        "stop_time" => float 1432988705.5182
        "stop_memory" => integer 4658136
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5186
        "start_memory" => integer 4674560
        "stop_time" => float 1432988705.5187
        "stop_memory" => integer 4675120
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5187
        "start_memory" => integer 4678608
        "stop_time" => float 1432988705.5188
        "stop_memory" => integer 4679200
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5189
        "start_memory" => integer 4684192
        "stop_time" => float 1432988705.5189
        "stop_memory" => integer 4684760
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.519
        "start_memory" => integer 4688256
        "stop_time" => float 1432988705.519
        "stop_memory" => integer 4688848
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5195
        "start_memory" => integer 4698712
        "stop_time" => float 1432988705.5195
        "stop_memory" => integer 4699296
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5196
        "start_memory" => integer 4702840
        "stop_time" => float 1432988705.5196
        "stop_memory" => integer 4703440
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.52
        "start_memory" => integer 4707840
        "stop_time" => float 1432988705.52
        "stop_memory" => integer 4708416
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5201
        "start_memory" => integer 4711936
        "stop_time" => float 1432988705.5201
        "stop_memory" => integer 4712536
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5206
        "start_memory" => integer 4722576
        "stop_time" => float 1432988705.5206
        "stop_memory" => integer 4723152
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5207
        "start_memory" => integer 4726672
        "stop_time" => float 1432988705.5207
        "stop_memory" => integer 4727272
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5213
        "start_memory" => integer 4753144
        "stop_time" => float 1432988705.5213
        "stop_memory" => integer 4753736
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5214
        "start_memory" => integer 4757304
        "stop_time" => float 1432988705.5214
        "stop_memory" => integer 4757896
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5224
        "start_memory" => integer 4769136
        "stop_time" => float 1432988705.5224
        "stop_memory" => integer 4769728
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5225
        "start_memory" => integer 4773304
        "stop_time" => float 1432988705.5226
        "stop_memory" => integer 4773912
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5236
        "start_memory" => integer 4783592
        "stop_time" => float 1432988705.5236
        "stop_memory" => integer 4784160
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5237
        "start_memory" => integer 4787696
        "stop_time" => float 1432988705.5237
        "stop_memory" => integer 4788296
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5242
        "start_memory" => integer 4806336
        "stop_time" => float 1432988705.5242
        "stop_memory" => integer 4806928
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5243
        "start_memory" => integer 4810504
        "stop_time" => float 1432988705.5243
        "stop_memory" => integer 4811112
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5248
        "start_memory" => integer 4828272
        "stop_time" => float 1432988705.5248
        "stop_memory" => integer 4828856
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5249
        "start_memory" => integer 4832448
        "stop_time" => float 1432988705.5249
        "stop_memory" => integer 4833056
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5253
        "start_memory" => integer 4848888
        "stop_time" => float 1432988705.5254
        "stop_memory" => integer 4849472
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5254
        "start_memory" => integer 4853048
        "stop_time" => float 1432988705.5255
        "stop_memory" => integer 4853656
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5259
        "start_memory" => integer 4870584
        "stop_time" => float 1432988705.5259
        "stop_memory" => integer 4871152
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.526
        "start_memory" => integer 4874696
        "stop_time" => float 1432988705.5261
        "stop_memory" => integer 4875296
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5265
        "start_memory" => integer 4893144
        "stop_time" => float 1432988705.5265
        "stop_memory" => integer 4893720
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5266
        "start_memory" => integer 4897240
        "stop_time" => float 1432988705.5266
        "stop_memory" => integer 4897840
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.527
        "start_memory" => integer 4904936
        "stop_time" => float 1432988705.527
        "stop_memory" => integer 4905512
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5271
        "start_memory" => integer 4909040
        "stop_time" => float 1432988705.5272
        "stop_memory" => integer 4909640
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5276
        "start_memory" => integer 4919968
        "stop_time" => float 1432988705.5276
        "stop_memory" => integer 4920560
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5277
        "start_memory" => integer 4924152
        "stop_time" => float 1432988705.5278
        "stop_memory" => integer 4924760
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5286
        "start_memory" => integer 4933424
        "stop_time" => float 1432988705.5286
        "stop_memory" => integer 4934008
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5287
        "start_memory" => integer 4937600
        "stop_time" => float 1432988705.5287
        "stop_memory" => integer 4938208
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5295
        "start_memory" => integer 4945920
        "stop_time" => float 1432988705.5295
        "stop_memory" => integer 4946488
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5296
        "start_memory" => integer 4950032
        "stop_time" => float 1432988705.5296
        "stop_memory" => integer 4950632
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.53
        "start_memory" => integer 4956240
        "stop_time" => float 1432988705.53
        "stop_memory" => integer 4956816
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5301
        "start_memory" => integer 4960360
        "stop_time" => float 1432988705.5302
        "stop_memory" => integer 4960960
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5314
        "start_memory" => integer 4969552
        "stop_time" => float 1432988705.5315
        "stop_memory" => integer 4970128
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5316
        "start_memory" => integer 4973648
        "stop_time" => float 1432988705.5316
        "stop_memory" => integer 4974248
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5329
        "start_memory" => integer 5020176
        "stop_time" => float 1432988705.533
        "stop_memory" => integer 5020720
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.533
        "start_memory" => integer 5024168
        "stop_time" => float 1432988705.5331
        "stop_memory" => integer 5024752
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5357
        "start_memory" => integer 5039704
        "stop_time" => float 1432988705.5358
        "stop_memory" => integer 5040264
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5359
        "start_memory" => integer 5043720
        "stop_time" => float 1432988705.5359
        "stop_memory" => integer 5044304
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5364
        "start_memory" => integer 5063032
        "stop_time" => float 1432988705.5365
        "stop_memory" => integer 5063592
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5366
        "start_memory" => integer 5067072
        "stop_time" => float 1432988705.5366
        "stop_memory" => integer 5067696
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5373
        "start_memory" => integer 5112528
        "stop_time" => float 1432988705.5374
        "stop_memory" => integer 5113104
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5374
        "start_memory" => integer 5116600
        "stop_time" => float 1432988705.5375
        "stop_memory" => integer 5117192
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5379
        "start_memory" => integer 5137880
        "stop_time" => float 1432988705.5379
        "stop_memory" => integer 5138464
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5381
        "start_memory" => integer 5144056
        "stop_time" => float 1432988705.5381
        "stop_memory" => integer 5144664
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5391
        "start_memory" => integer 5195512
        "stop_time" => float 1432988705.5392
        "stop_memory" => integer 5196064
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5392
        "start_memory" => integer 5199584
        "stop_time" => float 1432988705.5393
        "stop_memory" => integer 5200176
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5398
        "start_memory" => integer 5222824
        "stop_time" => float 1432988705.5399
        "stop_memory" => integer 5223376
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5399
        "start_memory" => integer 5226920
        "stop_time" => float 1432988705.54
        "stop_memory" => integer 5227480
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5411
        "start_memory" => integer 5300000
        "stop_time" => float 1432988705.5412
        "stop_memory" => integer 5300568
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5413
        "start_memory" => integer 5304032
        "stop_time" => float 1432988705.5413
        "stop_memory" => integer 5304640
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5447
        "start_memory" => integer 5327616
        "stop_time" => float 1432988705.5448
        "stop_memory" => integer 5328176
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5449
        "start_memory" => integer 5331648
        "stop_time" => float 1432988705.545
        "stop_memory" => integer 5332232
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5465
        "start_memory" => integer 5478264
        "stop_time" => float 1432988705.5466
        "stop_memory" => integer 5478840
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5466
        "start_memory" => integer 5482360
        "stop_time" => float 1432988705.5467
        "stop_memory" => integer 5482952
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5473
        "start_memory" => integer 5497936
        "stop_time" => float 1432988705.5474
        "stop_memory" => integer 5498520
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1432988705.5476
        "start_memory" => integer 5467000
        "stop_time" => float 1432988705.5477
        "stop_memory" => integer 5469536
    )
)

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