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 1414192032.0615
        "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 1414192032.0615
        "start_memory" => integer 1991160
        "stop_time" => float 1414192032.0615
        "stop_memory" => integer 1991752
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0616
        "start_memory" => integer 1996704
        "stop_time" => float 1414192032.0617
        "stop_memory" => integer 1997296
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0622
        "start_memory" => integer 2122840
        "stop_time" => float 1414192032.0622
        "stop_memory" => integer 2123392
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0623
        "start_memory" => integer 2128312
        "stop_time" => float 1414192032.0623
        "stop_memory" => integer 2128920
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0624
        "start_memory" => integer 2140008
        "stop_time" => float 1414192032.0625
        "stop_memory" => integer 2140552
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0626
        "start_memory" => integer 2145264
        "stop_time" => float 1414192032.0626
        "stop_memory" => integer 2145840
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0627
        "start_memory" => integer 2155120
        "stop_time" => float 1414192032.0628
        "stop_memory" => integer 2155656
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0628
        "start_memory" => integer 2160312
        "stop_time" => float 1414192032.0629
        "stop_memory" => integer 2160960
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0636
        "start_memory" => integer 2321712
        "stop_time" => float 1414192032.0636
        "stop_memory" => integer 2322272
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0637
        "start_memory" => integer 2327120
        "stop_time" => float 1414192032.0637
        "stop_memory" => integer 2327696
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0639
        "start_memory" => integer 2341168
        "stop_time" => float 1414192032.0639
        "stop_memory" => integer 2341720
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.064
        "start_memory" => integer 2346352
        "stop_time" => float 1414192032.064
        "stop_memory" => integer 2346920
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0643
        "start_memory" => integer 2401744
        "stop_time" => float 1414192032.0643
        "stop_memory" => integer 2402336
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0644
        "start_memory" => integer 2403496
        "stop_time" => float 1414192032.0644
        "stop_memory" => integer 2404072
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0645
        "start_memory" => integer 2408944
        "stop_time" => float 1414192032.0645
        "stop_memory" => integer 2409520
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0648
        "start_memory" => integer 2474968
        "stop_time" => float 1414192032.0649
        "stop_memory" => integer 2475584
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0649
        "start_memory" => integer 2476368
        "stop_time" => float 1414192032.0649
        "stop_memory" => integer 2476944
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.068
        "start_memory" => integer 3145592
        "stop_time" => float 1414192032.0681
        "stop_memory" => integer 3146120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0682
        "start_memory" => integer 3151800
        "stop_time" => float 1414192032.0683
        "stop_memory" => integer 3152368
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0686
        "start_memory" => integer 3185112
        "stop_time" => float 1414192032.0686
        "stop_memory" => integer 3185656
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0687
        "start_memory" => integer 3190296
        "stop_time" => float 1414192032.0688
        "stop_memory" => integer 3190864
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0696
        "start_memory" => integer 3352496
        "stop_time" => float 1414192032.0697
        "stop_memory" => integer 3353072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0698
        "start_memory" => integer 3357952
        "stop_time" => float 1414192032.0698
        "stop_memory" => integer 3358536
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0699
        "start_memory" => integer 3361224
        "stop_time" => float 1414192032.07
        "stop_memory" => integer 3361784
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0701
        "start_memory" => integer 3366656
        "stop_time" => float 1414192032.0701
        "stop_memory" => integer 3367240
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0704
        "start_memory" => integer 3416904
        "stop_time" => float 1414192032.0705
        "stop_memory" => integer 3417448
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0706
        "start_memory" => integer 3422120
        "stop_time" => float 1414192032.0706
        "stop_memory" => integer 3422696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0712
        "start_memory" => integer 3520768
        "stop_time" => float 1414192032.0712
        "stop_memory" => integer 3521304
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0714
        "start_memory" => integer 3525944
        "stop_time" => float 1414192032.0714
        "stop_memory" => integer 3526512
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.0728
        "start_memory" => integer 3611128
        "stop_time" => float 1414192032.0729
        "stop_memory" => integer 3611720
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1237
        "start_memory" => integer 3653872
        "stop_time" => float 1414192032.1237
        "stop_memory" => integer 3654432
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1238
        "start_memory" => integer 3659096
        "stop_time" => float 1414192032.1239
        "stop_memory" => integer 3659928
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1247
        "start_memory" => integer 3700528
        "stop_time" => float 1414192032.1247
        "stop_memory" => integer 3701080
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1247
        "start_memory" => integer 3705912
        "stop_time" => float 1414192032.1248
        "stop_memory" => integer 3706488
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1255
        "start_memory" => integer 3730184
        "stop_time" => float 1414192032.1256
        "stop_memory" => integer 3730736
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1256
        "start_memory" => integer 3735440
        "stop_time" => float 1414192032.1257
        "stop_memory" => integer 3736016
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1265
        "start_memory" => integer 3803168
        "stop_time" => float 1414192032.1266
        "stop_memory" => integer 3803752
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1267
        "start_memory" => integer 3821744
        "stop_time" => float 1414192032.1267
        "stop_memory" => integer 3822304
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1268
        "start_memory" => integer 3827168
        "stop_time" => float 1414192032.1268
        "stop_memory" => integer 3827752
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1273
        "start_memory" => integer 3892880
        "stop_time" => float 1414192032.1275
        "stop_memory" => integer 3893456
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1278
        "start_memory" => integer 3912880
        "stop_time" => float 1414192032.1279
        "stop_memory" => integer 3913456
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1285
        "start_memory" => integer 3961528
        "stop_time" => float 1414192032.1286
        "stop_memory" => integer 3962104
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1288
        "start_memory" => integer 3972768
        "stop_time" => float 1414192032.1289
        "stop_memory" => integer 3973344
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1291
        "start_memory" => integer 3991352
        "stop_time" => float 1414192032.1291
        "stop_memory" => integer 3991928
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1294
        "start_memory" => integer 4001624
        "stop_time" => float 1414192032.1294
        "stop_memory" => integer 4002200
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1297
        "start_memory" => integer 4022328
        "stop_time" => float 1414192032.1297
        "stop_memory" => integer 4022904
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.13
        "start_memory" => integer 4043384
        "stop_time" => float 1414192032.13
        "stop_memory" => integer 4043976
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1302
        "start_memory" => integer 4057216
        "stop_time" => float 1414192032.1302
        "stop_memory" => integer 4057784
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1306
        "start_memory" => integer 4070024
        "stop_time" => float 1414192032.1306
        "stop_memory" => integer 4070600
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1309
        "start_memory" => integer 4118896
        "stop_time" => float 1414192032.1309
        "stop_memory" => integer 4119456
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1313
        "start_memory" => integer 4157928
        "stop_time" => float 1414192032.1313
        "stop_memory" => integer 4158512
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1316
        "start_memory" => integer 4177912
        "stop_time" => float 1414192032.1316
        "stop_memory" => integer 4178488
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1319
        "start_memory" => integer 4209648
        "stop_time" => float 1414192032.1319
        "stop_memory" => integer 4210224
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1322
        "start_memory" => integer 4228936
        "stop_time" => float 1414192032.1322
        "stop_memory" => integer 4229480
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1323
        "start_memory" => integer 4234152
        "stop_time" => float 1414192032.1324
        "stop_memory" => integer 4234728
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1326
        "start_memory" => integer 4265568
        "stop_time" => float 1414192032.1326
        "stop_memory" => integer 4266104
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1327
        "start_memory" => integer 4270768
        "stop_time" => float 1414192032.1328
        "stop_memory" => integer 4271336
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.135
        "start_memory" => integer 4412896
        "stop_time" => float 1414192032.1351
        "stop_memory" => integer 4413472
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1419
        "start_memory" => integer 4466272
        "stop_time" => float 1414192032.142
        "stop_memory" => integer 4466824
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1421
        "start_memory" => integer 4471656
        "stop_time" => float 1414192032.1422
        "stop_memory" => integer 4472232
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1476
        "start_memory" => integer 4497744
        "stop_time" => float 1414192032.1477
        "stop_memory" => integer 4498328
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1478
        "start_memory" => integer 4503280
        "stop_time" => float 1414192032.1479
        "stop_memory" => integer 4503856
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1524
        "start_memory" => integer 4529472
        "stop_time" => float 1414192032.1524
        "stop_memory" => integer 4530032
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1525
        "start_memory" => integer 4534888
        "stop_time" => float 1414192032.1526
        "stop_memory" => integer 4535968
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1531
        "start_memory" => integer 4624688
        "stop_time" => float 1414192032.1531
        "stop_memory" => integer 4625288
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1576
        "start_memory" => integer 4632208
        "stop_time" => float 1414192032.1577
        "stop_memory" => integer 4632760
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1578
        "start_memory" => integer 4637640
        "stop_time" => float 1414192032.1578
        "stop_memory" => integer 4638224
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1742
        "start_memory" => integer 4695088
        "stop_time" => float 1414192032.1742
        "stop_memory" => integer 4695648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1743
        "start_memory" => integer 4700568
        "stop_time" => float 1414192032.1744
        "stop_memory" => integer 4701152
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1747
        "start_memory" => integer 4724960
        "stop_time" => float 1414192032.1748
        "stop_memory" => integer 4725536
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1757
        "start_memory" => integer 4734616
        "stop_time" => float 1414192032.1757
        "stop_memory" => integer 4735176
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1758
        "start_memory" => integer 4740040
        "stop_time" => float 1414192032.1759
        "stop_memory" => integer 4740624
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1772
        "start_memory" => integer 4820128
        "stop_time" => float 1414192032.1772
        "stop_memory" => integer 4820688
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1773
        "start_memory" => integer 4825600
        "stop_time" => float 1414192032.1774
        "stop_memory" => integer 4826176
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1829
        "start_memory" => integer 4851864
        "stop_time" => float 1414192032.1829
        "stop_memory" => integer 4852424
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1831
        "start_memory" => integer 4857288
        "stop_time" => float 1414192032.1831
        "stop_memory" => integer 4857872
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1839
        "start_memory" => integer 4879280
        "stop_time" => float 1414192032.1839
        "stop_memory" => integer 4879808
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.184
        "start_memory" => integer 4884456
        "stop_time" => float 1414192032.1841
        "stop_memory" => integer 4885032
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1857
        "start_memory" => integer 4895888
        "stop_time" => float 1414192032.1857
        "stop_memory" => integer 4896480
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1858
        "start_memory" => integer 4901368
        "stop_time" => float 1414192032.1858
        "stop_memory" => integer 4901944
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1891
        "start_memory" => integer 4946880
        "stop_time" => float 1414192032.1891
        "stop_memory" => integer 4947456
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1897
        "start_memory" => integer 4958592
        "stop_time" => float 1414192032.1898
        "stop_memory" => integer 4959136
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1899
        "start_memory" => integer 4963992
        "stop_time" => float 1414192032.19
        "stop_memory" => integer 4964568
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1949
        "start_memory" => integer 4987064
        "stop_time" => float 1414192032.1949
        "stop_memory" => integer 4987632
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.197
        "start_memory" => integer 4993200
        "stop_time" => float 1414192032.197
        "stop_memory" => integer 4993768
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1971
        "start_memory" => integer 4998616
        "stop_time" => float 1414192032.1971
        "stop_memory" => integer 4999200
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1992
        "start_memory" => integer 5132928
        "stop_time" => float 1414192032.1993
        "stop_memory" => integer 5133504
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.1994
        "start_memory" => integer 5138456
        "stop_time" => float 1414192032.1995
        "stop_memory" => integer 5139048
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2001
        "start_memory" => integer 5153912
        "stop_time" => float 1414192032.2002
        "stop_memory" => integer 5154480
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2002
        "start_memory" => integer 5159456
        "stop_time" => float 1414192032.2003
        "stop_memory" => integer 5160048
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2021
        "start_memory" => integer 5165968
        "stop_time" => float 1414192032.2022
        "stop_memory" => integer 5166520
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2022
        "start_memory" => integer 5171384
        "stop_time" => float 1414192032.2024
        "stop_memory" => integer 5171968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2037
        "start_memory" => integer 5316576
        "stop_time" => float 1414192032.2037
        "stop_memory" => integer 5317152
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2038
        "start_memory" => integer 5322112
        "stop_time" => float 1414192032.2038
        "stop_memory" => integer 5322704
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.204
        "start_memory" => integer 5343384
        "stop_time" => float 1414192032.2041
        "stop_memory" => integer 5343952
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2042
        "start_memory" => integer 5348840
        "stop_time" => float 1414192032.2042
        "stop_memory" => integer 5349416
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2053
        "start_memory" => integer 5411720
        "stop_time" => float 1414192032.2054
        "stop_memory" => integer 5412280
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2055
        "start_memory" => integer 5417152
        "stop_time" => float 1414192032.2055
        "stop_memory" => integer 5417736
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2063
        "start_memory" => integer 5483240
        "stop_time" => float 1414192032.2063
        "stop_memory" => integer 5483800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2065
        "start_memory" => integer 5488664
        "stop_time" => float 1414192032.2065
        "stop_memory" => integer 5489248
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2075
        "start_memory" => integer 5531904
        "stop_time" => float 1414192032.2075
        "stop_memory" => integer 5532480
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2076
        "start_memory" => integer 5537448
        "stop_time" => float 1414192032.2076
        "stop_memory" => integer 5538040
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2087
        "start_memory" => integer 5596880
        "stop_time" => float 1414192032.2087
        "stop_memory" => integer 5597464
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2088
        "start_memory" => integer 5602528
        "stop_time" => float 1414192032.2088
        "stop_memory" => integer 5603128
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.209
        "start_memory" => integer 5622800
        "stop_time" => float 1414192032.209
        "stop_memory" => integer 5623376
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2091
        "start_memory" => integer 5628440
        "stop_time" => float 1414192032.2091
        "stop_memory" => integer 5629040
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.21
        "start_memory" => integer 5693440
        "stop_time" => float 1414192032.21
        "stop_memory" => integer 5694016
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2101
        "start_memory" => integer 5699080
        "stop_time" => float 1414192032.2102
        "stop_memory" => integer 5699680
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2114
        "start_memory" => integer 5748008
        "stop_time" => float 1414192032.2115
        "stop_memory" => integer 5748584
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2116
        "start_memory" => integer 5753640
        "stop_time" => float 1414192032.2116
        "stop_memory" => integer 5754240
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2125
        "start_memory" => integer 5795544
        "stop_time" => float 1414192032.2126
        "stop_memory" => integer 5796120
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2126
        "start_memory" => integer 5801184
        "stop_time" => float 1414192032.2127
        "stop_memory" => integer 5801784
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2139
        "start_memory" => integer 5914712
        "stop_time" => float 1414192032.2139
        "stop_memory" => integer 5915288
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.214
        "start_memory" => integer 5920352
        "stop_time" => float 1414192032.2141
        "stop_memory" => integer 5920952
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2163
        "start_memory" => integer 5969600
        "stop_time" => float 1414192032.2163
        "stop_memory" => integer 5970160
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2165
        "start_memory" => integer 5975128
        "stop_time" => float 1414192032.2165
        "stop_memory" => integer 5975720
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2173
        "start_memory" => integer 5998848
        "stop_time" => float 1414192032.2174
        "stop_memory" => integer 5999368
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2175
        "start_memory" => integer 6004008
        "stop_time" => float 1414192032.2175
        "stop_memory" => integer 6004576
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2187
        "start_memory" => integer 6119248
        "stop_time" => float 1414192032.2187
        "stop_memory" => integer 6119808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2188
        "start_memory" => integer 6124480
        "stop_time" => float 1414192032.2188
        "stop_memory" => integer 6125072
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2229
        "start_memory" => integer 6145392
        "stop_time" => float 1414192032.223
        "stop_memory" => integer 6145928
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2231
        "start_memory" => integer 6150576
        "stop_time" => float 1414192032.2231
        "stop_memory" => integer 6151144
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2255
        "start_memory" => integer 6187824
        "stop_time" => float 1414192032.2256
        "stop_memory" => integer 6188368
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2256
        "start_memory" => integer 6193008
        "stop_time" => float 1414192032.2257
        "stop_memory" => integer 6193576
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2265
        "start_memory" => integer 6235968
        "stop_time" => float 1414192032.2266
        "stop_memory" => integer 6236512
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2266
        "start_memory" => integer 6241152
        "stop_time" => float 1414192032.2267
        "stop_memory" => integer 6241720
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2275
        "start_memory" => integer 6285912
        "stop_time" => float 1414192032.2276
        "stop_memory" => integer 6286456
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2277
        "start_memory" => integer 6291104
        "stop_time" => float 1414192032.2278
        "stop_memory" => integer 6292696
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2292
        "start_memory" => integer 6368200
        "stop_time" => float 1414192032.2292
        "stop_memory" => integer 6368744
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2293
        "start_memory" => integer 6373400
        "stop_time" => float 1414192032.2294
        "stop_memory" => integer 6373968
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2318
        "start_memory" => integer 6396152
        "stop_time" => float 1414192032.2318
        "stop_memory" => integer 6396712
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2319
        "start_memory" => integer 6401352
        "stop_time" => float 1414192032.2319
        "stop_memory" => integer 6401920
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2332
        "start_memory" => integer 6431064
        "stop_time" => float 1414192032.2333
        "stop_memory" => integer 6431624
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2334
        "start_memory" => integer 6436472
        "stop_time" => float 1414192032.2334
        "stop_memory" => integer 6437048
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2341
        "start_memory" => integer 6457360
        "stop_time" => float 1414192032.2341
        "stop_memory" => integer 6457928
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2342
        "start_memory" => integer 6462864
        "stop_time" => float 1414192032.2343
        "stop_memory" => integer 6463448
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.235
        "start_memory" => integer 6478472
        "stop_time" => float 1414192032.235
        "stop_memory" => integer 6479032
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2351
        "start_memory" => integer 6483968
        "stop_time" => float 1414192032.2352
        "stop_memory" => integer 6484552
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2359
        "start_memory" => integer 6499592
        "stop_time" => float 1414192032.2359
        "stop_memory" => integer 6500152
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.236
        "start_memory" => integer 6505088
        "stop_time" => float 1414192032.2361
        "stop_memory" => integer 6505672
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2368
        "start_memory" => integer 6520720
        "stop_time" => float 1414192032.2369
        "stop_memory" => integer 6521280
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2369
        "start_memory" => integer 6526216
        "stop_time" => float 1414192032.237
        "stop_memory" => integer 6526800
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2376
        "start_memory" => integer 6541824
        "stop_time" => float 1414192032.2376
        "stop_memory" => integer 6542384
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2378
        "start_memory" => integer 6547320
        "stop_time" => float 1414192032.2378
        "stop_memory" => integer 6547904
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2384
        "start_memory" => integer 6562928
        "stop_time" => float 1414192032.2384
        "stop_memory" => integer 6563488
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2385
        "start_memory" => integer 6568424
        "stop_time" => float 1414192032.2385
        "stop_memory" => integer 6569008
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2392
        "start_memory" => integer 6584064
        "stop_time" => float 1414192032.2393
        "stop_memory" => integer 6584624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2394
        "start_memory" => integer 6589560
        "stop_time" => float 1414192032.2394
        "stop_memory" => integer 6590144
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2401
        "start_memory" => integer 6605168
        "stop_time" => float 1414192032.2401
        "stop_memory" => integer 6605728
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2402
        "start_memory" => integer 6610664
        "stop_time" => float 1414192032.2403
        "stop_memory" => integer 6611248
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2411
        "start_memory" => integer 6626384
        "stop_time" => float 1414192032.2411
        "stop_memory" => integer 6626944
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2412
        "start_memory" => integer 6631880
        "stop_time" => float 1414192032.2412
        "stop_memory" => integer 6632464
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2418
        "start_memory" => integer 6647496
        "stop_time" => float 1414192032.2418
        "stop_memory" => integer 6648056
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2419
        "start_memory" => integer 6652992
        "stop_time" => float 1414192032.242
        "stop_memory" => integer 6653576
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2427
        "start_memory" => integer 6668616
        "stop_time" => float 1414192032.2427
        "stop_memory" => integer 6669176
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2428
        "start_memory" => integer 6674112
        "stop_time" => float 1414192032.2429
        "stop_memory" => integer 6674696
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2436
        "start_memory" => integer 6689704
        "stop_time" => float 1414192032.2436
        "stop_memory" => integer 6690264
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2437
        "start_memory" => integer 6695200
        "stop_time" => float 1414192032.2438
        "stop_memory" => integer 6695784
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2445
        "start_memory" => integer 6710808
        "stop_time" => float 1414192032.2446
        "stop_memory" => integer 6711368
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2447
        "start_memory" => integer 6716304
        "stop_time" => float 1414192032.2448
        "stop_memory" => integer 6716888
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2455
        "start_memory" => integer 6731912
        "stop_time" => float 1414192032.2455
        "stop_memory" => integer 6732472
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2456
        "start_memory" => integer 6737408
        "stop_time" => float 1414192032.2457
        "stop_memory" => integer 6737992
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2465
        "start_memory" => integer 6753056
        "stop_time" => float 1414192032.2465
        "stop_memory" => integer 6753616
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2466
        "start_memory" => integer 6758552
        "stop_time" => float 1414192032.2467
        "stop_memory" => integer 6759136
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2473
        "start_memory" => integer 6774192
        "stop_time" => float 1414192032.2474
        "stop_memory" => integer 6774752
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2474
        "start_memory" => integer 6779688
        "stop_time" => float 1414192032.2475
        "stop_memory" => integer 6780272
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2481
        "start_memory" => integer 6795448
        "stop_time" => float 1414192032.2481
        "stop_memory" => integer 6796008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2482
        "start_memory" => integer 6800944
        "stop_time" => float 1414192032.2483
        "stop_memory" => integer 6801528
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2489
        "start_memory" => integer 6816584
        "stop_time" => float 1414192032.2489
        "stop_memory" => integer 6817144
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.249
        "start_memory" => integer 6822080
        "stop_time" => float 1414192032.249
        "stop_memory" => integer 6822664
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2496
        "start_memory" => integer 6837720
        "stop_time" => float 1414192032.2497
        "stop_memory" => integer 6838280
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2498
        "start_memory" => integer 6843216
        "stop_time" => float 1414192032.2498
        "stop_memory" => integer 6843800
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2504
        "start_memory" => integer 6858848
        "stop_time" => float 1414192032.2505
        "stop_memory" => integer 6859408
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2505
        "start_memory" => integer 6864344
        "stop_time" => float 1414192032.2506
        "stop_memory" => integer 6864928
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2512
        "start_memory" => integer 6879952
        "stop_time" => float 1414192032.2512
        "stop_memory" => integer 6880512
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2513
        "start_memory" => integer 6885448
        "stop_time" => float 1414192032.2514
        "stop_memory" => integer 6886032
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2521
        "start_memory" => integer 6901056
        "stop_time" => float 1414192032.2522
        "stop_memory" => integer 6901616
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2522
        "start_memory" => integer 6906552
        "stop_time" => float 1414192032.2523
        "stop_memory" => integer 6907136
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2531
        "start_memory" => integer 6922192
        "stop_time" => float 1414192032.2531
        "stop_memory" => integer 6922752
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2532
        "start_memory" => integer 6927688
        "stop_time" => float 1414192032.2533
        "stop_memory" => integer 6928272
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.254
        "start_memory" => integer 6943312
        "stop_time" => float 1414192032.2541
        "stop_memory" => integer 6943872
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2542
        "start_memory" => integer 6948808
        "stop_time" => float 1414192032.2543
        "stop_memory" => integer 6949392
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2558
        "start_memory" => integer 6964656
        "stop_time" => float 1414192032.2558
        "stop_memory" => integer 6965216
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2559
        "start_memory" => integer 6970128
        "stop_time" => float 1414192032.256
        "stop_memory" => integer 6970696
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2586
        "start_memory" => integer 7008720
        "stop_time" => float 1414192032.2586
        "stop_memory" => integer 7009272
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2587
        "start_memory" => integer 7013944
        "stop_time" => float 1414192032.2588
        "stop_memory" => integer 7014520
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2602
        "start_memory" => integer 7145584
        "stop_time" => float 1414192032.2603
        "stop_memory" => integer 7146136
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2604
        "start_memory" => integer 7150816
        "stop_time" => float 1414192032.2604
        "stop_memory" => integer 7151392
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.262
        "start_memory" => integer 7320576
        "stop_time" => float 1414192032.262
        "stop_memory" => integer 7321128
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2621
        "start_memory" => integer 7325816
        "stop_time" => float 1414192032.2621
        "stop_memory" => integer 7326376
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2643
        "start_memory" => integer 7382040
        "stop_time" => float 1414192032.2644
        "stop_memory" => integer 7382616
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2644
        "start_memory" => integer 7387528
        "stop_time" => float 1414192032.2645
        "stop_memory" => integer 7388096
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2653
        "start_memory" => integer 7428128
        "stop_time" => float 1414192032.2654
        "stop_memory" => integer 7428704
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2655
        "start_memory" => integer 7433656
        "stop_time" => float 1414192032.2656
        "stop_memory" => integer 7434248
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2669
        "start_memory" => integer 7460192
        "stop_time" => float 1414192032.267
        "stop_memory" => integer 7460760
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.267
        "start_memory" => integer 7465632
        "stop_time" => float 1414192032.2672
        "stop_memory" => integer 7466208
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2693
        "start_memory" => integer 7492264
        "stop_time" => float 1414192032.2694
        "stop_memory" => integer 7492840
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2748
        "start_memory" => integer 7503744
        "stop_time" => float 1414192032.2749
        "stop_memory" => integer 7504304
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2756
        "start_memory" => integer 7514168
        "stop_time" => float 1414192032.2757
        "stop_memory" => integer 7514736
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.278
        "start_memory" => integer 7525336
        "stop_time" => float 1414192032.2781
        "stop_memory" => integer 7525888
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2782
        "start_memory" => integer 7530616
        "stop_time" => float 1414192032.2783
        "stop_memory" => integer 7531192
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2792
        "start_memory" => integer 7536656
        "stop_time" => float 1414192032.2792
        "stop_memory" => integer 7537208
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2794
        "start_memory" => integer 7541936
        "stop_time" => float 1414192032.2794
        "stop_memory" => integer 7542512
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2803
        "start_memory" => integer 7547960
        "stop_time" => float 1414192032.2804
        "stop_memory" => integer 7548512
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2806
        "start_memory" => integer 7553264
        "stop_time" => float 1414192032.2806
        "stop_memory" => integer 7553840
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2821
        "start_memory" => integer 7565848
        "stop_time" => float 1414192032.2822
        "stop_memory" => integer 7566384
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2823
        "start_memory" => integer 7571048
        "stop_time" => float 1414192032.2823
        "stop_memory" => integer 7571616
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2832
        "start_memory" => integer 7574664
        "stop_time" => float 1414192032.2833
        "stop_memory" => integer 7575240
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2834
        "start_memory" => integer 7584512
        "stop_time" => float 1414192032.2834
        "stop_memory" => integer 7585048
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2835
        "start_memory" => integer 7589696
        "stop_time" => float 1414192032.2835
        "stop_memory" => integer 7590264
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2863
        "start_memory" => integer 7965664
        "stop_time" => float 1414192032.2865
        "stop_memory" => integer 7966240
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2875
        "start_memory" => integer 8044808
        "stop_time" => float 1414192032.2875
        "stop_memory" => integer 8045392
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2883
        "start_memory" => integer 8090616
        "stop_time" => float 1414192032.2883
        "stop_memory" => integer 8091176
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2884
        "start_memory" => integer 8096040
        "stop_time" => float 1414192032.2885
        "stop_memory" => integer 8096624
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2891
        "start_memory" => integer 8105584
        "stop_time" => float 1414192032.2891
        "stop_memory" => integer 8106128
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2896
        "start_memory" => integer 8137592
        "stop_time" => float 1414192032.2896
        "stop_memory" => integer 8138152
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2902
        "start_memory" => integer 8172576
        "stop_time" => float 1414192032.2902
        "stop_memory" => integer 8173152
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2907
        "start_memory" => integer 8205248
        "stop_time" => float 1414192032.2908
        "stop_memory" => integer 8205784
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2909
        "start_memory" => integer 8210440
        "stop_time" => float 1414192032.2909
        "stop_memory" => integer 8211008
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2933
        "start_memory" => integer 8252816
        "stop_time" => float 1414192032.2933
        "stop_memory" => integer 8253408
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2934
        "start_memory" => integer 8258592
        "stop_time" => float 1414192032.2935
        "stop_memory" => integer 8259184
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2961
        "start_memory" => integer 8303280
        "stop_time" => float 1414192032.2962
        "stop_memory" => integer 8303832
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.2963
        "start_memory" => integer 8308768
        "stop_time" => float 1414192032.2964
        "stop_memory" => integer 8309352
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3006
        "start_memory" => integer 8411040
        "stop_time" => float 1414192032.3006
        "stop_memory" => integer 8411568
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3007
        "start_memory" => integer 8416224
        "stop_time" => float 1414192032.3008
        "stop_memory" => integer 8416792
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3013
        "start_memory" => integer 8431720
        "stop_time" => float 1414192032.3013
        "stop_memory" => integer 8432272
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3014
        "start_memory" => integer 8436920
        "stop_time" => float 1414192032.3015
        "stop_memory" => integer 8437488
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3022
        "start_memory" => integer 8503920
        "stop_time" => float 1414192032.3022
        "stop_memory" => integer 8504480
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3023
        "start_memory" => integer 8509336
        "stop_time" => float 1414192032.3025
        "stop_memory" => integer 8509912
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3031
        "start_memory" => integer 8533352
        "stop_time" => float 1414192032.3031
        "stop_memory" => integer 8533960
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3032
        "start_memory" => integer 8538880
        "stop_time" => float 1414192032.3033
        "stop_memory" => integer 8539472
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3046
        "start_memory" => integer 8610480
        "stop_time" => float 1414192032.3046
        "stop_memory" => integer 8611016
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3047
        "start_memory" => integer 8615888
        "stop_time" => float 1414192032.3047
        "stop_memory" => integer 8616440
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3053
        "start_memory" => integer 8644144
        "stop_time" => float 1414192032.3054
        "stop_memory" => integer 8644680
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3055
        "start_memory" => integer 8649336
        "stop_time" => float 1414192032.3055
        "stop_memory" => integer 8649904
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3068
        "start_memory" => integer 8771128
        "stop_time" => float 1414192032.3069
        "stop_memory" => integer 8771672
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.307
        "start_memory" => integer 8776344
        "stop_time" => float 1414192032.307
        "stop_memory" => integer 8776912
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3131
        "start_memory" => integer 8808296
        "stop_time" => float 1414192032.3132
        "stop_memory" => integer 8808840
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3135
        "start_memory" => integer 8813488
        "stop_time" => float 1414192032.3136
        "stop_memory" => integer 8814056
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3151
        "start_memory" => integer 8914344
        "stop_time" => float 1414192032.3152
        "stop_memory" => integer 8914904
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3154
        "start_memory" => integer 8919616
        "stop_time" => float 1414192032.3154
        "stop_memory" => integer 8920192
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.317
        "start_memory" => integer 9027936
        "stop_time" => float 1414192032.3171
        "stop_memory" => integer 9028504
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3172
        "start_memory" => integer 9033424
        "stop_time" => float 1414192032.3173
        "stop_memory" => integer 9034008
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3186
        "start_memory" => integer 9055192
        "stop_time" => float 1414192032.3187
        "stop_memory" => integer 9055768
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3193
        "start_memory" => integer 9020248
        "stop_time" => float 1414192032.3193
        "stop_memory" => integer 9022184
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3202
        "start_memory" => integer 9092904
        "stop_time" => float 1414192032.3203
        "stop_memory" => integer 9094632
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414192032.3204
        "start_memory" => integer 9094392
        "stop_time" => float 1414192032.3205
        "stop_memory" => integer 9096120
    )
)

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