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 1734939011.5249
        "start_memory" => integer 582720
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.525
        "start_memory" => integer 584936
        "stop_time" => float 1734939011.5261
        "stop_memory" => integer 585600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5262
        "start_memory" => integer 588024
        "stop_time" => float 1734939011.5273
        "stop_memory" => integer 588632
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5273
        "start_memory" => integer 596848
        "stop_time" => float 1734939011.5284
        "stop_memory" => integer 597400
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5285
        "start_memory" => integer 599816
        "stop_time" => float 1734939011.5301
        "stop_memory" => integer 600408
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5301
        "start_memory" => integer 604464
        "stop_time" => float 1734939011.5311
        "stop_memory" => integer 605016
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5312
        "start_memory" => integer 607400
        "stop_time" => float 1734939011.5327
        "stop_memory" => integer 607984
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5328
        "start_memory" => integer 619256
        "stop_time" => float 1734939011.5342
        "stop_memory" => integer 619816
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5342
        "start_memory" => integer 622184
        "stop_time" => float 1734939011.5354
        "stop_memory" => integer 622832
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5355
        "start_memory" => integer 641712
        "stop_time" => float 1734939011.5367
        "stop_memory" => integer 642288
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5367
        "start_memory" => integer 644680
        "stop_time" => float 1734939011.5379
        "stop_memory" => integer 645256
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.538
        "start_memory" => integer 658776
        "stop_time" => float 1734939011.539
        "stop_memory" => integer 659320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5391
        "start_memory" => integer 661664
        "stop_time" => float 1734939011.5403
        "stop_memory" => integer 662240
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5404
        "start_memory" => integer 674616
        "stop_time" => float 1734939011.5414
        "stop_memory" => integer 675216
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5415
        "start_memory" => integer 676264
        "stop_time" => float 1734939011.5425
        "stop_memory" => integer 676800
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5425
        "start_memory" => integer 679152
        "stop_time" => float 1734939011.5437
        "stop_memory" => integer 679728
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5438
        "start_memory" => integer 683536
        "stop_time" => float 1734939011.5449
        "stop_memory" => integer 684216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.545
        "start_memory" => integer 686560
        "stop_time" => float 1734939011.5462
        "stop_memory" => integer 687136
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5463
        "start_memory" => integer 710720
        "stop_time" => float 1734939011.5473
        "stop_memory" => integer 711320
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5473
        "start_memory" => integer 713720
        "stop_time" => float 1734939011.5485
        "stop_memory" => integer 714320
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5485
        "start_memory" => integer 723472
        "stop_time" => float 1734939011.5498
        "stop_memory" => integer 723976
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5498
        "start_memory" => integer 724616
        "stop_time" => float 1734939011.5512
        "stop_memory" => integer 725192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5515
        "start_memory" => integer 879032
        "stop_time" => float 1734939011.5525
        "stop_memory" => integer 879616
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5526
        "start_memory" => integer 882016
        "stop_time" => float 1734939011.5538
        "stop_memory" => integer 882616
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5538
        "start_memory" => integer 883600
        "stop_time" => float 1734939011.5548
        "stop_memory" => integer 884176
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5548
        "start_memory" => integer 886576
        "stop_time" => float 1734939011.5559
        "stop_memory" => integer 887176
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5559
        "start_memory" => integer 893432
        "stop_time" => float 1734939011.5568
        "stop_memory" => integer 893992
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5568
        "start_memory" => integer 896360
        "stop_time" => float 1734939011.5577
        "stop_memory" => integer 896952
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5578
        "start_memory" => integer 920136
        "stop_time" => float 1734939011.5587
        "stop_memory" => integer 920672
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5587
        "start_memory" => integer 923016
        "stop_time" => float 1734939011.5598
        "stop_memory" => integer 923592
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939011.5605
        "start_memory" => integer 945984
        "stop_time" => float 1734939011.5615
        "stop_memory" => integer 946584
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2164
        "start_memory" => integer 987496
        "stop_time" => float 1734939012.2167
        "stop_memory" => integer 988072
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2167
        "start_memory" => integer 990424
        "stop_time" => float 1734939012.2169
        "stop_memory" => integer 991264
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2173
        "start_memory" => integer 1002832
        "stop_time" => float 1734939012.2175
        "stop_memory" => integer 1003408
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2175
        "start_memory" => integer 1005800
        "stop_time" => float 1734939012.2178
        "stop_memory" => integer 1006392
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2181
        "start_memory" => integer 1018240
        "stop_time" => float 1734939012.2189
        "stop_memory" => integer 1018808
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2189
        "start_memory" => integer 1021184
        "stop_time" => float 1734939012.2199
        "stop_memory" => integer 1021760
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2203
        "start_memory" => integer 1033904
        "stop_time" => float 1734939012.2207
        "stop_memory" => integer 1034496
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2208
        "start_memory" => integer 1040360
        "stop_time" => float 1734939012.2211
        "stop_memory" => integer 1040928
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2212
        "start_memory" => integer 1043320
        "stop_time" => float 1734939012.2216
        "stop_memory" => integer 1043912
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2217
        "start_memory" => integer 1052784
        "stop_time" => float 1734939012.2222
        "stop_memory" => integer 1053384
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2223
        "start_memory" => integer 1059704
        "stop_time" => float 1734939012.2227
        "stop_memory" => integer 1060280
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2228
        "start_memory" => integer 1065352
        "stop_time" => float 1734939012.2232
        "stop_memory" => integer 1065952
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2233
        "start_memory" => integer 1071440
        "stop_time" => float 1734939012.2238
        "stop_memory" => integer 1072016
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2239
        "start_memory" => integer 1080552
        "stop_time" => float 1734939012.2243
        "stop_memory" => integer 1081136
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2244
        "start_memory" => integer 1086520
        "stop_time" => float 1734939012.2248
        "stop_memory" => integer 1087104
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2249
        "start_memory" => integer 1094152
        "stop_time" => float 1734939012.2254
        "stop_memory" => integer 1094752
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2254
        "start_memory" => integer 1101944
        "stop_time" => float 1734939012.2259
        "stop_memory" => integer 1102536
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2259
        "start_memory" => integer 1109024
        "stop_time" => float 1734939012.2264
        "stop_memory" => integer 1109616
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2264
        "start_memory" => integer 1115616
        "stop_time" => float 1734939012.2269
        "stop_memory" => integer 1116208
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2269
        "start_memory" => integer 1152504
        "stop_time" => float 1734939012.2274
        "stop_memory" => integer 1153080
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2275
        "start_memory" => integer 1161120
        "stop_time" => float 1734939012.2279
        "stop_memory" => integer 1161720
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.228
        "start_memory" => integer 1169144
        "stop_time" => float 1734939012.2285
        "stop_memory" => integer 1169720
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2286
        "start_memory" => integer 1179088
        "stop_time" => float 1734939012.229
        "stop_memory" => integer 1179672
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2291
        "start_memory" => integer 1188352
        "stop_time" => float 1734939012.2294
        "stop_memory" => integer 1188904
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2294
        "start_memory" => integer 1191264
        "stop_time" => float 1734939012.2298
        "stop_memory" => integer 1191848
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2298
        "start_memory" => integer 1203728
        "stop_time" => float 1734939012.2308
        "stop_memory" => integer 1204288
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2308
        "start_memory" => integer 1206648
        "stop_time" => float 1734939012.232
        "stop_memory" => integer 1207216
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2333
        "start_memory" => integer 1250848
        "stop_time" => float 1734939012.2342
        "stop_memory" => integer 1251432
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2381
        "start_memory" => integer 1252032
        "stop_time" => float 1734939012.2384
        "stop_memory" => integer 1252608
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2385
        "start_memory" => integer 1255016
        "stop_time" => float 1734939012.2389
        "stop_memory" => integer 1255608
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2414
        "start_memory" => integer 1267576
        "stop_time" => float 1734939012.2418
        "stop_memory" => integer 1268160
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2418
        "start_memory" => integer 1270584
        "stop_time" => float 1734939012.2422
        "stop_memory" => integer 1271184
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2444
        "start_memory" => integer 1283048
        "stop_time" => float 1734939012.2448
        "stop_memory" => integer 1283608
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2448
        "start_memory" => integer 1286000
        "stop_time" => float 1734939012.2453
        "stop_memory" => integer 1287104
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2453
        "start_memory" => integer 1296960
        "stop_time" => float 1734939012.2457
        "stop_memory" => integer 1297560
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2484
        "start_memory" => integer 1306224
        "stop_time" => float 1734939012.2488
        "stop_memory" => integer 1306800
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2489
        "start_memory" => integer 1309216
        "stop_time" => float 1734939012.2492
        "stop_memory" => integer 1309800
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2566
        "start_memory" => integer 1329808
        "stop_time" => float 1734939012.257
        "stop_memory" => integer 1330392
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2571
        "start_memory" => integer 1332816
        "stop_time" => float 1734939012.2575
        "stop_memory" => integer 1333416
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2575
        "start_memory" => integer 1342296
        "stop_time" => float 1734939012.2578
        "stop_memory" => integer 1342872
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2582
        "start_memory" => integer 1349848
        "stop_time" => float 1734939012.2586
        "stop_memory" => integer 1350416
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2586
        "start_memory" => integer 1352800
        "stop_time" => float 1734939012.2589
        "stop_memory" => integer 1353392
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2593
        "start_memory" => integer 1366136
        "stop_time" => float 1734939012.2596
        "stop_memory" => integer 1366720
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2596
        "start_memory" => integer 1369120
        "stop_time" => float 1734939012.26
        "stop_memory" => integer 1369704
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2627
        "start_memory" => integer 1381936
        "stop_time" => float 1734939012.263
        "stop_memory" => integer 1382504
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.263
        "start_memory" => integer 1384888
        "stop_time" => float 1734939012.2634
        "stop_memory" => integer 1385480
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2637
        "start_memory" => integer 1394296
        "stop_time" => float 1734939012.2646
        "stop_memory" => integer 1394832
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2646
        "start_memory" => integer 1397184
        "stop_time" => float 1734939012.2656
        "stop_memory" => integer 1397760
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2664
        "start_memory" => integer 1400432
        "stop_time" => float 1734939012.2669
        "stop_memory" => integer 1401032
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2669
        "start_memory" => integer 1403440
        "stop_time" => float 1734939012.2676
        "stop_memory" => integer 1404040
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2694
        "start_memory" => integer 1428200
        "stop_time" => float 1734939012.2698
        "stop_memory" => integer 1428792
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2701
        "start_memory" => integer 1433456
        "stop_time" => float 1734939012.2711
        "stop_memory" => integer 1434016
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2712
        "start_memory" => integer 1436416
        "stop_time" => float 1734939012.2723
        "stop_memory" => integer 1437008
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2741
        "start_memory" => integer 1446656
        "stop_time" => float 1734939012.2742
        "stop_memory" => integer 1447240
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2751
        "start_memory" => integer 1451040
        "stop_time" => float 1734939012.2756
        "stop_memory" => integer 1451608
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2757
        "start_memory" => integer 1453984
        "stop_time" => float 1734939012.2762
        "stop_memory" => integer 1454576
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2771
        "start_memory" => integer 1499968
        "stop_time" => float 1734939012.2776
        "stop_memory" => integer 1500552
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2777
        "start_memory" => integer 1502992
        "stop_time" => float 1734939012.2783
        "stop_memory" => integer 1503592
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2785
        "start_memory" => integer 1517824
        "stop_time" => float 1734939012.2791
        "stop_memory" => integer 1518416
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2791
        "start_memory" => integer 1520848
        "stop_time" => float 1734939012.2797
        "stop_memory" => integer 1521440
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2805
        "start_memory" => integer 1525344
        "stop_time" => float 1734939012.281
        "stop_memory" => integer 1525920
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2811
        "start_memory" => integer 1528336
        "stop_time" => float 1734939012.2817
        "stop_memory" => integer 1528936
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2819
        "start_memory" => integer 1573304
        "stop_time" => float 1734939012.2825
        "stop_memory" => integer 1573896
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2826
        "start_memory" => integer 1576328
        "stop_time" => float 1734939012.2832
        "stop_memory" => integer 1576936
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2833
        "start_memory" => integer 1581416
        "stop_time" => float 1734939012.2838
        "stop_memory" => integer 1581984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2838
        "start_memory" => integer 1584392
        "stop_time" => float 1734939012.2844
        "stop_memory" => integer 1584992
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2849
        "start_memory" => integer 1612584
        "stop_time" => float 1734939012.2854
        "stop_memory" => integer 1613160
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2855
        "start_memory" => integer 1615568
        "stop_time" => float 1734939012.2861
        "stop_memory" => integer 1616168
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2864
        "start_memory" => integer 1637424
        "stop_time" => float 1734939012.2869
        "stop_memory" => integer 1638000
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2869
        "start_memory" => integer 1640400
        "stop_time" => float 1734939012.2876
        "stop_memory" => integer 1641000
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.288
        "start_memory" => integer 1652928
        "stop_time" => float 1734939012.2886
        "stop_memory" => integer 1653520
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2886
        "start_memory" => integer 1655960
        "stop_time" => float 1734939012.2893
        "stop_memory" => integer 1656568
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2897
        "start_memory" => integer 1672152
        "stop_time" => float 1734939012.2903
        "stop_memory" => integer 1672752
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2904
        "start_memory" => integer 1675240
        "stop_time" => float 1734939012.2911
        "stop_memory" => integer 1675856
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2911
        "start_memory" => integer 1680416
        "stop_time" => float 1734939012.2918
        "stop_memory" => integer 1681008
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2918
        "start_memory" => integer 1683472
        "stop_time" => float 1734939012.2926
        "stop_memory" => integer 1684088
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2932
        "start_memory" => integer 1729672
        "stop_time" => float 1734939012.2942
        "stop_memory" => integer 1730264
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2943
        "start_memory" => integer 1732752
        "stop_time" => float 1734939012.295
        "stop_memory" => integer 1733368
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2955
        "start_memory" => integer 1753216
        "stop_time" => float 1734939012.2962
        "stop_memory" => integer 1753808
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2962
        "start_memory" => integer 1756288
        "stop_time" => float 1734939012.2969
        "stop_memory" => integer 1756888
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2973
        "start_memory" => integer 1775424
        "stop_time" => float 1734939012.298
        "stop_memory" => integer 1776024
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.298
        "start_memory" => integer 1778496
        "stop_time" => float 1734939012.2988
        "stop_memory" => integer 1779112
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2991
        "start_memory" => integer 1821856
        "stop_time" => float 1734939012.2998
        "stop_memory" => integer 1822448
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.2999
        "start_memory" => integer 1824920
        "stop_time" => float 1734939012.3006
        "stop_memory" => integer 1825536
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3016
        "start_memory" => integer 1853424
        "stop_time" => float 1734939012.3022
        "stop_memory" => integer 1854000
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3022
        "start_memory" => integer 1856440
        "stop_time" => float 1734939012.3029
        "stop_memory" => integer 1857048
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3032
        "start_memory" => integer 1872664
        "stop_time" => float 1734939012.3041
        "stop_memory" => integer 1873184
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3041
        "start_memory" => integer 1875544
        "stop_time" => float 1734939012.3051
        "stop_memory" => integer 1876120
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3054
        "start_memory" => integer 1891240
        "stop_time" => float 1734939012.3059
        "stop_memory" => integer 1891808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3059
        "start_memory" => integer 1894168
        "stop_time" => float 1734939012.3065
        "stop_memory" => integer 1894752
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.309
        "start_memory" => integer 1901680
        "stop_time" => float 1734939012.3099
        "stop_memory" => integer 1902240
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.31
        "start_memory" => integer 1904600
        "stop_time" => float 1734939012.3109
        "stop_memory" => integer 1905184
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3123
        "start_memory" => integer 1911832
        "stop_time" => float 1734939012.3132
        "stop_memory" => integer 1912376
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3132
        "start_memory" => integer 1914736
        "stop_time" => float 1734939012.3142
        "stop_memory" => integer 1915312
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3144
        "start_memory" => integer 1917592
        "stop_time" => float 1734939012.3152
        "stop_memory" => integer 1918144
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3153
        "start_memory" => integer 1920488
        "stop_time" => float 1734939012.3163
        "stop_memory" => integer 1921064
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3165
        "start_memory" => integer 1927504
        "stop_time" => float 1734939012.3174
        "stop_memory" => integer 1928056
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3174
        "start_memory" => integer 1930400
        "stop_time" => float 1734939012.3184
        "stop_memory" => integer 1932000
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3189
        "start_memory" => integer 1943088
        "stop_time" => float 1734939012.3198
        "stop_memory" => integer 1943656
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3198
        "start_memory" => integer 1946024
        "stop_time" => float 1734939012.3208
        "stop_memory" => integer 1946608
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3219
        "start_memory" => integer 1952960
        "stop_time" => float 1734939012.3228
        "stop_memory" => integer 1953504
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3228
        "start_memory" => integer 1955848
        "stop_time" => float 1734939012.324
        "stop_memory" => integer 1956424
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3247
        "start_memory" => integer 1961312
        "stop_time" => float 1734939012.3257
        "stop_memory" => integer 1961896
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3257
        "start_memory" => integer 1964288
        "stop_time" => float 1734939012.3268
        "stop_memory" => integer 1964880
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3271
        "start_memory" => integer 1979480
        "stop_time" => float 1734939012.3282
        "stop_memory" => integer 1980048
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3282
        "start_memory" => integer 1982464
        "stop_time" => float 1734939012.3294
        "stop_memory" => integer 1983056
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3298
        "start_memory" => integer 1997336
        "stop_time" => float 1734939012.3308
        "stop_memory" => integer 1997904
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3309
        "start_memory" => integer 2000320
        "stop_time" => float 1734939012.3321
        "stop_memory" => integer 2000912
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3324
        "start_memory" => integer 2015168
        "stop_time" => float 1734939012.3335
        "stop_memory" => integer 2015736
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3335
        "start_memory" => integer 2018152
        "stop_time" => float 1734939012.3347
        "stop_memory" => integer 2018744
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.335
        "start_memory" => integer 2033016
        "stop_time" => float 1734939012.3361
        "stop_memory" => integer 2033584
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3361
        "start_memory" => integer 2036000
        "stop_time" => float 1734939012.3373
        "stop_memory" => integer 2036592
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3377
        "start_memory" => integer 2050848
        "stop_time" => float 1734939012.3387
        "stop_memory" => integer 2051416
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3388
        "start_memory" => integer 2053832
        "stop_time" => float 1734939012.34
        "stop_memory" => integer 2054424
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3403
        "start_memory" => integer 2068680
        "stop_time" => float 1734939012.3414
        "stop_memory" => integer 2069248
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3414
        "start_memory" => integer 2071664
        "stop_time" => float 1734939012.3426
        "stop_memory" => integer 2072256
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3429
        "start_memory" => integer 2086528
        "stop_time" => float 1734939012.344
        "stop_memory" => integer 2087096
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3441
        "start_memory" => integer 2089512
        "stop_time" => float 1734939012.3453
        "stop_memory" => integer 2090104
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3456
        "start_memory" => integer 2104360
        "stop_time" => float 1734939012.3467
        "stop_memory" => integer 2104928
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3467
        "start_memory" => integer 2107344
        "stop_time" => float 1734939012.3479
        "stop_memory" => integer 2107936
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3482
        "start_memory" => integer 2122288
        "stop_time" => float 1734939012.3493
        "stop_memory" => integer 2122856
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3493
        "start_memory" => integer 2125272
        "stop_time" => float 1734939012.3505
        "stop_memory" => integer 2125864
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3509
        "start_memory" => integer 2140120
        "stop_time" => float 1734939012.352
        "stop_memory" => integer 2140688
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3521
        "start_memory" => integer 2143104
        "stop_time" => float 1734939012.3534
        "stop_memory" => integer 2143696
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3538
        "start_memory" => integer 2157952
        "stop_time" => float 1734939012.3549
        "stop_memory" => integer 2158520
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3549
        "start_memory" => integer 2160936
        "stop_time" => float 1734939012.3561
        "stop_memory" => integer 2161528
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3564
        "start_memory" => integer 2175768
        "stop_time" => float 1734939012.3575
        "stop_memory" => integer 2176336
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3575
        "start_memory" => integer 2178752
        "stop_time" => float 1734939012.3587
        "stop_memory" => integer 2179344
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3591
        "start_memory" => integer 2193600
        "stop_time" => float 1734939012.3602
        "stop_memory" => integer 2194168
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3602
        "start_memory" => integer 2196584
        "stop_time" => float 1734939012.3614
        "stop_memory" => integer 2197176
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3617
        "start_memory" => integer 2211448
        "stop_time" => float 1734939012.3628
        "stop_memory" => integer 2212016
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3628
        "start_memory" => integer 2214432
        "stop_time" => float 1734939012.3641
        "stop_memory" => integer 2215024
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3644
        "start_memory" => integer 2229312
        "stop_time" => float 1734939012.3655
        "stop_memory" => integer 2229880
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3655
        "start_memory" => integer 2232296
        "stop_time" => float 1734939012.3667
        "stop_memory" => integer 2232888
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3671
        "start_memory" => integer 2247160
        "stop_time" => float 1734939012.3682
        "stop_memory" => integer 2247728
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3682
        "start_memory" => integer 2250144
        "stop_time" => float 1734939012.3696
        "stop_memory" => integer 2250736
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3702
        "start_memory" => integer 2265136
        "stop_time" => float 1734939012.3712
        "stop_memory" => integer 2265704
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3713
        "start_memory" => integer 2268120
        "stop_time" => float 1734939012.3725
        "stop_memory" => integer 2268712
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3729
        "start_memory" => integer 2283000
        "stop_time" => float 1734939012.3739
        "stop_memory" => integer 2283568
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3739
        "start_memory" => integer 2285984
        "stop_time" => float 1734939012.3751
        "stop_memory" => integer 2286576
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3755
        "start_memory" => integer 2300848
        "stop_time" => float 1734939012.3765
        "stop_memory" => integer 2301416
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3766
        "start_memory" => integer 2303832
        "stop_time" => float 1734939012.3778
        "stop_memory" => integer 2304424
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3781
        "start_memory" => integer 2318696
        "stop_time" => float 1734939012.3792
        "stop_memory" => integer 2319264
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3792
        "start_memory" => integer 2321680
        "stop_time" => float 1734939012.3804
        "stop_memory" => integer 2322272
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3808
        "start_memory" => integer 2336528
        "stop_time" => float 1734939012.3818
        "stop_memory" => integer 2337096
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3819
        "start_memory" => integer 2339512
        "stop_time" => float 1734939012.3831
        "stop_memory" => integer 2340104
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3834
        "start_memory" => integer 2354360
        "stop_time" => float 1734939012.3845
        "stop_memory" => integer 2354928
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3846
        "start_memory" => integer 2357344
        "stop_time" => float 1734939012.3858
        "stop_memory" => integer 2357936
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3862
        "start_memory" => integer 2372208
        "stop_time" => float 1734939012.3873
        "stop_memory" => integer 2372776
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3873
        "start_memory" => integer 2375192
        "stop_time" => float 1734939012.3885
        "stop_memory" => integer 2375784
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3889
        "start_memory" => integer 2390040
        "stop_time" => float 1734939012.39
        "stop_memory" => integer 2390608
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.39
        "start_memory" => integer 2393024
        "stop_time" => float 1734939012.3912
        "stop_memory" => integer 2393616
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3921
        "start_memory" => integer 2408112
        "stop_time" => float 1734939012.3932
        "stop_memory" => integer 2408680
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3932
        "start_memory" => integer 2411096
        "stop_time" => float 1734939012.3944
        "stop_memory" => integer 2411688
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3957
        "start_memory" => integer 2420808
        "stop_time" => float 1734939012.3964
        "stop_memory" => integer 2421360
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3964
        "start_memory" => integer 2423720
        "stop_time" => float 1734939012.3971
        "stop_memory" => integer 2424304
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3974
        "start_memory" => integer 2448240
        "stop_time" => float 1734939012.3981
        "stop_memory" => integer 2448816
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3981
        "start_memory" => integer 2451192
        "stop_time" => float 1734939012.3988
        "stop_memory" => integer 2451784
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.3992
        "start_memory" => integer 2479496
        "stop_time" => float 1734939012.4001
        "stop_memory" => integer 2480048
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4002
        "start_memory" => integer 2482448
        "stop_time" => float 1734939012.4012
        "stop_memory" => integer 2483032
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4022
        "start_memory" => integer 2491848
        "stop_time" => float 1734939012.4031
        "stop_memory" => integer 2492440
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4031
        "start_memory" => integer 2494848
        "stop_time" => float 1734939012.4041
        "stop_memory" => integer 2495448
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4044
        "start_memory" => integer 2506712
        "stop_time" => float 1734939012.4053
        "stop_memory" => integer 2507304
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4054
        "start_memory" => integer 2509736
        "stop_time" => float 1734939012.4064
        "stop_memory" => integer 2510328
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4071
        "start_memory" => integer 2523592
        "stop_time" => float 1734939012.4079
        "stop_memory" => integer 2524168
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.408
        "start_memory" => integer 2526584
        "stop_time" => float 1734939012.409
        "stop_memory" => integer 2527184
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4098
        "start_memory" => integer 2537864
        "stop_time" => float 1734939012.4102
        "stop_memory" => integer 2538456
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4118
        "start_memory" => integer 2547832
        "stop_time" => float 1734939012.413
        "stop_memory" => integer 2548408
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4131
        "start_memory" => integer 2556752
        "stop_time" => float 1734939012.4142
        "stop_memory" => integer 2557336
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4149
        "start_memory" => integer 2566416
        "stop_time" => float 1734939012.416
        "stop_memory" => integer 2566968
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.416
        "start_memory" => integer 2569352
        "stop_time" => float 1734939012.4172
        "stop_memory" => integer 2569936
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4175
        "start_memory" => integer 2572944
        "stop_time" => float 1734939012.4184
        "stop_memory" => integer 2573504
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4185
        "start_memory" => integer 2575888
        "stop_time" => float 1734939012.4196
        "stop_memory" => integer 2576472
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4199
        "start_memory" => integer 2579480
        "stop_time" => float 1734939012.4209
        "stop_memory" => integer 2580040
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4209
        "start_memory" => integer 2582424
        "stop_time" => float 1734939012.422
        "stop_memory" => integer 2583008
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4226
        "start_memory" => integer 2589424
        "stop_time" => float 1734939012.4235
        "stop_memory" => integer 2589984
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4235
        "start_memory" => integer 2592344
        "stop_time" => float 1734939012.4245
        "stop_memory" => integer 2592912
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4248
        "start_memory" => integer 2594840
        "stop_time" => float 1734939012.4256
        "stop_memory" => integer 2595424
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4257
        "start_memory" => integer 2599328
        "stop_time" => float 1734939012.4263
        "stop_memory" => integer 2599888
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4264
        "start_memory" => integer 2602264
        "stop_time" => float 1734939012.4272
        "stop_memory" => integer 2602848
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4276
        "start_memory" => integer 2686312
        "stop_time" => float 1734939012.4289
        "stop_memory" => integer 2686888
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4293
        "start_memory" => integer 2719384
        "stop_time" => float 1734939012.4302
        "stop_memory" => integer 2719976
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4305
        "start_memory" => integer 2747744
        "stop_time" => float 1734939012.431
        "stop_memory" => integer 2748328
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4311
        "start_memory" => integer 2750728
        "stop_time" => float 1734939012.4317
        "stop_memory" => integer 2751328
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.432
        "start_memory" => integer 2754496
        "stop_time" => float 1734939012.4328
        "stop_memory" => integer 2755056
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4331
        "start_memory" => integer 2781096
        "stop_time" => float 1734939012.4338
        "stop_memory" => integer 2781672
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4341
        "start_memory" => integer 2810672
        "stop_time" => float 1734939012.4349
        "stop_memory" => integer 2811264
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4352
        "start_memory" => integer 2837944
        "stop_time" => float 1734939012.4361
        "stop_memory" => integer 2838480
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4362
        "start_memory" => integer 2840832
        "stop_time" => float 1734939012.4373
        "stop_memory" => integer 2841408
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4388
        "start_memory" => integer 2853288
        "stop_time" => float 1734939012.4397
        "stop_memory" => integer 2853904
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4398
        "start_memory" => integer 2856560
        "stop_time" => float 1734939012.4407
        "stop_memory" => integer 2857152
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.442
        "start_memory" => integer 2876704
        "stop_time" => float 1734939012.4432
        "stop_memory" => integer 2877280
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4432
        "start_memory" => integer 2879712
        "stop_time" => float 1734939012.4445
        "stop_memory" => integer 2880312
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4465
        "start_memory" => integer 2896568
        "stop_time" => float 1734939012.4474
        "stop_memory" => integer 2897112
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4475
        "start_memory" => integer 2899480
        "stop_time" => float 1734939012.4485
        "stop_memory" => integer 2900064
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.449
        "start_memory" => integer 2904496
        "stop_time" => float 1734939012.45
        "stop_memory" => integer 2905056
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.45
        "start_memory" => integer 2907416
        "stop_time" => float 1734939012.451
        "stop_memory" => integer 2908000
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4513
        "start_memory" => integer 2927008
        "stop_time" => float 1734939012.4524
        "stop_memory" => integer 2927584
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4524
        "start_memory" => integer 2929976
        "stop_time" => float 1734939012.4537
        "stop_memory" => integer 2930568
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4541
        "start_memory" => integer 2948768
        "stop_time" => float 1734939012.4546
        "stop_memory" => integer 2949352
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4547
        "start_memory" => integer 2951760
        "stop_time" => float 1734939012.4553
        "stop_memory" => integer 2952360
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4559
        "start_memory" => integer 2974880
        "stop_time" => float 1734939012.4573
        "stop_memory" => integer 2975440
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4574
        "start_memory" => integer 2977856
        "stop_time" => float 1734939012.4589
        "stop_memory" => integer 2978448
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4593
        "start_memory" => integer 2996592
        "stop_time" => float 1734939012.4606
        "stop_memory" => integer 2997128
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4607
        "start_memory" => integer 2999472
        "stop_time" => float 1734939012.462
        "stop_memory" => integer 3000048
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4626
        "start_memory" => integer 3019216
        "stop_time" => float 1734939012.4636
        "stop_memory" => integer 3019784
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4637
        "start_memory" => integer 3022160
        "stop_time" => float 1734939012.4648
        "stop_memory" => integer 3022744
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4681
        "start_memory" => integer 3029120
        "stop_time" => float 1734939012.4691
        "stop_memory" => integer 3029680
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4692
        "start_memory" => integer 3032040
        "stop_time" => float 1734939012.4703
        "stop_memory" => integer 3032608
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4707
        "start_memory" => integer 3050048
        "stop_time" => float 1734939012.4718
        "stop_memory" => integer 3050616
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4718
        "start_memory" => integer 3053000
        "stop_time" => float 1734939012.4735
        "stop_memory" => integer 3053584
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.474
        "start_memory" => integer 3082232
        "stop_time" => float 1734939012.4753
        "stop_memory" => integer 3082808
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4753
        "start_memory" => integer 3085232
        "stop_time" => float 1734939012.4766
        "stop_memory" => integer 3085824
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4773
        "start_memory" => integer 3103080
        "stop_time" => float 1734939012.4785
        "stop_memory" => integer 3103664
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4787
        "start_memory" => integer 3069248
        "stop_time" => float 1734939012.4797
        "stop_memory" => integer 3071208
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.4799
        "start_memory" => integer 3095416
        "stop_time" => float 1734939012.481
        "stop_memory" => integer 3097080
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1734939012.481
        "start_memory" => integer 3096664
        "stop_time" => float 1734939012.4819
        "stop_memory" => integer 3098328
    )
)

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