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 1436221275.7488
        "start_memory" => integer 1116648
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7489
        "start_memory" => integer 1118928
        "stop_time" => float 1436221275.7489
        "stop_memory" => integer 1119616
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.749
        "start_memory" => integer 1123176
        "stop_time" => float 1436221275.7491
        "stop_memory" => integer 1123800
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7497
        "start_memory" => integer 1200232
        "stop_time" => float 1436221275.7497
        "stop_memory" => integer 1200808
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7498
        "start_memory" => integer 1204320
        "stop_time" => float 1436221275.7499
        "stop_memory" => integer 1204912
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.75
        "start_memory" => integer 1212872
        "stop_time" => float 1436221275.75
        "stop_memory" => integer 1213424
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7501
        "start_memory" => integer 1216896
        "stop_time" => float 1436221275.7502
        "stop_memory" => integer 1217480
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7503
        "start_memory" => integer 1226312
        "stop_time" => float 1436221275.7503
        "stop_memory" => integer 1226872
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7504
        "start_memory" => integer 1230312
        "stop_time" => float 1436221275.7505
        "stop_memory" => integer 1230968
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7512
        "start_memory" => integer 1325824
        "stop_time" => float 1436221275.7513
        "stop_memory" => integer 1326400
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7514
        "start_memory" => integer 1329880
        "stop_time" => float 1436221275.7515
        "stop_memory" => integer 1330472
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7516
        "start_memory" => integer 1342256
        "stop_time" => float 1436221275.7516
        "stop_memory" => integer 1342808
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7517
        "start_memory" => integer 1346232
        "stop_time" => float 1436221275.7518
        "stop_memory" => integer 1346800
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7521
        "start_memory" => integer 1381192
        "stop_time" => float 1436221275.7521
        "stop_memory" => integer 1381792
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7521
        "start_memory" => integer 1382864
        "stop_time" => float 1436221275.7522
        "stop_memory" => integer 1383400
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7523
        "start_memory" => integer 1386808
        "stop_time" => float 1436221275.7523
        "stop_memory" => integer 1387384
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7526
        "start_memory" => integer 1406632
        "stop_time" => float 1436221275.7526
        "stop_memory" => integer 1407336
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7527
        "start_memory" => integer 1410760
        "stop_time" => float 1436221275.7528
        "stop_memory" => integer 1411328
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7534
        "start_memory" => integer 1506936
        "stop_time" => float 1436221275.7534
        "stop_memory" => integer 1507536
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7535
        "start_memory" => integer 1511040
        "stop_time" => float 1436221275.7536
        "stop_memory" => integer 1511640
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7539
        "start_memory" => integer 1550936
        "stop_time" => float 1436221275.7539
        "stop_memory" => integer 1551440
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.754
        "start_memory" => integer 1552080
        "stop_time" => float 1436221275.754
        "stop_memory" => integer 1552656
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7569
        "start_memory" => integer 1951808
        "stop_time" => float 1436221275.7569
        "stop_memory" => integer 1952392
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.757
        "start_memory" => integer 1955896
        "stop_time" => float 1436221275.7571
        "stop_memory" => integer 1956496
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7572
        "start_memory" => integer 1958128
        "stop_time" => float 1436221275.7573
        "stop_memory" => integer 1958728
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7573
        "start_memory" => integer 1962240
        "stop_time" => float 1436221275.7574
        "stop_memory" => integer 1962816
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7577
        "start_memory" => integer 1992464
        "stop_time" => float 1436221275.7577
        "stop_memory" => integer 1993024
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7578
        "start_memory" => integer 1996528
        "stop_time" => float 1436221275.7579
        "stop_memory" => integer 1997128
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7584
        "start_memory" => integer 2059192
        "stop_time" => float 1436221275.7584
        "stop_memory" => integer 2059744
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7585
        "start_memory" => integer 2063176
        "stop_time" => float 1436221275.7586
        "stop_memory" => integer 2063744
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.7595
        "start_memory" => integer 2122904
        "stop_time" => float 1436221275.7596
        "stop_memory" => integer 2123520
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8426
        "start_memory" => integer 2164456
        "stop_time" => float 1436221275.8426
        "stop_memory" => integer 2165008
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8428
        "start_memory" => integer 2168432
        "stop_time" => float 1436221275.8429
        "stop_memory" => integer 2169272
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8436
        "start_memory" => integer 2195528
        "stop_time" => float 1436221275.8437
        "stop_memory" => integer 2196104
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8438
        "start_memory" => integer 2199584
        "stop_time" => float 1436221275.8438
        "stop_memory" => integer 2200176
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8444
        "start_memory" => integer 2217472
        "stop_time" => float 1436221275.8445
        "stop_memory" => integer 2218040
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8446
        "start_memory" => integer 2221504
        "stop_time" => float 1436221275.8447
        "stop_memory" => integer 2222096
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8454
        "start_memory" => integer 2265552
        "stop_time" => float 1436221275.8455
        "stop_memory" => integer 2266152
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8457
        "start_memory" => integer 2277688
        "stop_time" => float 1436221275.8457
        "stop_memory" => integer 2278264
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8458
        "start_memory" => integer 2281784
        "stop_time" => float 1436221275.8459
        "stop_memory" => integer 2282368
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8464
        "start_memory" => integer 2320368
        "stop_time" => float 1436221275.8464
        "stop_memory" => integer 2320968
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8467
        "start_memory" => integer 2333088
        "stop_time" => float 1436221275.8467
        "stop_memory" => integer 2333664
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8472
        "start_memory" => integer 2360680
        "stop_time" => float 1436221275.8472
        "stop_memory" => integer 2361280
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8474
        "start_memory" => integer 2369096
        "stop_time" => float 1436221275.8475
        "stop_memory" => integer 2369672
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8477
        "start_memory" => integer 2382824
        "stop_time" => float 1436221275.8477
        "stop_memory" => integer 2383424
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.848
        "start_memory" => integer 2390440
        "stop_time" => float 1436221275.848
        "stop_memory" => integer 2391032
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8483
        "start_memory" => integer 2404336
        "stop_time" => float 1436221275.8484
        "stop_memory" => integer 2404928
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8486
        "start_memory" => integer 2418560
        "stop_time" => float 1436221275.8487
        "stop_memory" => integer 2419152
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.849
        "start_memory" => integer 2428632
        "stop_time" => float 1436221275.849
        "stop_memory" => integer 2429224
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8492
        "start_memory" => integer 2437896
        "stop_time" => float 1436221275.8493
        "stop_memory" => integer 2438488
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8496
        "start_memory" => integer 2483832
        "stop_time" => float 1436221275.8496
        "stop_memory" => integer 2484408
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.85
        "start_memory" => integer 2507336
        "stop_time" => float 1436221275.85
        "stop_memory" => integer 2507936
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8503
        "start_memory" => integer 2521232
        "stop_time" => float 1436221275.8504
        "stop_memory" => integer 2521808
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8507
        "start_memory" => integer 2541008
        "stop_time" => float 1436221275.8508
        "stop_memory" => integer 2541592
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.851
        "start_memory" => integer 2555248
        "stop_time" => float 1436221275.8511
        "stop_memory" => integer 2555816
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8512
        "start_memory" => integer 2559272
        "stop_time" => float 1436221275.8512
        "stop_memory" => integer 2559856
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8515
        "start_memory" => integer 2582056
        "stop_time" => float 1436221275.8515
        "stop_memory" => integer 2582616
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8516
        "start_memory" => integer 2586048
        "stop_time" => float 1436221275.8517
        "stop_memory" => integer 2586632
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.854
        "start_memory" => integer 2680544
        "stop_time" => float 1436221275.8541
        "stop_memory" => integer 2681120
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8609
        "start_memory" => integer 2711696
        "stop_time" => float 1436221275.861
        "stop_memory" => integer 2712272
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8611
        "start_memory" => integer 2715776
        "stop_time" => float 1436221275.8611
        "stop_memory" => integer 2716368
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8648
        "start_memory" => integer 2735480
        "stop_time" => float 1436221275.8648
        "stop_memory" => integer 2736064
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8649
        "start_memory" => integer 2739592
        "stop_time" => float 1436221275.8649
        "stop_memory" => integer 2740192
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8687
        "start_memory" => integer 2759384
        "stop_time" => float 1436221275.8687
        "stop_memory" => integer 2759944
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8688
        "start_memory" => integer 2763424
        "stop_time" => float 1436221275.8689
        "stop_memory" => integer 2764528
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8694
        "start_memory" => integer 2819080
        "stop_time" => float 1436221275.8694
        "stop_memory" => integer 2819680
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8734
        "start_memory" => integer 2826992
        "stop_time" => float 1436221275.8734
        "stop_memory" => integer 2827568
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8735
        "start_memory" => integer 2831072
        "stop_time" => float 1436221275.8736
        "stop_memory" => integer 2831672
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8881
        "start_memory" => integer 2871336
        "stop_time" => float 1436221275.8881
        "stop_memory" => integer 2871912
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8882
        "start_memory" => integer 2875440
        "stop_time" => float 1436221275.8883
        "stop_memory" => integer 2876040
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8884
        "start_memory" => integer 2892008
        "stop_time" => float 1436221275.8884
        "stop_memory" => integer 2892584
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8889
        "start_memory" => integer 2899904
        "stop_time" => float 1436221275.8889
        "stop_memory" => integer 2900472
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.889
        "start_memory" => integer 2903944
        "stop_time" => float 1436221275.889
        "stop_memory" => integer 2904536
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8898
        "start_memory" => integer 2953976
        "stop_time" => float 1436221275.8898
        "stop_memory" => integer 2954560
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8899
        "start_memory" => integer 2958064
        "stop_time" => float 1436221275.8899
        "stop_memory" => integer 2958664
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8934
        "start_memory" => integer 2978064
        "stop_time" => float 1436221275.8935
        "stop_memory" => integer 2978624
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8936
        "start_memory" => integer 2982120
        "stop_time" => float 1436221275.8936
        "stop_memory" => integer 2982712
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8941
        "start_memory" => integer 2997864
        "stop_time" => float 1436221275.8942
        "stop_memory" => integer 2998400
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8943
        "start_memory" => integer 3001808
        "stop_time" => float 1436221275.8943
        "stop_memory" => integer 3002384
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8954
        "start_memory" => integer 3009056
        "stop_time" => float 1436221275.8954
        "stop_memory" => integer 3009656
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8955
        "start_memory" => integer 3013168
        "stop_time" => float 1436221275.8956
        "stop_memory" => integer 3013768
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8986
        "start_memory" => integer 3048816
        "stop_time" => float 1436221275.8986
        "stop_memory" => integer 3049408
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.899
        "start_memory" => integer 3057104
        "stop_time" => float 1436221275.8991
        "stop_memory" => integer 3057664
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.8992
        "start_memory" => integer 3061152
        "stop_time" => float 1436221275.8992
        "stop_memory" => integer 3061744
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9015
        "start_memory" => integer 3079384
        "stop_time" => float 1436221275.9015
        "stop_memory" => integer 3079968
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9028
        "start_memory" => integer 3084568
        "stop_time" => float 1436221275.9028
        "stop_memory" => integer 3085136
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9029
        "start_memory" => integer 3088600
        "stop_time" => float 1436221275.9029
        "stop_memory" => integer 3089192
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9045
        "start_memory" => integer 3183224
        "stop_time" => float 1436221275.9046
        "stop_memory" => integer 3183824
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9047
        "start_memory" => integer 3187376
        "stop_time" => float 1436221275.9047
        "stop_memory" => integer 3187968
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9051
        "start_memory" => integer 3200856
        "stop_time" => float 1436221275.9051
        "stop_memory" => integer 3201448
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9052
        "start_memory" => integer 3205000
        "stop_time" => float 1436221275.9052
        "stop_memory" => integer 3205608
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9062
        "start_memory" => integer 3210640
        "stop_time" => float 1436221275.9063
        "stop_memory" => integer 3211208
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9063
        "start_memory" => integer 3214712
        "stop_time" => float 1436221275.9064
        "stop_memory" => integer 3215312
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9073
        "start_memory" => integer 3310104
        "stop_time" => float 1436221275.9073
        "stop_memory" => integer 3310696
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9074
        "start_memory" => integer 3314248
        "stop_time" => float 1436221275.9074
        "stop_memory" => integer 3314856
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9076
        "start_memory" => integer 3326896
        "stop_time" => float 1436221275.9076
        "stop_memory" => integer 3327464
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9077
        "start_memory" => integer 3330968
        "stop_time" => float 1436221275.9078
        "stop_memory" => integer 3331592
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9084
        "start_memory" => integer 3375232
        "stop_time" => float 1436221275.9085
        "stop_memory" => integer 3375808
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9086
        "start_memory" => integer 3379328
        "stop_time" => float 1436221275.9086
        "stop_memory" => integer 3379928
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9092
        "start_memory" => integer 3424560
        "stop_time" => float 1436221275.9092
        "stop_memory" => integer 3425136
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9093
        "start_memory" => integer 3428640
        "stop_time" => float 1436221275.9094
        "stop_memory" => integer 3429240
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9101
        "start_memory" => integer 3456552
        "stop_time" => float 1436221275.9101
        "stop_memory" => integer 3457144
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9102
        "start_memory" => integer 3460704
        "stop_time" => float 1436221275.9102
        "stop_memory" => integer 3461312
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9109
        "start_memory" => integer 3497544
        "stop_time" => float 1436221275.911
        "stop_memory" => integer 3498144
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9111
        "start_memory" => integer 3501776
        "stop_time" => float 1436221275.9111
        "stop_memory" => integer 3502392
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9113
        "start_memory" => integer 3514536
        "stop_time" => float 1436221275.9113
        "stop_memory" => integer 3515128
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9114
        "start_memory" => integer 3518752
        "stop_time" => float 1436221275.9114
        "stop_memory" => integer 3519368
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9121
        "start_memory" => integer 3571488
        "stop_time" => float 1436221275.9121
        "stop_memory" => integer 3572080
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9122
        "start_memory" => integer 3575688
        "stop_time" => float 1436221275.9122
        "stop_memory" => integer 3576304
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9129
        "start_memory" => integer 3608896
        "stop_time" => float 1436221275.913
        "stop_memory" => integer 3609488
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.913
        "start_memory" => integer 3613112
        "stop_time" => float 1436221275.9131
        "stop_memory" => integer 3613728
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9137
        "start_memory" => integer 3642352
        "stop_time" => float 1436221275.9138
        "stop_memory" => integer 3642944
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9139
        "start_memory" => integer 3646552
        "stop_time" => float 1436221275.9139
        "stop_memory" => integer 3647168
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9148
        "start_memory" => integer 3723088
        "stop_time" => float 1436221275.9148
        "stop_memory" => integer 3723680
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9149
        "start_memory" => integer 3727288
        "stop_time" => float 1436221275.915
        "stop_memory" => integer 3727904
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9165
        "start_memory" => integer 3764400
        "stop_time" => float 1436221275.9165
        "stop_memory" => integer 3764976
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9166
        "start_memory" => integer 3768536
        "stop_time" => float 1436221275.9166
        "stop_memory" => integer 3769144
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9172
        "start_memory" => integer 3787472
        "stop_time" => float 1436221275.9173
        "stop_memory" => integer 3788008
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9174
        "start_memory" => integer 3791456
        "stop_time" => float 1436221275.9174
        "stop_memory" => integer 3792024
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9183
        "start_memory" => integer 3861584
        "stop_time" => float 1436221275.9183
        "stop_memory" => integer 3862168
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9184
        "start_memory" => integer 3865624
        "stop_time" => float 1436221275.9184
        "stop_memory" => integer 3866200
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9214
        "start_memory" => integer 3880400
        "stop_time" => float 1436221275.9214
        "stop_memory" => integer 3880960
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9215
        "start_memory" => integer 3884392
        "stop_time" => float 1436221275.9216
        "stop_memory" => integer 3884976
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9234
        "start_memory" => integer 3906816
        "stop_time" => float 1436221275.9235
        "stop_memory" => integer 3907376
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9236
        "start_memory" => integer 3910800
        "stop_time" => float 1436221275.9236
        "stop_memory" => integer 3911368
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9242
        "start_memory" => integer 3934512
        "stop_time" => float 1436221275.9242
        "stop_memory" => integer 3935080
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9243
        "start_memory" => integer 3938512
        "stop_time" => float 1436221275.9243
        "stop_memory" => integer 3939080
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9249
        "start_memory" => integer 3965016
        "stop_time" => float 1436221275.9249
        "stop_memory" => integer 3965584
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.925
        "start_memory" => integer 3969008
        "stop_time" => float 1436221275.9251
        "stop_memory" => integer 3970600
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.926
        "start_memory" => integer 4017712
        "stop_time" => float 1436221275.926
        "stop_memory" => integer 4018280
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9261
        "start_memory" => integer 4021736
        "stop_time" => float 1436221275.9262
        "stop_memory" => integer 4022320
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9276
        "start_memory" => integer 4036864
        "stop_time" => float 1436221275.9276
        "stop_memory" => integer 4037424
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9277
        "start_memory" => integer 4040872
        "stop_time" => float 1436221275.9278
        "stop_memory" => integer 4041440
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9287
        "start_memory" => integer 4058064
        "stop_time" => float 1436221275.9287
        "stop_memory" => integer 4058648
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9288
        "start_memory" => integer 4062128
        "stop_time" => float 1436221275.9289
        "stop_memory" => integer 4062720
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9294
        "start_memory" => integer 4078496
        "stop_time" => float 1436221275.9294
        "stop_memory" => integer 4079064
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9295
        "start_memory" => integer 4082568
        "stop_time" => float 1436221275.9295
        "stop_memory" => integer 4083160
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.93
        "start_memory" => integer 4096056
        "stop_time" => float 1436221275.93
        "stop_memory" => integer 4096624
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9301
        "start_memory" => integer 4100128
        "stop_time" => float 1436221275.9302
        "stop_memory" => integer 4100720
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9306
        "start_memory" => integer 4113632
        "stop_time" => float 1436221275.9307
        "stop_memory" => integer 4114200
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9308
        "start_memory" => integer 4117704
        "stop_time" => float 1436221275.9308
        "stop_memory" => integer 4118296
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9312
        "start_memory" => integer 4131208
        "stop_time" => float 1436221275.9313
        "stop_memory" => integer 4131776
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9314
        "start_memory" => integer 4135280
        "stop_time" => float 1436221275.9314
        "stop_memory" => integer 4135872
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9319
        "start_memory" => integer 4148768
        "stop_time" => float 1436221275.9319
        "stop_memory" => integer 4149336
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.932
        "start_memory" => integer 4152840
        "stop_time" => float 1436221275.932
        "stop_memory" => integer 4153432
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9325
        "start_memory" => integer 4166328
        "stop_time" => float 1436221275.9325
        "stop_memory" => integer 4166896
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9326
        "start_memory" => integer 4170400
        "stop_time" => float 1436221275.9327
        "stop_memory" => integer 4170992
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9331
        "start_memory" => integer 4183904
        "stop_time" => float 1436221275.9332
        "stop_memory" => integer 4184472
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9332
        "start_memory" => integer 4187976
        "stop_time" => float 1436221275.9333
        "stop_memory" => integer 4188568
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9337
        "start_memory" => integer 4201464
        "stop_time" => float 1436221275.9338
        "stop_memory" => integer 4202032
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9339
        "start_memory" => integer 4205536
        "stop_time" => float 1436221275.9339
        "stop_memory" => integer 4206128
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9344
        "start_memory" => integer 4219120
        "stop_time" => float 1436221275.9344
        "stop_memory" => integer 4219688
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9345
        "start_memory" => integer 4223192
        "stop_time" => float 1436221275.9345
        "stop_memory" => integer 4223784
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.935
        "start_memory" => integer 4236680
        "stop_time" => float 1436221275.935
        "stop_memory" => integer 4237248
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9351
        "start_memory" => integer 4240752
        "stop_time" => float 1436221275.9352
        "stop_memory" => integer 4241344
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9356
        "start_memory" => integer 4254240
        "stop_time" => float 1436221275.9357
        "stop_memory" => integer 4254808
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9357
        "start_memory" => integer 4258312
        "stop_time" => float 1436221275.9358
        "stop_memory" => integer 4258904
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9362
        "start_memory" => integer 4271784
        "stop_time" => float 1436221275.9363
        "stop_memory" => integer 4272352
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9364
        "start_memory" => integer 4275856
        "stop_time" => float 1436221275.9364
        "stop_memory" => integer 4276448
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9368
        "start_memory" => integer 4289344
        "stop_time" => float 1436221275.9369
        "stop_memory" => integer 4289912
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.937
        "start_memory" => integer 4293416
        "stop_time" => float 1436221275.937
        "stop_memory" => integer 4294008
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9375
        "start_memory" => integer 4306920
        "stop_time" => float 1436221275.9375
        "stop_memory" => integer 4307488
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9376
        "start_memory" => integer 4310992
        "stop_time" => float 1436221275.9377
        "stop_memory" => integer 4311584
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9381
        "start_memory" => integer 4324512
        "stop_time" => float 1436221275.9382
        "stop_memory" => integer 4325080
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9382
        "start_memory" => integer 4328584
        "stop_time" => float 1436221275.9383
        "stop_memory" => integer 4329176
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9387
        "start_memory" => integer 4342088
        "stop_time" => float 1436221275.9388
        "stop_memory" => integer 4342656
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9389
        "start_memory" => integer 4346160
        "stop_time" => float 1436221275.9389
        "stop_memory" => integer 4346752
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9394
        "start_memory" => integer 4359792
        "stop_time" => float 1436221275.9394
        "stop_memory" => integer 4360360
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9395
        "start_memory" => integer 4363864
        "stop_time" => float 1436221275.9396
        "stop_memory" => integer 4364456
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.94
        "start_memory" => integer 4377384
        "stop_time" => float 1436221275.9401
        "stop_memory" => integer 4377952
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9401
        "start_memory" => integer 4381456
        "stop_time" => float 1436221275.9402
        "stop_memory" => integer 4382048
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9406
        "start_memory" => integer 4394960
        "stop_time" => float 1436221275.9407
        "stop_memory" => integer 4395528
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9408
        "start_memory" => integer 4399032
        "stop_time" => float 1436221275.9408
        "stop_memory" => integer 4399624
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9413
        "start_memory" => integer 4412536
        "stop_time" => float 1436221275.9413
        "stop_memory" => integer 4413104
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9414
        "start_memory" => integer 4416608
        "stop_time" => float 1436221275.9415
        "stop_memory" => integer 4417200
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9419
        "start_memory" => integer 4430096
        "stop_time" => float 1436221275.942
        "stop_memory" => integer 4430664
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.942
        "start_memory" => integer 4434168
        "stop_time" => float 1436221275.9421
        "stop_memory" => integer 4434760
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9425
        "start_memory" => integer 4447656
        "stop_time" => float 1436221275.9426
        "stop_memory" => integer 4448224
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9427
        "start_memory" => integer 4451728
        "stop_time" => float 1436221275.9427
        "stop_memory" => integer 4452320
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9432
        "start_memory" => integer 4465232
        "stop_time" => float 1436221275.9432
        "stop_memory" => integer 4465800
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9433
        "start_memory" => integer 4469304
        "stop_time" => float 1436221275.9434
        "stop_memory" => integer 4469896
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9438
        "start_memory" => integer 4482792
        "stop_time" => float 1436221275.9439
        "stop_memory" => integer 4483360
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9439
        "start_memory" => integer 4486864
        "stop_time" => float 1436221275.944
        "stop_memory" => integer 4487456
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.945
        "start_memory" => integer 4500592
        "stop_time" => float 1436221275.9451
        "stop_memory" => integer 4501160
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9451
        "start_memory" => integer 4504664
        "stop_time" => float 1436221275.9452
        "stop_memory" => integer 4505256
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.947
        "start_memory" => integer 4528176
        "stop_time" => float 1436221275.9471
        "stop_memory" => integer 4528744
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9471
        "start_memory" => integer 4532208
        "stop_time" => float 1436221275.9472
        "stop_memory" => integer 4532784
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9482
        "start_memory" => integer 4613944
        "stop_time" => float 1436221275.9482
        "stop_memory" => integer 4614520
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9483
        "start_memory" => integer 4617984
        "stop_time" => float 1436221275.9483
        "stop_memory" => integer 4618576
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9495
        "start_memory" => integer 4719752
        "stop_time" => float 1436221275.9495
        "stop_memory" => integer 4720304
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9496
        "start_memory" => integer 4723784
        "stop_time" => float 1436221275.9497
        "stop_memory" => integer 4724368
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9514
        "start_memory" => integer 4757344
        "stop_time" => float 1436221275.9515
        "stop_memory" => integer 4757936
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9516
        "start_memory" => integer 4761432
        "stop_time" => float 1436221275.9516
        "stop_memory" => integer 4762032
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9522
        "start_memory" => integer 4787648
        "stop_time" => float 1436221275.9522
        "stop_memory" => integer 4788240
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9523
        "start_memory" => integer 4791792
        "stop_time" => float 1436221275.9524
        "stop_memory" => integer 4792400
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9533
        "start_memory" => integer 4811104
        "stop_time" => float 1436221275.9533
        "stop_memory" => integer 4811672
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9534
        "start_memory" => integer 4815200
        "stop_time" => float 1436221275.9534
        "stop_memory" => integer 4815800
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9547
        "start_memory" => integer 4834376
        "stop_time" => float 1436221275.9547
        "stop_memory" => integer 4834968
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9574
        "start_memory" => integer 4844360
        "stop_time" => float 1436221275.9575
        "stop_memory" => integer 4844936
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9577
        "start_memory" => integer 4853184
        "stop_time" => float 1436221275.9577
        "stop_memory" => integer 4853768
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9587
        "start_memory" => integer 4862736
        "stop_time" => float 1436221275.9588
        "stop_memory" => integer 4863288
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9589
        "start_memory" => integer 4866744
        "stop_time" => float 1436221275.9589
        "stop_memory" => integer 4867336
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9593
        "start_memory" => integer 4871296
        "stop_time" => float 1436221275.9594
        "stop_memory" => integer 4871856
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9595
        "start_memory" => integer 4875360
        "stop_time" => float 1436221275.9595
        "stop_memory" => integer 4876048
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9599
        "start_memory" => integer 4879944
        "stop_time" => float 1436221275.96
        "stop_memory" => integer 4880504
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.96
        "start_memory" => integer 4884000
        "stop_time" => float 1436221275.9601
        "stop_memory" => integer 4884584
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9608
        "start_memory" => integer 4893600
        "stop_time" => float 1436221275.9609
        "stop_memory" => integer 4894160
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.961
        "start_memory" => integer 4897656
        "stop_time" => float 1436221275.961
        "stop_memory" => integer 4898256
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9614
        "start_memory" => integer 4900408
        "stop_time" => float 1436221275.9615
        "stop_memory" => integer 4901008
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9616
        "start_memory" => integer 4907760
        "stop_time" => float 1436221275.9616
        "stop_memory" => integer 4908320
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9617
        "start_memory" => integer 4911776
        "stop_time" => float 1436221275.9617
        "stop_memory" => integer 4912360
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9634
        "start_memory" => integer 5143928
        "stop_time" => float 1436221275.9635
        "stop_memory" => integer 5144520
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9641
        "start_memory" => integer 5201192
        "stop_time" => float 1436221275.9641
        "stop_memory" => integer 5201776
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9646
        "start_memory" => integer 5236176
        "stop_time" => float 1436221275.9646
        "stop_memory" => integer 5236760
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9647
        "start_memory" => integer 5240280
        "stop_time" => float 1436221275.9647
        "stop_memory" => integer 5240880
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9651
        "start_memory" => integer 5246872
        "stop_time" => float 1436221275.9652
        "stop_memory" => integer 5247432
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9655
        "start_memory" => integer 5273584
        "stop_time" => float 1436221275.9656
        "stop_memory" => integer 5274160
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9659
        "start_memory" => integer 5303104
        "stop_time" => float 1436221275.966
        "stop_memory" => integer 5303696
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9663
        "start_memory" => integer 5330344
        "stop_time" => float 1436221275.9664
        "stop_memory" => integer 5330880
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9665
        "start_memory" => integer 5334376
        "stop_time" => float 1436221275.9665
        "stop_memory" => integer 5334960
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.968
        "start_memory" => integer 5362088
        "stop_time" => float 1436221275.9681
        "stop_memory" => integer 5362704
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9682
        "start_memory" => integer 5366520
        "stop_time" => float 1436221275.9682
        "stop_memory" => integer 5367144
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.97
        "start_memory" => integer 5398256
        "stop_time" => float 1436221275.9701
        "stop_memory" => integer 5398824
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9702
        "start_memory" => integer 5402400
        "stop_time" => float 1436221275.9702
        "stop_memory" => integer 5403024
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9733
        "start_memory" => integer 5467784
        "stop_time" => float 1436221275.9733
        "stop_memory" => integer 5468328
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9734
        "start_memory" => integer 5471832
        "stop_time" => float 1436221275.9734
        "stop_memory" => integer 5472416
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9739
        "start_memory" => integer 5482544
        "stop_time" => float 1436221275.9739
        "stop_memory" => integer 5483152
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.974
        "start_memory" => integer 5486600
        "stop_time" => float 1436221275.9741
        "stop_memory" => integer 5487200
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9747
        "start_memory" => integer 5531800
        "stop_time" => float 1436221275.9747
        "stop_memory" => integer 5532392
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9748
        "start_memory" => integer 5535880
        "stop_time" => float 1436221275.9749
        "stop_memory" => integer 5536472
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9753
        "start_memory" => integer 5556848
        "stop_time" => float 1436221275.9753
        "stop_memory" => integer 5557480
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9754
        "start_memory" => integer 5561024
        "stop_time" => float 1436221275.9754
        "stop_memory" => integer 5561664
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9764
        "start_memory" => integer 5610304
        "stop_time" => float 1436221275.9764
        "stop_memory" => integer 5610896
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9765
        "start_memory" => integer 5614392
        "stop_time" => float 1436221275.9766
        "stop_memory" => integer 5614992
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.977
        "start_memory" => integer 5637256
        "stop_time" => float 1436221275.9771
        "stop_memory" => integer 5637904
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9772
        "start_memory" => integer 5641416
        "stop_time" => float 1436221275.9772
        "stop_memory" => integer 5642000
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9781
        "start_memory" => integer 5714544
        "stop_time" => float 1436221275.9782
        "stop_memory" => integer 5715144
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9782
        "start_memory" => integer 5718648
        "stop_time" => float 1436221275.9783
        "stop_memory" => integer 5719232
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9817
        "start_memory" => integer 5738424
        "stop_time" => float 1436221275.9818
        "stop_memory" => integer 5738984
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9819
        "start_memory" => integer 5742488
        "stop_time" => float 1436221275.9819
        "stop_memory" => integer 5743088
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9828
        "start_memory" => integer 5802632
        "stop_time" => float 1436221275.9828
        "stop_memory" => integer 5803192
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9829
        "start_memory" => integer 5806744
        "stop_time" => float 1436221275.983
        "stop_memory" => integer 5807328
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9839
        "start_memory" => integer 5876464
        "stop_time" => float 1436221275.984
        "stop_memory" => integer 5877104
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.984
        "start_memory" => integer 5880720
        "stop_time" => float 1436221275.9841
        "stop_memory" => integer 5881296
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9848
        "start_memory" => integer 5898648
        "stop_time" => float 1436221275.9848
        "stop_memory" => integer 5899240
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9851
        "start_memory" => integer 5865144
        "stop_time" => float 1436221275.9852
        "stop_memory" => integer 5867464
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9856
        "start_memory" => integer 5903664
        "stop_time" => float 1436221275.9857
        "stop_memory" => integer 5905352
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436221275.9857
        "start_memory" => integer 5904960
        "stop_time" => float 1436221275.9857
        "stop_memory" => integer 5906624
    )
)

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