Modules

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/kohana/profiler.php on line 14.

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(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1414215163.0597
        "start_memory" => integer 1989128
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0598
        "start_memory" => integer 1991464
        "stop_time" => float 1414215163.0598
        "stop_memory" => integer 1992056
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.06
        "start_memory" => integer 1997008
        "stop_time" => float 1414215163.06
        "stop_memory" => integer 1997600
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0608
        "start_memory" => integer 2123120
        "stop_time" => float 1414215163.0608
        "stop_memory" => integer 2123672
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0609
        "start_memory" => integer 2128608
        "stop_time" => float 1414215163.061
        "stop_memory" => integer 2129192
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0611
        "start_memory" => integer 2140280
        "stop_time" => float 1414215163.0612
        "stop_memory" => integer 2140824
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0613
        "start_memory" => integer 2145536
        "stop_time" => float 1414215163.0614
        "stop_memory" => integer 2146112
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0616
        "start_memory" => integer 2155392
        "stop_time" => float 1414215163.0617
        "stop_memory" => integer 2155928
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0618
        "start_memory" => integer 2160592
        "stop_time" => float 1414215163.0619
        "stop_memory" => integer 2161224
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0629
        "start_memory" => integer 2321976
        "stop_time" => float 1414215163.0629
        "stop_memory" => integer 2322536
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.063
        "start_memory" => integer 2327384
        "stop_time" => float 1414215163.0631
        "stop_memory" => integer 2327960
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0633
        "start_memory" => integer 2341432
        "stop_time" => float 1414215163.0634
        "stop_memory" => integer 2341984
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0635
        "start_memory" => integer 2346616
        "stop_time" => float 1414215163.0636
        "stop_memory" => integer 2347184
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.064
        "start_memory" => integer 2401992
        "stop_time" => float 1414215163.0641
        "stop_memory" => integer 2402584
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0641
        "start_memory" => integer 2403744
        "stop_time" => float 1414215163.0642
        "stop_memory" => integer 2404320
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0643
        "start_memory" => integer 2409192
        "stop_time" => float 1414215163.0644
        "stop_memory" => integer 2409768
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0648
        "start_memory" => integer 2475232
        "stop_time" => float 1414215163.0649
        "stop_memory" => integer 2475848
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0649
        "start_memory" => integer 2476632
        "stop_time" => float 1414215163.065
        "stop_memory" => integer 2477208
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0688
        "start_memory" => integer 3145928
        "stop_time" => float 1414215163.0689
        "stop_memory" => integer 3146456
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0691
        "start_memory" => integer 3152152
        "stop_time" => float 1414215163.0691
        "stop_memory" => integer 3152720
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0696
        "start_memory" => integer 3185472
        "stop_time" => float 1414215163.0697
        "stop_memory" => integer 3186016
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0698
        "start_memory" => integer 3190656
        "stop_time" => float 1414215163.0698
        "stop_memory" => integer 3191224
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0708
        "start_memory" => integer 3352888
        "stop_time" => float 1414215163.0709
        "stop_memory" => integer 3353464
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.071
        "start_memory" => integer 3358344
        "stop_time" => float 1414215163.0711
        "stop_memory" => integer 3358928
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0713
        "start_memory" => integer 3361616
        "stop_time" => float 1414215163.0714
        "stop_memory" => integer 3362176
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0715
        "start_memory" => integer 3367048
        "stop_time" => float 1414215163.0715
        "stop_memory" => integer 3367632
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0719
        "start_memory" => integer 3417304
        "stop_time" => float 1414215163.0719
        "stop_memory" => integer 3417848
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.072
        "start_memory" => integer 3422520
        "stop_time" => float 1414215163.0721
        "stop_memory" => integer 3423096
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0728
        "start_memory" => integer 3520688
        "stop_time" => float 1414215163.0728
        "stop_memory" => integer 3521224
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0729
        "start_memory" => integer 3525864
        "stop_time" => float 1414215163.0729
        "stop_memory" => integer 3526432
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.0746
        "start_memory" => integer 3611520
        "stop_time" => float 1414215163.0746
        "stop_memory" => integer 3612112
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1325
        "start_memory" => integer 3654248
        "stop_time" => float 1414215163.1325
        "stop_memory" => integer 3654816
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1326
        "start_memory" => integer 3659480
        "stop_time" => float 1414215163.1327
        "stop_memory" => integer 3660312
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1335
        "start_memory" => integer 3700912
        "stop_time" => float 1414215163.1335
        "stop_memory" => integer 3701464
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1336
        "start_memory" => integer 3706296
        "stop_time" => float 1414215163.1336
        "stop_memory" => integer 3706872
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1344
        "start_memory" => integer 3730576
        "stop_time" => float 1414215163.1345
        "stop_memory" => integer 3731128
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1345
        "start_memory" => integer 3735808
        "stop_time" => float 1414215163.1346
        "stop_memory" => integer 3736384
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1353
        "start_memory" => integer 3803568
        "stop_time" => float 1414215163.1353
        "stop_memory" => integer 3804152
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1355
        "start_memory" => integer 3822160
        "stop_time" => float 1414215163.1356
        "stop_memory" => integer 3822720
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1356
        "start_memory" => integer 3827584
        "stop_time" => float 1414215163.1357
        "stop_memory" => integer 3828168
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1361
        "start_memory" => integer 3893296
        "stop_time" => float 1414215163.1361
        "stop_memory" => integer 3893872
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1364
        "start_memory" => integer 3913272
        "stop_time" => float 1414215163.1365
        "stop_memory" => integer 3913848
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1368
        "start_memory" => integer 3961888
        "stop_time" => float 1414215163.1369
        "stop_memory" => integer 3962464
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1372
        "start_memory" => integer 3973120
        "stop_time" => float 1414215163.1373
        "stop_memory" => integer 3973696
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1377
        "start_memory" => integer 3991704
        "stop_time" => float 1414215163.1377
        "stop_memory" => integer 3992280
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1381
        "start_memory" => integer 4001952
        "stop_time" => float 1414215163.1381
        "stop_memory" => integer 4002528
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1385
        "start_memory" => integer 4022632
        "stop_time" => float 1414215163.1385
        "stop_memory" => integer 4023208
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1388
        "start_memory" => integer 4043688
        "stop_time" => float 1414215163.1388
        "stop_memory" => integer 4044280
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1391
        "start_memory" => integer 4057504
        "stop_time" => float 1414215163.1391
        "stop_memory" => integer 4058072
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1394
        "start_memory" => integer 4070280
        "stop_time" => float 1414215163.1395
        "stop_memory" => integer 4070856
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1398
        "start_memory" => integer 4119136
        "stop_time" => float 1414215163.1398
        "stop_memory" => integer 4119696
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1402
        "start_memory" => integer 4158168
        "stop_time" => float 1414215163.1402
        "stop_memory" => integer 4158752
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1406
        "start_memory" => integer 4178152
        "stop_time" => float 1414215163.1406
        "stop_memory" => integer 4178728
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1408
        "start_memory" => integer 4209888
        "stop_time" => float 1414215163.1409
        "stop_memory" => integer 4210464
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1411
        "start_memory" => integer 4229176
        "stop_time" => float 1414215163.1411
        "stop_memory" => integer 4229720
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1412
        "start_memory" => integer 4234392
        "stop_time" => float 1414215163.1413
        "stop_memory" => integer 4234968
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1415
        "start_memory" => integer 4265816
        "stop_time" => float 1414215163.1416
        "stop_memory" => integer 4266352
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1416
        "start_memory" => integer 4271016
        "stop_time" => float 1414215163.1417
        "stop_memory" => integer 4271584
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1447
        "start_memory" => integer 4413144
        "stop_time" => float 1414215163.1448
        "stop_memory" => integer 4413720
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1549
        "start_memory" => integer 4466528
        "stop_time" => float 1414215163.155
        "stop_memory" => integer 4467080
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1551
        "start_memory" => integer 4471912
        "stop_time" => float 1414215163.1552
        "stop_memory" => integer 4472488
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1614
        "start_memory" => integer 4497952
        "stop_time" => float 1414215163.1614
        "stop_memory" => integer 4498536
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1616
        "start_memory" => integer 4503472
        "stop_time" => float 1414215163.1616
        "stop_memory" => integer 4504048
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1679
        "start_memory" => integer 4529688
        "stop_time" => float 1414215163.168
        "stop_memory" => integer 4530248
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1681
        "start_memory" => integer 4535104
        "stop_time" => float 1414215163.1682
        "stop_memory" => integer 4536184
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1688
        "start_memory" => integer 4624880
        "stop_time" => float 1414215163.1689
        "stop_memory" => integer 4625480
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1742
        "start_memory" => integer 4632400
        "stop_time" => float 1414215163.1742
        "stop_memory" => integer 4632952
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1744
        "start_memory" => integer 4637832
        "stop_time" => float 1414215163.1745
        "stop_memory" => integer 4638416
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1921
        "start_memory" => integer 4695272
        "stop_time" => float 1414215163.1922
        "stop_memory" => integer 4695832
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1923
        "start_memory" => integer 4700752
        "stop_time" => float 1414215163.1924
        "stop_memory" => integer 4701336
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1926
        "start_memory" => integer 4725192
        "stop_time" => float 1414215163.1926
        "stop_memory" => integer 4725768
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1936
        "start_memory" => integer 4734848
        "stop_time" => float 1414215163.1936
        "stop_memory" => integer 4735408
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1937
        "start_memory" => integer 4740272
        "stop_time" => float 1414215163.1938
        "stop_memory" => integer 4740856
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1956
        "start_memory" => integer 4820328
        "stop_time" => float 1414215163.1956
        "stop_memory" => integer 4820888
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.1957
        "start_memory" => integer 4825768
        "stop_time" => float 1414215163.1957
        "stop_memory" => integer 4826352
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2045
        "start_memory" => integer 4852064
        "stop_time" => float 1414215163.2046
        "stop_memory" => integer 4852624
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2047
        "start_memory" => integer 4857488
        "stop_time" => float 1414215163.2048
        "stop_memory" => integer 4858072
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2059
        "start_memory" => integer 4879464
        "stop_time" => float 1414215163.206
        "stop_memory" => integer 4879992
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2061
        "start_memory" => integer 4884640
        "stop_time" => float 1414215163.2061
        "stop_memory" => integer 4885208
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.208
        "start_memory" => integer 4896064
        "stop_time" => float 1414215163.208
        "stop_memory" => integer 4896656
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2081
        "start_memory" => integer 4901544
        "stop_time" => float 1414215163.2082
        "stop_memory" => integer 4902120
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2136
        "start_memory" => integer 4947072
        "stop_time" => float 1414215163.2137
        "stop_memory" => integer 4947648
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2146
        "start_memory" => integer 4958792
        "stop_time" => float 1414215163.2147
        "stop_memory" => integer 4959336
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2149
        "start_memory" => integer 4964192
        "stop_time" => float 1414215163.2149
        "stop_memory" => integer 4964768
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2197
        "start_memory" => integer 4987264
        "stop_time" => float 1414215163.2197
        "stop_memory" => integer 4987832
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2224
        "start_memory" => integer 4993384
        "stop_time" => float 1414215163.2225
        "stop_memory" => integer 4993952
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2226
        "start_memory" => integer 4998800
        "stop_time" => float 1414215163.2226
        "stop_memory" => integer 4999384
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2253
        "start_memory" => integer 5133112
        "stop_time" => float 1414215163.2253
        "stop_memory" => integer 5133688
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2254
        "start_memory" => integer 5138640
        "stop_time" => float 1414215163.2255
        "stop_memory" => integer 5139232
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.226
        "start_memory" => integer 5154080
        "stop_time" => float 1414215163.226
        "stop_memory" => integer 5154648
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2262
        "start_memory" => integer 5159608
        "stop_time" => float 1414215163.2262
        "stop_memory" => integer 5160200
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2277
        "start_memory" => integer 5166136
        "stop_time" => float 1414215163.2277
        "stop_memory" => integer 5166688
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2279
        "start_memory" => integer 5171560
        "stop_time" => float 1414215163.2279
        "stop_memory" => integer 5172136
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2294
        "start_memory" => integer 5316744
        "stop_time" => float 1414215163.2294
        "stop_memory" => integer 5317320
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2295
        "start_memory" => integer 5322280
        "stop_time" => float 1414215163.2296
        "stop_memory" => integer 5322872
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2297
        "start_memory" => integer 5343552
        "stop_time" => float 1414215163.2298
        "stop_memory" => integer 5344120
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2299
        "start_memory" => integer 5349008
        "stop_time" => float 1414215163.2299
        "stop_memory" => integer 5349584
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2309
        "start_memory" => integer 5411872
        "stop_time" => float 1414215163.231
        "stop_memory" => integer 5412432
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2311
        "start_memory" => integer 5417304
        "stop_time" => float 1414215163.2311
        "stop_memory" => integer 5417888
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2319
        "start_memory" => integer 5483392
        "stop_time" => float 1414215163.2319
        "stop_memory" => integer 5483952
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.232
        "start_memory" => integer 5488816
        "stop_time" => float 1414215163.2321
        "stop_memory" => integer 5489400
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.233
        "start_memory" => integer 5532056
        "stop_time" => float 1414215163.2331
        "stop_memory" => integer 5532632
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2332
        "start_memory" => integer 5537600
        "stop_time" => float 1414215163.2332
        "stop_memory" => integer 5538192
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2342
        "start_memory" => integer 5597032
        "stop_time" => float 1414215163.2343
        "stop_memory" => integer 5597616
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2344
        "start_memory" => integer 5602680
        "stop_time" => float 1414215163.2344
        "stop_memory" => integer 5603280
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2346
        "start_memory" => integer 5622952
        "stop_time" => float 1414215163.2346
        "stop_memory" => integer 5623528
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2347
        "start_memory" => integer 5628592
        "stop_time" => float 1414215163.2347
        "stop_memory" => integer 5629192
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2357
        "start_memory" => integer 5693640
        "stop_time" => float 1414215163.2357
        "stop_memory" => integer 5694216
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2358
        "start_memory" => integer 5699280
        "stop_time" => float 1414215163.2358
        "stop_memory" => integer 5699880
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2367
        "start_memory" => integer 5748208
        "stop_time" => float 1414215163.2368
        "stop_memory" => integer 5748784
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2369
        "start_memory" => integer 5753840
        "stop_time" => float 1414215163.2369
        "stop_memory" => integer 5754440
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2381
        "start_memory" => integer 5795744
        "stop_time" => float 1414215163.2381
        "stop_memory" => integer 5796320
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2382
        "start_memory" => integer 5801384
        "stop_time" => float 1414215163.2383
        "stop_memory" => integer 5801984
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2396
        "start_memory" => integer 5914912
        "stop_time" => float 1414215163.2397
        "stop_memory" => integer 5915488
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2397
        "start_memory" => integer 5920552
        "stop_time" => float 1414215163.2398
        "stop_memory" => integer 5921152
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2425
        "start_memory" => integer 5969800
        "stop_time" => float 1414215163.2425
        "stop_memory" => integer 5970360
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2426
        "start_memory" => integer 5975328
        "stop_time" => float 1414215163.2427
        "stop_memory" => integer 5975920
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2435
        "start_memory" => integer 5999040
        "stop_time" => float 1414215163.2435
        "stop_memory" => integer 5999560
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2436
        "start_memory" => integer 6004200
        "stop_time" => float 1414215163.2437
        "stop_memory" => integer 6004768
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.245
        "start_memory" => integer 6119440
        "stop_time" => float 1414215163.245
        "stop_memory" => integer 6120000
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2451
        "start_memory" => integer 6124672
        "stop_time" => float 1414215163.2451
        "stop_memory" => integer 6125264
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2504
        "start_memory" => integer 6145584
        "stop_time" => float 1414215163.2505
        "stop_memory" => integer 6146120
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2506
        "start_memory" => integer 6150768
        "stop_time" => float 1414215163.2507
        "stop_memory" => integer 6151336
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2541
        "start_memory" => integer 6188016
        "stop_time" => float 1414215163.2542
        "stop_memory" => integer 6188560
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2544
        "start_memory" => integer 6193200
        "stop_time" => float 1414215163.2544
        "stop_memory" => integer 6193768
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2554
        "start_memory" => integer 6236176
        "stop_time" => float 1414215163.2554
        "stop_memory" => integer 6236720
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2555
        "start_memory" => integer 6241360
        "stop_time" => float 1414215163.2556
        "stop_memory" => integer 6241928
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2565
        "start_memory" => integer 6286120
        "stop_time" => float 1414215163.2565
        "stop_memory" => integer 6286664
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2566
        "start_memory" => integer 6291304
        "stop_time" => float 1414215163.2567
        "stop_memory" => integer 6292896
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2582
        "start_memory" => integer 6368400
        "stop_time" => float 1414215163.2583
        "stop_memory" => integer 6368944
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2584
        "start_memory" => integer 6373600
        "stop_time" => float 1414215163.2585
        "stop_memory" => integer 6374168
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2609
        "start_memory" => integer 6396352
        "stop_time" => float 1414215163.261
        "stop_memory" => integer 6396896
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.261
        "start_memory" => integer 6401536
        "stop_time" => float 1414215163.2611
        "stop_memory" => integer 6402104
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2631
        "start_memory" => integer 6431288
        "stop_time" => float 1414215163.2632
        "stop_memory" => integer 6431856
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2633
        "start_memory" => integer 6436704
        "stop_time" => float 1414215163.2633
        "stop_memory" => integer 6437280
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2643
        "start_memory" => integer 6457584
        "stop_time" => float 1414215163.2644
        "stop_memory" => integer 6458152
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2645
        "start_memory" => integer 6463088
        "stop_time" => float 1414215163.2645
        "stop_memory" => integer 6463672
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2655
        "start_memory" => integer 6478712
        "stop_time" => float 1414215163.2656
        "stop_memory" => integer 6479272
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2657
        "start_memory" => integer 6484208
        "stop_time" => float 1414215163.2657
        "stop_memory" => integer 6484792
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2666
        "start_memory" => integer 6499832
        "stop_time" => float 1414215163.2666
        "stop_memory" => integer 6500392
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2667
        "start_memory" => integer 6505328
        "stop_time" => float 1414215163.2668
        "stop_memory" => integer 6505912
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2677
        "start_memory" => integer 6520960
        "stop_time" => float 1414215163.2678
        "stop_memory" => integer 6521520
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.268
        "start_memory" => integer 6526456
        "stop_time" => float 1414215163.2681
        "stop_memory" => integer 6527040
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2689
        "start_memory" => integer 6542064
        "stop_time" => float 1414215163.269
        "stop_memory" => integer 6542624
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2691
        "start_memory" => integer 6547560
        "stop_time" => float 1414215163.2692
        "stop_memory" => integer 6548144
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.27
        "start_memory" => integer 6563168
        "stop_time" => float 1414215163.27
        "stop_memory" => integer 6563728
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2701
        "start_memory" => integer 6568664
        "stop_time" => float 1414215163.2702
        "stop_memory" => integer 6569248
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.271
        "start_memory" => integer 6584304
        "stop_time" => float 1414215163.271
        "stop_memory" => integer 6584864
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2711
        "start_memory" => integer 6589800
        "stop_time" => float 1414215163.2712
        "stop_memory" => integer 6590384
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2721
        "start_memory" => integer 6605408
        "stop_time" => float 1414215163.2723
        "stop_memory" => integer 6605968
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2724
        "start_memory" => integer 6610904
        "stop_time" => float 1414215163.2725
        "stop_memory" => integer 6611488
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2733
        "start_memory" => integer 6626624
        "stop_time" => float 1414215163.2734
        "stop_memory" => integer 6627184
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2735
        "start_memory" => integer 6632120
        "stop_time" => float 1414215163.2736
        "stop_memory" => integer 6632704
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2742
        "start_memory" => integer 6647736
        "stop_time" => float 1414215163.2743
        "stop_memory" => integer 6648296
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2744
        "start_memory" => integer 6653232
        "stop_time" => float 1414215163.2744
        "stop_memory" => integer 6653816
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2751
        "start_memory" => integer 6668856
        "stop_time" => float 1414215163.2752
        "stop_memory" => integer 6669416
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2754
        "start_memory" => integer 6674352
        "stop_time" => float 1414215163.2755
        "stop_memory" => integer 6674936
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2767
        "start_memory" => integer 6689944
        "stop_time" => float 1414215163.2768
        "stop_memory" => integer 6690504
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2769
        "start_memory" => integer 6695440
        "stop_time" => float 1414215163.277
        "stop_memory" => integer 6696024
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2778
        "start_memory" => integer 6711048
        "stop_time" => float 1414215163.2779
        "stop_memory" => integer 6711608
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.278
        "start_memory" => integer 6716544
        "stop_time" => float 1414215163.2781
        "stop_memory" => integer 6717152
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2789
        "start_memory" => integer 6732208
        "stop_time" => float 1414215163.2789
        "stop_memory" => integer 6732768
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.279
        "start_memory" => integer 6737704
        "stop_time" => float 1414215163.2791
        "stop_memory" => integer 6738288
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2799
        "start_memory" => integer 6753344
        "stop_time" => float 1414215163.28
        "stop_memory" => integer 6753904
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2801
        "start_memory" => integer 6758840
        "stop_time" => float 1414215163.2801
        "stop_memory" => integer 6759424
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2809
        "start_memory" => integer 6774472
        "stop_time" => float 1414215163.2809
        "stop_memory" => integer 6775032
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.281
        "start_memory" => integer 6779968
        "stop_time" => float 1414215163.2811
        "stop_memory" => integer 6780552
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2818
        "start_memory" => integer 6795736
        "stop_time" => float 1414215163.2818
        "stop_memory" => integer 6796296
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2819
        "start_memory" => integer 6801232
        "stop_time" => float 1414215163.2819
        "stop_memory" => integer 6801816
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2828
        "start_memory" => integer 6816888
        "stop_time" => float 1414215163.2829
        "stop_memory" => integer 6817448
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.283
        "start_memory" => integer 6822384
        "stop_time" => float 1414215163.2831
        "stop_memory" => integer 6822968
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2838
        "start_memory" => integer 6838024
        "stop_time" => float 1414215163.2838
        "stop_memory" => integer 6838584
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2839
        "start_memory" => integer 6843520
        "stop_time" => float 1414215163.284
        "stop_memory" => integer 6844104
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2848
        "start_memory" => integer 6859152
        "stop_time" => float 1414215163.2848
        "stop_memory" => integer 6859712
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2849
        "start_memory" => integer 6864648
        "stop_time" => float 1414215163.2849
        "stop_memory" => integer 6865232
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2857
        "start_memory" => integer 6880256
        "stop_time" => float 1414215163.2857
        "stop_memory" => integer 6880816
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2858
        "start_memory" => integer 6885752
        "stop_time" => float 1414215163.2859
        "stop_memory" => integer 6886336
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2866
        "start_memory" => integer 6901360
        "stop_time" => float 1414215163.2866
        "stop_memory" => integer 6901920
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2867
        "start_memory" => integer 6906856
        "stop_time" => float 1414215163.2868
        "stop_memory" => integer 6907440
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2875
        "start_memory" => integer 6922496
        "stop_time" => float 1414215163.2876
        "stop_memory" => integer 6923056
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2877
        "start_memory" => integer 6927992
        "stop_time" => float 1414215163.2877
        "stop_memory" => integer 6928576
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2884
        "start_memory" => integer 6943616
        "stop_time" => float 1414215163.2884
        "stop_memory" => integer 6944176
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2886
        "start_memory" => integer 6949112
        "stop_time" => float 1414215163.2886
        "stop_memory" => integer 6949696
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2905
        "start_memory" => integer 6964960
        "stop_time" => float 1414215163.2906
        "stop_memory" => integer 6965520
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2907
        "start_memory" => integer 6970432
        "stop_time" => float 1414215163.2907
        "stop_memory" => integer 6971000
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2948
        "start_memory" => integer 7009040
        "stop_time" => float 1414215163.2949
        "stop_memory" => integer 7009592
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2951
        "start_memory" => integer 7014264
        "stop_time" => float 1414215163.2952
        "stop_memory" => integer 7014840
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2972
        "start_memory" => integer 7145904
        "stop_time" => float 1414215163.2973
        "stop_memory" => integer 7146456
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2974
        "start_memory" => integer 7151136
        "stop_time" => float 1414215163.2974
        "stop_memory" => integer 7151712
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2993
        "start_memory" => integer 7320864
        "stop_time" => float 1414215163.2994
        "stop_memory" => integer 7321416
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.2995
        "start_memory" => integer 7326104
        "stop_time" => float 1414215163.2996
        "stop_memory" => integer 7326664
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3024
        "start_memory" => integer 7382328
        "stop_time" => float 1414215163.3025
        "stop_memory" => integer 7382904
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3027
        "start_memory" => integer 7387816
        "stop_time" => float 1414215163.3027
        "stop_memory" => integer 7388384
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3038
        "start_memory" => integer 7428416
        "stop_time" => float 1414215163.3039
        "stop_memory" => integer 7428992
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.304
        "start_memory" => integer 7433944
        "stop_time" => float 1414215163.3041
        "stop_memory" => integer 7434536
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3058
        "start_memory" => integer 7460480
        "stop_time" => float 1414215163.3059
        "stop_memory" => integer 7461048
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.306
        "start_memory" => integer 7465920
        "stop_time" => float 1414215163.306
        "stop_memory" => integer 7466496
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3088
        "start_memory" => integer 7492552
        "stop_time" => float 1414215163.3089
        "stop_memory" => integer 7493128
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3144
        "start_memory" => integer 7504032
        "stop_time" => float 1414215163.3145
        "stop_memory" => integer 7504592
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3149
        "start_memory" => integer 7514456
        "stop_time" => float 1414215163.315
        "stop_memory" => integer 7515024
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3175
        "start_memory" => integer 7525624
        "stop_time" => float 1414215163.3176
        "stop_memory" => integer 7526176
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3177
        "start_memory" => integer 7530888
        "stop_time" => float 1414215163.3178
        "stop_memory" => integer 7531464
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3187
        "start_memory" => integer 7536944
        "stop_time" => float 1414215163.3188
        "stop_memory" => integer 7537496
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3189
        "start_memory" => integer 7542224
        "stop_time" => float 1414215163.319
        "stop_memory" => integer 7542800
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3199
        "start_memory" => integer 7548248
        "stop_time" => float 1414215163.32
        "stop_memory" => integer 7548800
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3202
        "start_memory" => integer 7553552
        "stop_time" => float 1414215163.3203
        "stop_memory" => integer 7554128
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3219
        "start_memory" => integer 7566136
        "stop_time" => float 1414215163.322
        "stop_memory" => integer 7566672
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3221
        "start_memory" => integer 7571336
        "stop_time" => float 1414215163.3222
        "stop_memory" => integer 7571904
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.323
        "start_memory" => integer 7574952
        "stop_time" => float 1414215163.3231
        "stop_memory" => integer 7575528
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3234
        "start_memory" => integer 7584800
        "stop_time" => float 1414215163.3234
        "stop_memory" => integer 7585336
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3236
        "start_memory" => integer 7589984
        "stop_time" => float 1414215163.3236
        "stop_memory" => integer 7590552
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3271
        "start_memory" => integer 7965888
        "stop_time" => float 1414215163.3272
        "stop_memory" => integer 7966464
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3285
        "start_memory" => integer 8045040
        "stop_time" => float 1414215163.3286
        "stop_memory" => integer 8045624
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3296
        "start_memory" => integer 8090848
        "stop_time" => float 1414215163.3296
        "stop_memory" => integer 8091408
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3297
        "start_memory" => integer 8096272
        "stop_time" => float 1414215163.3298
        "stop_memory" => integer 8096856
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3307
        "start_memory" => integer 8105840
        "stop_time" => float 1414215163.3307
        "stop_memory" => integer 8106384
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3316
        "start_memory" => integer 8137848
        "stop_time" => float 1414215163.3317
        "stop_memory" => integer 8138408
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3325
        "start_memory" => integer 8172816
        "stop_time" => float 1414215163.3325
        "stop_memory" => integer 8173392
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3334
        "start_memory" => integer 8205504
        "stop_time" => float 1414215163.3334
        "stop_memory" => integer 8206040
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3336
        "start_memory" => integer 8210696
        "stop_time" => float 1414215163.3336
        "stop_memory" => integer 8211264
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3372
        "start_memory" => integer 8253072
        "stop_time" => float 1414215163.3373
        "stop_memory" => integer 8253664
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3374
        "start_memory" => integer 8258848
        "stop_time" => float 1414215163.3375
        "stop_memory" => integer 8259440
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3419
        "start_memory" => integer 8303544
        "stop_time" => float 1414215163.3421
        "stop_memory" => integer 8304096
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3423
        "start_memory" => integer 8309032
        "stop_time" => float 1414215163.3424
        "stop_memory" => integer 8309616
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3486
        "start_memory" => integer 8411304
        "stop_time" => float 1414215163.3487
        "stop_memory" => integer 8411832
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3489
        "start_memory" => integer 8416488
        "stop_time" => float 1414215163.349
        "stop_memory" => integer 8417056
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3498
        "start_memory" => integer 8431984
        "stop_time" => float 1414215163.3499
        "stop_memory" => integer 8432536
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.35
        "start_memory" => integer 8437184
        "stop_time" => float 1414215163.3501
        "stop_memory" => integer 8437752
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3514
        "start_memory" => integer 8504184
        "stop_time" => float 1414215163.3515
        "stop_memory" => integer 8504744
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3516
        "start_memory" => integer 8509600
        "stop_time" => float 1414215163.3517
        "stop_memory" => integer 8510176
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3527
        "start_memory" => integer 8533616
        "stop_time" => float 1414215163.3527
        "stop_memory" => integer 8534224
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3529
        "start_memory" => integer 8539144
        "stop_time" => float 1414215163.3529
        "stop_memory" => integer 8539736
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3549
        "start_memory" => integer 8610736
        "stop_time" => float 1414215163.355
        "stop_memory" => integer 8611272
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3551
        "start_memory" => integer 8616144
        "stop_time" => float 1414215163.3553
        "stop_memory" => integer 8616696
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3562
        "start_memory" => integer 8644400
        "stop_time" => float 1414215163.3563
        "stop_memory" => integer 8644936
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3564
        "start_memory" => integer 8649592
        "stop_time" => float 1414215163.3565
        "stop_memory" => integer 8650160
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3584
        "start_memory" => integer 8771384
        "stop_time" => float 1414215163.3585
        "stop_memory" => integer 8771928
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3586
        "start_memory" => integer 8776600
        "stop_time" => float 1414215163.3587
        "stop_memory" => integer 8777168
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3672
        "start_memory" => integer 8808552
        "stop_time" => float 1414215163.3673
        "stop_memory" => integer 8809096
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3675
        "start_memory" => integer 8813744
        "stop_time" => float 1414215163.3676
        "stop_memory" => integer 8814312
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.369
        "start_memory" => integer 8914648
        "stop_time" => float 1414215163.3691
        "stop_memory" => integer 8915208
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3693
        "start_memory" => integer 8919920
        "stop_time" => float 1414215163.3694
        "stop_memory" => integer 8920496
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3711
        "start_memory" => integer 9028240
        "stop_time" => float 1414215163.3712
        "stop_memory" => integer 9028808
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3713
        "start_memory" => integer 9033728
        "stop_time" => float 1414215163.3714
        "stop_memory" => integer 9034312
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3729
        "start_memory" => integer 9055496
        "stop_time" => float 1414215163.373
        "stop_memory" => integer 9056072
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3735
        "start_memory" => integer 9020560
        "stop_time" => float 1414215163.3736
        "stop_memory" => integer 9022496
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3746
        "start_memory" => integer 9093216
        "stop_time" => float 1414215163.3747
        "stop_memory" => integer 9094944
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414215163.3748
        "start_memory" => integer 9094704
        "stop_time" => float 1414215163.3748
        "stop_memory" => integer 9096432
    )
)

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