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-2012 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(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1425571451.1277
        "start_memory" => integer 1988816
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1277
        "start_memory" => integer 1991160
        "stop_time" => float 1425571451.1278
        "stop_memory" => integer 1991752
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1279
        "start_memory" => integer 1996704
        "stop_time" => float 1425571451.1279
        "stop_memory" => integer 1997296
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1286
        "start_memory" => integer 2122840
        "stop_time" => float 1425571451.1287
        "stop_memory" => integer 2123392
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1288
        "start_memory" => integer 2128312
        "stop_time" => float 1425571451.1289
        "stop_memory" => integer 2128920
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.129
        "start_memory" => integer 2140008
        "stop_time" => float 1425571451.1291
        "stop_memory" => integer 2140552
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1292
        "start_memory" => integer 2145264
        "stop_time" => float 1425571451.1293
        "stop_memory" => integer 2145840
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1295
        "start_memory" => integer 2155120
        "stop_time" => float 1425571451.1295
        "stop_memory" => integer 2155656
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1296
        "start_memory" => integer 2160312
        "stop_time" => float 1425571451.1297
        "stop_memory" => integer 2160960
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1307
        "start_memory" => integer 2321712
        "stop_time" => float 1425571451.1308
        "stop_memory" => integer 2322272
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1309
        "start_memory" => integer 2327120
        "stop_time" => float 1425571451.131
        "stop_memory" => integer 2327696
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1312
        "start_memory" => integer 2341168
        "stop_time" => float 1425571451.1313
        "stop_memory" => integer 2341720
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1314
        "start_memory" => integer 2346352
        "stop_time" => float 1425571451.1314
        "stop_memory" => integer 2346920
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1319
        "start_memory" => integer 2401744
        "stop_time" => float 1425571451.1319
        "stop_memory" => integer 2402336
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.132
        "start_memory" => integer 2403496
        "stop_time" => float 1425571451.1321
        "stop_memory" => integer 2404072
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1322
        "start_memory" => integer 2408944
        "stop_time" => float 1425571451.1323
        "stop_memory" => integer 2409520
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.133
        "start_memory" => integer 2474968
        "stop_time" => float 1425571451.1331
        "stop_memory" => integer 2475584
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1332
        "start_memory" => integer 2476368
        "stop_time" => float 1425571451.1332
        "stop_memory" => integer 2476944
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1375
        "start_memory" => integer 3145592
        "stop_time" => float 1425571451.1376
        "stop_memory" => integer 3146120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1377
        "start_memory" => integer 3151800
        "stop_time" => float 1425571451.1378
        "stop_memory" => integer 3152368
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1382
        "start_memory" => integer 3185112
        "stop_time" => float 1425571451.1383
        "stop_memory" => integer 3185656
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1384
        "start_memory" => integer 3190296
        "stop_time" => float 1425571451.1385
        "stop_memory" => integer 3190864
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1395
        "start_memory" => integer 3352496
        "stop_time" => float 1425571451.1396
        "stop_memory" => integer 3353072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1397
        "start_memory" => integer 3357952
        "stop_time" => float 1425571451.1397
        "stop_memory" => integer 3358536
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1398
        "start_memory" => integer 3361224
        "stop_time" => float 1425571451.1399
        "stop_memory" => integer 3361784
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.14
        "start_memory" => integer 3366656
        "stop_time" => float 1425571451.14
        "stop_memory" => integer 3367240
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1405
        "start_memory" => integer 3416904
        "stop_time" => float 1425571451.1405
        "stop_memory" => integer 3417448
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1406
        "start_memory" => integer 3422120
        "stop_time" => float 1425571451.1407
        "stop_memory" => integer 3422696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1414
        "start_memory" => integer 3520768
        "stop_time" => float 1425571451.1415
        "stop_memory" => integer 3521304
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1416
        "start_memory" => integer 3525944
        "stop_time" => float 1425571451.1417
        "stop_memory" => integer 3526512
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.1434
        "start_memory" => integer 3611128
        "stop_time" => float 1425571451.1435
        "stop_memory" => integer 3611720
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2067
        "start_memory" => integer 3653840
        "stop_time" => float 1425571451.2068
        "stop_memory" => integer 3654408
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2069
        "start_memory" => integer 3659072
        "stop_time" => float 1425571451.207
        "stop_memory" => integer 3659904
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2079
        "start_memory" => integer 3700504
        "stop_time" => float 1425571451.2079
        "stop_memory" => integer 3701056
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.208
        "start_memory" => integer 3705888
        "stop_time" => float 1425571451.208
        "stop_memory" => integer 3706464
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2087
        "start_memory" => integer 3730168
        "stop_time" => float 1425571451.2088
        "stop_memory" => integer 3730720
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2089
        "start_memory" => integer 3735400
        "stop_time" => float 1425571451.2089
        "stop_memory" => integer 3735976
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2098
        "start_memory" => integer 3803128
        "stop_time" => float 1425571451.2099
        "stop_memory" => integer 3803712
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.21
        "start_memory" => integer 3821704
        "stop_time" => float 1425571451.2101
        "stop_memory" => integer 3822264
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2102
        "start_memory" => integer 3827128
        "stop_time" => float 1425571451.2102
        "stop_memory" => integer 3827712
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2108
        "start_memory" => integer 3892840
        "stop_time" => float 1425571451.2108
        "stop_memory" => integer 3893416
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2111
        "start_memory" => integer 3912824
        "stop_time" => float 1425571451.2111
        "stop_memory" => integer 3913400
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2116
        "start_memory" => integer 3961440
        "stop_time" => float 1425571451.2117
        "stop_memory" => integer 3962016
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2119
        "start_memory" => integer 3972672
        "stop_time" => float 1425571451.212
        "stop_memory" => integer 3973248
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2123
        "start_memory" => integer 3991256
        "stop_time" => float 1425571451.2123
        "stop_memory" => integer 3991832
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2127
        "start_memory" => integer 4001504
        "stop_time" => float 1425571451.2127
        "stop_memory" => integer 4002080
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.213
        "start_memory" => integer 4022184
        "stop_time" => float 1425571451.213
        "stop_memory" => integer 4022760
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2134
        "start_memory" => integer 4043264
        "stop_time" => float 1425571451.2134
        "stop_memory" => integer 4043856
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2137
        "start_memory" => integer 4057080
        "stop_time" => float 1425571451.2138
        "stop_memory" => integer 4057648
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.214
        "start_memory" => integer 4069856
        "stop_time" => float 1425571451.214
        "stop_memory" => integer 4070432
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2143
        "start_memory" => integer 4118744
        "stop_time" => float 1425571451.2144
        "stop_memory" => integer 4119304
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2148
        "start_memory" => integer 4157776
        "stop_time" => float 1425571451.2148
        "stop_memory" => integer 4158360
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2151
        "start_memory" => integer 4177760
        "stop_time" => float 1425571451.2151
        "stop_memory" => integer 4178336
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2155
        "start_memory" => integer 4209496
        "stop_time" => float 1425571451.2155
        "stop_memory" => integer 4210072
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2158
        "start_memory" => integer 4228784
        "stop_time" => float 1425571451.2158
        "stop_memory" => integer 4229328
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2159
        "start_memory" => integer 4234000
        "stop_time" => float 1425571451.2159
        "stop_memory" => integer 4234576
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2162
        "start_memory" => integer 4265416
        "stop_time" => float 1425571451.2163
        "stop_memory" => integer 4265952
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2164
        "start_memory" => integer 4270600
        "stop_time" => float 1425571451.2165
        "stop_memory" => integer 4271168
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2192
        "start_memory" => integer 4412744
        "stop_time" => float 1425571451.2192
        "stop_memory" => integer 4413320
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2274
        "start_memory" => integer 4466112
        "stop_time" => float 1425571451.2274
        "stop_memory" => integer 4466664
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2275
        "start_memory" => integer 4471496
        "stop_time" => float 1425571451.2275
        "stop_memory" => integer 4472072
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2318
        "start_memory" => integer 4497560
        "stop_time" => float 1425571451.2318
        "stop_memory" => integer 4498144
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2319
        "start_memory" => integer 4503096
        "stop_time" => float 1425571451.2319
        "stop_memory" => integer 4503672
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2369
        "start_memory" => integer 4529288
        "stop_time" => float 1425571451.2369
        "stop_memory" => integer 4529848
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.237
        "start_memory" => integer 4534704
        "stop_time" => float 1425571451.2371
        "stop_memory" => integer 4535784
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2377
        "start_memory" => integer 4624520
        "stop_time" => float 1425571451.2377
        "stop_memory" => integer 4625120
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2431
        "start_memory" => integer 4632040
        "stop_time" => float 1425571451.2431
        "stop_memory" => integer 4632592
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2432
        "start_memory" => integer 4637472
        "stop_time" => float 1425571451.2432
        "stop_memory" => integer 4638056
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2582
        "start_memory" => integer 4694952
        "stop_time" => float 1425571451.2583
        "stop_memory" => integer 4695512
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2585
        "start_memory" => integer 4700432
        "stop_time" => float 1425571451.2585
        "stop_memory" => integer 4701016
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2587
        "start_memory" => integer 4724832
        "stop_time" => float 1425571451.2587
        "stop_memory" => integer 4725408
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2595
        "start_memory" => integer 4734496
        "stop_time" => float 1425571451.2595
        "stop_memory" => integer 4735056
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2596
        "start_memory" => integer 4739920
        "stop_time" => float 1425571451.2596
        "stop_memory" => integer 4740504
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2606
        "start_memory" => integer 4819984
        "stop_time" => float 1425571451.2607
        "stop_memory" => integer 4820544
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2607
        "start_memory" => integer 4825424
        "stop_time" => float 1425571451.2608
        "stop_memory" => integer 4826008
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2668
        "start_memory" => integer 4851704
        "stop_time" => float 1425571451.2668
        "stop_memory" => integer 4852264
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2669
        "start_memory" => integer 4857128
        "stop_time" => float 1425571451.267
        "stop_memory" => integer 4857712
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2679
        "start_memory" => integer 4879120
        "stop_time" => float 1425571451.2679
        "stop_memory" => integer 4879648
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.268
        "start_memory" => integer 4884296
        "stop_time" => float 1425571451.2681
        "stop_memory" => integer 4884872
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2702
        "start_memory" => integer 4895728
        "stop_time" => float 1425571451.2702
        "stop_memory" => integer 4896320
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2703
        "start_memory" => integer 4901208
        "stop_time" => float 1425571451.2703
        "stop_memory" => integer 4901784
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2737
        "start_memory" => integer 4946736
        "stop_time" => float 1425571451.2737
        "stop_memory" => integer 4947312
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2742
        "start_memory" => integer 4958456
        "stop_time" => float 1425571451.2743
        "stop_memory" => integer 4959000
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2744
        "start_memory" => integer 4963856
        "stop_time" => float 1425571451.2744
        "stop_memory" => integer 4964432
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2778
        "start_memory" => integer 4986928
        "stop_time" => float 1425571451.2778
        "stop_memory" => integer 4987496
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2798
        "start_memory" => integer 4993048
        "stop_time" => float 1425571451.2799
        "stop_memory" => integer 4993616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.28
        "start_memory" => integer 4998464
        "stop_time" => float 1425571451.28
        "stop_memory" => integer 4999048
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2823
        "start_memory" => integer 5132792
        "stop_time" => float 1425571451.2823
        "stop_memory" => integer 5133368
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2825
        "start_memory" => integer 5138320
        "stop_time" => float 1425571451.2825
        "stop_memory" => integer 5138912
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2831
        "start_memory" => integer 5153768
        "stop_time" => float 1425571451.2832
        "stop_memory" => integer 5154336
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2833
        "start_memory" => integer 5159296
        "stop_time" => float 1425571451.2833
        "stop_memory" => integer 5159888
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2851
        "start_memory" => integer 5165824
        "stop_time" => float 1425571451.2852
        "stop_memory" => integer 5166376
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2853
        "start_memory" => integer 5171248
        "stop_time" => float 1425571451.2854
        "stop_memory" => integer 5171824
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2865
        "start_memory" => integer 5316416
        "stop_time" => float 1425571451.2866
        "stop_memory" => integer 5316992
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2867
        "start_memory" => integer 5321952
        "stop_time" => float 1425571451.2867
        "stop_memory" => integer 5322544
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2869
        "start_memory" => integer 5343224
        "stop_time" => float 1425571451.2869
        "stop_memory" => integer 5343792
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.287
        "start_memory" => integer 5348680
        "stop_time" => float 1425571451.287
        "stop_memory" => integer 5349256
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.288
        "start_memory" => integer 5411560
        "stop_time" => float 1425571451.288
        "stop_memory" => integer 5412120
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2881
        "start_memory" => integer 5416992
        "stop_time" => float 1425571451.2881
        "stop_memory" => integer 5417576
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2889
        "start_memory" => integer 5483080
        "stop_time" => float 1425571451.2889
        "stop_memory" => integer 5483640
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.289
        "start_memory" => integer 5488504
        "stop_time" => float 1425571451.289
        "stop_memory" => integer 5489088
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.29
        "start_memory" => integer 5531744
        "stop_time" => float 1425571451.2901
        "stop_memory" => integer 5532320
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2902
        "start_memory" => integer 5537288
        "stop_time" => float 1425571451.2902
        "stop_memory" => integer 5537880
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2913
        "start_memory" => integer 5596720
        "stop_time" => float 1425571451.2913
        "stop_memory" => integer 5597304
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2914
        "start_memory" => integer 5602368
        "stop_time" => float 1425571451.2915
        "stop_memory" => integer 5602968
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2916
        "start_memory" => integer 5622640
        "stop_time" => float 1425571451.2916
        "stop_memory" => integer 5623216
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2917
        "start_memory" => integer 5628280
        "stop_time" => float 1425571451.2917
        "stop_memory" => integer 5628880
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.293
        "start_memory" => integer 5693328
        "stop_time" => float 1425571451.293
        "stop_memory" => integer 5693904
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2931
        "start_memory" => integer 5698968
        "stop_time" => float 1425571451.2931
        "stop_memory" => integer 5699568
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2942
        "start_memory" => integer 5747896
        "stop_time" => float 1425571451.2943
        "stop_memory" => integer 5748472
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2945
        "start_memory" => integer 5753528
        "stop_time" => float 1425571451.2945
        "stop_memory" => integer 5754128
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2955
        "start_memory" => integer 5795432
        "stop_time" => float 1425571451.2956
        "stop_memory" => integer 5796008
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2957
        "start_memory" => integer 5801072
        "stop_time" => float 1425571451.2957
        "stop_memory" => integer 5801672
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.297
        "start_memory" => integer 5914600
        "stop_time" => float 1425571451.297
        "stop_memory" => integer 5915176
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2971
        "start_memory" => integer 5920240
        "stop_time" => float 1425571451.2971
        "stop_memory" => integer 5920840
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2995
        "start_memory" => integer 5969480
        "stop_time" => float 1425571451.2996
        "stop_memory" => integer 5970040
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.2997
        "start_memory" => integer 5975008
        "stop_time" => float 1425571451.2997
        "stop_memory" => integer 5975600
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3006
        "start_memory" => integer 5998720
        "stop_time" => float 1425571451.3007
        "stop_memory" => integer 5999240
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3008
        "start_memory" => integer 6003880
        "stop_time" => float 1425571451.3008
        "stop_memory" => integer 6004448
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3022
        "start_memory" => integer 6119120
        "stop_time" => float 1425571451.3023
        "stop_memory" => integer 6119680
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3024
        "start_memory" => integer 6124352
        "stop_time" => float 1425571451.3024
        "stop_memory" => integer 6124944
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3069
        "start_memory" => integer 6145264
        "stop_time" => float 1425571451.307
        "stop_memory" => integer 6145800
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3072
        "start_memory" => integer 6150448
        "stop_time" => float 1425571451.3073
        "stop_memory" => integer 6151016
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3103
        "start_memory" => integer 6187696
        "stop_time" => float 1425571451.3103
        "stop_memory" => integer 6188240
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3104
        "start_memory" => integer 6192880
        "stop_time" => float 1425571451.3105
        "stop_memory" => integer 6193448
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3111
        "start_memory" => integer 6235864
        "stop_time" => float 1425571451.3112
        "stop_memory" => integer 6236408
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3112
        "start_memory" => integer 6241048
        "stop_time" => float 1425571451.3113
        "stop_memory" => integer 6241616
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3121
        "start_memory" => integer 6285832
        "stop_time" => float 1425571451.3122
        "stop_memory" => integer 6286376
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3122
        "start_memory" => integer 6291016
        "stop_time" => float 1425571451.3125
        "stop_memory" => integer 6292608
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3138
        "start_memory" => integer 6368144
        "stop_time" => float 1425571451.3139
        "stop_memory" => integer 6368688
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.314
        "start_memory" => integer 6373352
        "stop_time" => float 1425571451.314
        "stop_memory" => integer 6373920
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3167
        "start_memory" => integer 6396104
        "stop_time" => float 1425571451.3167
        "stop_memory" => integer 6396648
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3168
        "start_memory" => integer 6401304
        "stop_time" => float 1425571451.3169
        "stop_memory" => integer 6401872
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3183
        "start_memory" => integer 6431024
        "stop_time" => float 1425571451.3184
        "stop_memory" => integer 6431584
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3185
        "start_memory" => integer 6436432
        "stop_time" => float 1425571451.3186
        "stop_memory" => integer 6437008
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3192
        "start_memory" => integer 6457296
        "stop_time" => float 1425571451.3193
        "stop_memory" => integer 6457864
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3195
        "start_memory" => integer 6462800
        "stop_time" => float 1425571451.3196
        "stop_memory" => integer 6463384
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3203
        "start_memory" => integer 6478424
        "stop_time" => float 1425571451.3204
        "stop_memory" => integer 6478984
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3205
        "start_memory" => integer 6483920
        "stop_time" => float 1425571451.3205
        "stop_memory" => integer 6484504
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3212
        "start_memory" => integer 6499544
        "stop_time" => float 1425571451.3213
        "stop_memory" => integer 6500104
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3214
        "start_memory" => integer 6505040
        "stop_time" => float 1425571451.3214
        "stop_memory" => integer 6505624
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3222
        "start_memory" => integer 6520672
        "stop_time" => float 1425571451.3223
        "stop_memory" => integer 6521232
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3224
        "start_memory" => integer 6526168
        "stop_time" => float 1425571451.3224
        "stop_memory" => integer 6526752
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3232
        "start_memory" => integer 6541776
        "stop_time" => float 1425571451.3233
        "stop_memory" => integer 6542336
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3234
        "start_memory" => integer 6547272
        "stop_time" => float 1425571451.3234
        "stop_memory" => integer 6547856
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3243
        "start_memory" => integer 6562880
        "stop_time" => float 1425571451.3244
        "stop_memory" => integer 6563440
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3245
        "start_memory" => integer 6568376
        "stop_time" => float 1425571451.3246
        "stop_memory" => integer 6568960
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3253
        "start_memory" => integer 6584016
        "stop_time" => float 1425571451.3253
        "stop_memory" => integer 6584576
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3254
        "start_memory" => integer 6589512
        "stop_time" => float 1425571451.3255
        "stop_memory" => integer 6590096
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3264
        "start_memory" => integer 6605120
        "stop_time" => float 1425571451.3265
        "stop_memory" => integer 6605680
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3266
        "start_memory" => integer 6610616
        "stop_time" => float 1425571451.3266
        "stop_memory" => integer 6611200
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3274
        "start_memory" => integer 6626336
        "stop_time" => float 1425571451.3275
        "stop_memory" => integer 6626896
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3276
        "start_memory" => integer 6631832
        "stop_time" => float 1425571451.3277
        "stop_memory" => integer 6632416
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3283
        "start_memory" => integer 6647448
        "stop_time" => float 1425571451.3284
        "stop_memory" => integer 6648008
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3285
        "start_memory" => integer 6652944
        "stop_time" => float 1425571451.3286
        "stop_memory" => integer 6653528
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3293
        "start_memory" => integer 6668568
        "stop_time" => float 1425571451.3294
        "stop_memory" => integer 6669128
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3295
        "start_memory" => integer 6674064
        "stop_time" => float 1425571451.3296
        "stop_memory" => integer 6674648
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3303
        "start_memory" => integer 6689656
        "stop_time" => float 1425571451.3304
        "stop_memory" => integer 6690216
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3305
        "start_memory" => integer 6695152
        "stop_time" => float 1425571451.3306
        "stop_memory" => integer 6695736
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3314
        "start_memory" => integer 6710760
        "stop_time" => float 1425571451.3314
        "stop_memory" => integer 6711320
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3315
        "start_memory" => integer 6716256
        "stop_time" => float 1425571451.3316
        "stop_memory" => integer 6716840
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3322
        "start_memory" => integer 6731880
        "stop_time" => float 1425571451.3322
        "stop_memory" => integer 6732440
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3323
        "start_memory" => integer 6737376
        "stop_time" => float 1425571451.3324
        "stop_memory" => integer 6737960
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3331
        "start_memory" => integer 6753016
        "stop_time" => float 1425571451.3332
        "stop_memory" => integer 6753576
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3332
        "start_memory" => integer 6758512
        "stop_time" => float 1425571451.3333
        "stop_memory" => integer 6759096
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3341
        "start_memory" => integer 6774144
        "stop_time" => float 1425571451.3342
        "stop_memory" => integer 6774704
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3343
        "start_memory" => integer 6779640
        "stop_time" => float 1425571451.3343
        "stop_memory" => integer 6780224
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.335
        "start_memory" => integer 6795408
        "stop_time" => float 1425571451.3351
        "stop_memory" => integer 6795968
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3352
        "start_memory" => integer 6800904
        "stop_time" => float 1425571451.3352
        "stop_memory" => integer 6801488
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.336
        "start_memory" => integer 6816560
        "stop_time" => float 1425571451.3361
        "stop_memory" => integer 6817120
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3362
        "start_memory" => integer 6822056
        "stop_time" => float 1425571451.3362
        "stop_memory" => integer 6822640
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.337
        "start_memory" => integer 6837696
        "stop_time" => float 1425571451.3371
        "stop_memory" => integer 6838256
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3371
        "start_memory" => integer 6843192
        "stop_time" => float 1425571451.3373
        "stop_memory" => integer 6843776
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3381
        "start_memory" => integer 6858824
        "stop_time" => float 1425571451.3382
        "stop_memory" => integer 6859384
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3382
        "start_memory" => integer 6864320
        "stop_time" => float 1425571451.3383
        "stop_memory" => integer 6864904
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3392
        "start_memory" => integer 6879928
        "stop_time" => float 1425571451.3393
        "stop_memory" => integer 6880488
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3395
        "start_memory" => integer 6885424
        "stop_time" => float 1425571451.3395
        "stop_memory" => integer 6886008
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3401
        "start_memory" => integer 6901032
        "stop_time" => float 1425571451.3402
        "stop_memory" => integer 6901592
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3403
        "start_memory" => integer 6906528
        "stop_time" => float 1425571451.3403
        "stop_memory" => integer 6907112
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3411
        "start_memory" => integer 6922168
        "stop_time" => float 1425571451.3411
        "stop_memory" => integer 6922728
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3412
        "start_memory" => integer 6927664
        "stop_time" => float 1425571451.3413
        "stop_memory" => integer 6928248
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.342
        "start_memory" => integer 6943288
        "stop_time" => float 1425571451.342
        "stop_memory" => integer 6943848
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3421
        "start_memory" => integer 6948784
        "stop_time" => float 1425571451.3421
        "stop_memory" => integer 6949368
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3437
        "start_memory" => integer 6964632
        "stop_time" => float 1425571451.3437
        "stop_memory" => integer 6965192
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3438
        "start_memory" => integer 6970104
        "stop_time" => float 1425571451.3438
        "stop_memory" => integer 6970672
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3466
        "start_memory" => integer 7008720
        "stop_time" => float 1425571451.3466
        "stop_memory" => integer 7009272
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3467
        "start_memory" => integer 7013968
        "stop_time" => float 1425571451.3468
        "stop_memory" => integer 7014528
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3479
        "start_memory" => integer 7145608
        "stop_time" => float 1425571451.348
        "stop_memory" => integer 7146160
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3481
        "start_memory" => integer 7150840
        "stop_time" => float 1425571451.3481
        "stop_memory" => integer 7151416
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3497
        "start_memory" => integer 7320584
        "stop_time" => float 1425571451.3498
        "stop_memory" => integer 7321136
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3498
        "start_memory" => integer 7325824
        "stop_time" => float 1425571451.3499
        "stop_memory" => integer 7326384
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3521
        "start_memory" => integer 7382048
        "stop_time" => float 1425571451.3521
        "stop_memory" => integer 7382624
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3522
        "start_memory" => integer 7387536
        "stop_time" => float 1425571451.3522
        "stop_memory" => integer 7388104
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.353
        "start_memory" => integer 7428136
        "stop_time" => float 1425571451.353
        "stop_memory" => integer 7428712
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3531
        "start_memory" => integer 7433664
        "stop_time" => float 1425571451.3532
        "stop_memory" => integer 7434256
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3545
        "start_memory" => integer 7460200
        "stop_time" => float 1425571451.3546
        "stop_memory" => integer 7460768
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3547
        "start_memory" => integer 7465640
        "stop_time" => float 1425571451.3548
        "stop_memory" => integer 7466216
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3567
        "start_memory" => integer 7492272
        "stop_time" => float 1425571451.3568
        "stop_memory" => integer 7492848
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3603
        "start_memory" => integer 7503752
        "stop_time" => float 1425571451.3604
        "stop_memory" => integer 7504312
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3607
        "start_memory" => integer 7514176
        "stop_time" => float 1425571451.3608
        "stop_memory" => integer 7514744
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3622
        "start_memory" => integer 7525368
        "stop_time" => float 1425571451.3623
        "stop_memory" => integer 7525920
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3624
        "start_memory" => integer 7530640
        "stop_time" => float 1425571451.3624
        "stop_memory" => integer 7531216
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3631
        "start_memory" => integer 7536680
        "stop_time" => float 1425571451.3632
        "stop_memory" => integer 7537232
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3632
        "start_memory" => integer 7541960
        "stop_time" => float 1425571451.3634
        "stop_memory" => integer 7542536
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3642
        "start_memory" => integer 7547984
        "stop_time" => float 1425571451.3642
        "stop_memory" => integer 7548536
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3644
        "start_memory" => integer 7553280
        "stop_time" => float 1425571451.3645
        "stop_memory" => integer 7553856
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3658
        "start_memory" => integer 7565856
        "stop_time" => float 1425571451.3659
        "stop_memory" => integer 7566408
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.366
        "start_memory" => integer 7571056
        "stop_time" => float 1425571451.3661
        "stop_memory" => integer 7571624
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3669
        "start_memory" => integer 7574688
        "stop_time" => float 1425571451.367
        "stop_memory" => integer 7575264
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3672
        "start_memory" => integer 7584528
        "stop_time" => float 1425571451.3672
        "stop_memory" => integer 7585064
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3674
        "start_memory" => integer 7589712
        "stop_time" => float 1425571451.3674
        "stop_memory" => integer 7590280
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3707
        "start_memory" => integer 7965688
        "stop_time" => float 1425571451.3707
        "stop_memory" => integer 7966264
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3717
        "start_memory" => integer 8044832
        "stop_time" => float 1425571451.3717
        "stop_memory" => integer 8045416
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3724
        "start_memory" => integer 8090640
        "stop_time" => float 1425571451.3725
        "stop_memory" => integer 8091200
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3726
        "start_memory" => integer 8096064
        "stop_time" => float 1425571451.3727
        "stop_memory" => integer 8096648
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3732
        "start_memory" => integer 8105632
        "stop_time" => float 1425571451.3733
        "stop_memory" => integer 8106176
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3739
        "start_memory" => integer 8137640
        "stop_time" => float 1425571451.3739
        "stop_memory" => integer 8138200
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3744
        "start_memory" => integer 8172608
        "stop_time" => float 1425571451.3747
        "stop_memory" => integer 8173184
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3754
        "start_memory" => integer 8205296
        "stop_time" => float 1425571451.3755
        "stop_memory" => integer 8205832
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3756
        "start_memory" => integer 8210488
        "stop_time" => float 1425571451.3756
        "stop_memory" => integer 8211056
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3781
        "start_memory" => integer 8252864
        "stop_time" => float 1425571451.3781
        "stop_memory" => integer 8253456
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3782
        "start_memory" => integer 8258640
        "stop_time" => float 1425571451.3783
        "stop_memory" => integer 8259232
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3817
        "start_memory" => integer 8303344
        "stop_time" => float 1425571451.3818
        "stop_memory" => integer 8303896
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3819
        "start_memory" => integer 8308832
        "stop_time" => float 1425571451.3819
        "stop_memory" => integer 8309416
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.387
        "start_memory" => integer 8411104
        "stop_time" => float 1425571451.3871
        "stop_memory" => integer 8411632
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3872
        "start_memory" => integer 8416288
        "stop_time" => float 1425571451.3873
        "stop_memory" => integer 8416856
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3878
        "start_memory" => integer 8431784
        "stop_time" => float 1425571451.3879
        "stop_memory" => integer 8432336
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.388
        "start_memory" => integer 8436984
        "stop_time" => float 1425571451.388
        "stop_memory" => integer 8437552
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3888
        "start_memory" => integer 8503984
        "stop_time" => float 1425571451.3889
        "stop_memory" => integer 8504544
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.389
        "start_memory" => integer 8509400
        "stop_time" => float 1425571451.3891
        "stop_memory" => integer 8509976
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3897
        "start_memory" => integer 8533416
        "stop_time" => float 1425571451.3898
        "stop_memory" => integer 8534024
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3898
        "start_memory" => integer 8538944
        "stop_time" => float 1425571451.3899
        "stop_memory" => integer 8539536
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3911
        "start_memory" => integer 8610528
        "stop_time" => float 1425571451.3912
        "stop_memory" => integer 8611064
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3914
        "start_memory" => integer 8615936
        "stop_time" => float 1425571451.3914
        "stop_memory" => integer 8616488
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3921
        "start_memory" => integer 8644224
        "stop_time" => float 1425571451.3921
        "stop_memory" => integer 8644760
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3923
        "start_memory" => integer 8649416
        "stop_time" => float 1425571451.3923
        "stop_memory" => integer 8649984
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3936
        "start_memory" => integer 8771208
        "stop_time" => float 1425571451.3937
        "stop_memory" => integer 8771752
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3938
        "start_memory" => integer 8776424
        "stop_time" => float 1425571451.3938
        "stop_memory" => integer 8776992
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3996
        "start_memory" => integer 8808376
        "stop_time" => float 1425571451.3997
        "stop_memory" => integer 8808920
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.3998
        "start_memory" => integer 8813568
        "stop_time" => float 1425571451.3998
        "stop_memory" => integer 8814136
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.4009
        "start_memory" => integer 8914432
        "stop_time" => float 1425571451.4009
        "stop_memory" => integer 8914992
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.401
        "start_memory" => integer 8919704
        "stop_time" => float 1425571451.4011
        "stop_memory" => integer 8920280
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.402
        "start_memory" => integer 9028024
        "stop_time" => float 1425571451.4021
        "stop_memory" => integer 9028592
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.4022
        "start_memory" => integer 9033512
        "stop_time" => float 1425571451.4024
        "stop_memory" => integer 9034096
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.4034
        "start_memory" => integer 9055280
        "stop_time" => float 1425571451.4035
        "stop_memory" => integer 9055856
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.4038
        "start_memory" => integer 9020360
        "stop_time" => float 1425571451.4039
        "stop_memory" => integer 9022296
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.4045
        "start_memory" => integer 9093016
        "stop_time" => float 1425571451.4046
        "stop_memory" => integer 9094744
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425571451.4046
        "start_memory" => integer 9094504
        "stop_time" => float 1425571451.4047
        "stop_memory" => integer 9096232
    )
)

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