Modules

Profiler
extends Kohana_Profiler

Provides simple benchmarking and profiling. To display the statistics that have been collected, load the profiler/stats View:

echo View::factory('profiler/stats');
package
Kohana
category
Helpers
author
Kohana Team
copyright
© 2009-2012 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/profiler.php on line 3.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1409683812.7712
        "start_memory" => integer 1985312
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7712
        "start_memory" => integer 1987656
        "stop_time" => float 1409683812.7713
        "stop_memory" => integer 1988248
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7714
        "start_memory" => integer 1993200
        "stop_time" => float 1409683812.7714
        "stop_memory" => integer 1993792
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7719
        "start_memory" => integer 2119312
        "stop_time" => float 1409683812.7719
        "stop_memory" => integer 2119864
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.772
        "start_memory" => integer 2124784
        "stop_time" => float 1409683812.772
        "stop_memory" => integer 2125368
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7721
        "start_memory" => integer 2136456
        "stop_time" => float 1409683812.7722
        "stop_memory" => integer 2137000
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7722
        "start_memory" => integer 2141712
        "stop_time" => float 1409683812.7723
        "stop_memory" => integer 2142288
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7724
        "start_memory" => integer 2151568
        "stop_time" => float 1409683812.7724
        "stop_memory" => integer 2152128
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7725
        "start_memory" => integer 2156800
        "stop_time" => float 1409683812.7725
        "stop_memory" => integer 2157408
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7733
        "start_memory" => integer 2318336
        "stop_time" => float 1409683812.7733
        "stop_memory" => integer 2318896
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7734
        "start_memory" => integer 2323744
        "stop_time" => float 1409683812.7734
        "stop_memory" => integer 2324320
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7735
        "start_memory" => integer 2337776
        "stop_time" => float 1409683812.7736
        "stop_memory" => integer 2338320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7736
        "start_memory" => integer 2342968
        "stop_time" => float 1409683812.7737
        "stop_memory" => integer 2343536
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7739
        "start_memory" => integer 2398360
        "stop_time" => float 1409683812.774
        "stop_memory" => integer 2398952
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.774
        "start_memory" => integer 2400112
        "stop_time" => float 1409683812.7741
        "stop_memory" => integer 2400688
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7742
        "start_memory" => integer 2405560
        "stop_time" => float 1409683812.7742
        "stop_memory" => integer 2406136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7745
        "start_memory" => integer 2471600
        "stop_time" => float 1409683812.7746
        "stop_memory" => integer 2472216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7746
        "start_memory" => integer 2473000
        "stop_time" => float 1409683812.7746
        "stop_memory" => integer 2473576
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.78
        "start_memory" => integer 3142272
        "stop_time" => float 1409683812.7801
        "stop_memory" => integer 3142800
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7802
        "start_memory" => integer 3148472
        "stop_time" => float 1409683812.7802
        "stop_memory" => integer 3149040
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7806
        "start_memory" => integer 3181792
        "stop_time" => float 1409683812.7806
        "stop_memory" => integer 3182336
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7807
        "start_memory" => integer 3187000
        "stop_time" => float 1409683812.7807
        "stop_memory" => integer 3187568
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7815
        "start_memory" => integer 3350384
        "stop_time" => float 1409683812.7816
        "stop_memory" => integer 3350960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7817
        "start_memory" => integer 3355840
        "stop_time" => float 1409683812.7817
        "stop_memory" => integer 3356424
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7818
        "start_memory" => integer 3359112
        "stop_time" => float 1409683812.7819
        "stop_memory" => integer 3359672
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7819
        "start_memory" => integer 3364544
        "stop_time" => float 1409683812.782
        "stop_memory" => integer 3365128
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7823
        "start_memory" => integer 3414784
        "stop_time" => float 1409683812.7823
        "stop_memory" => integer 3415328
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7824
        "start_memory" => integer 3420000
        "stop_time" => float 1409683812.7824
        "stop_memory" => integer 3420576
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7829
        "start_memory" => integer 3518616
        "stop_time" => float 1409683812.783
        "stop_memory" => integer 3519152
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7831
        "start_memory" => integer 3523792
        "stop_time" => float 1409683812.7831
        "stop_memory" => integer 3524360
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.7844
        "start_memory" => integer 3610952
        "stop_time" => float 1409683812.7844
        "stop_memory" => integer 3611544
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8403
        "start_memory" => integer 3653704
        "stop_time" => float 1409683812.8403
        "stop_memory" => integer 3654272
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8405
        "start_memory" => integer 3658936
        "stop_time" => float 1409683812.8405
        "stop_memory" => integer 3659768
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8413
        "start_memory" => integer 3700368
        "stop_time" => float 1409683812.8413
        "stop_memory" => integer 3700920
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8414
        "start_memory" => integer 3705752
        "stop_time" => float 1409683812.8414
        "stop_memory" => integer 3706328
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8421
        "start_memory" => integer 3730032
        "stop_time" => float 1409683812.8421
        "stop_memory" => integer 3730584
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8422
        "start_memory" => integer 3735272
        "stop_time" => float 1409683812.8423
        "stop_memory" => integer 3735848
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8431
        "start_memory" => integer 3803016
        "stop_time" => float 1409683812.8431
        "stop_memory" => integer 3803600
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8432
        "start_memory" => integer 3821592
        "stop_time" => float 1409683812.8432
        "stop_memory" => integer 3822152
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8433
        "start_memory" => integer 3827016
        "stop_time" => float 1409683812.8433
        "stop_memory" => integer 3827600
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8439
        "start_memory" => integer 3892736
        "stop_time" => float 1409683812.8439
        "stop_memory" => integer 3893312
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8442
        "start_memory" => integer 3912736
        "stop_time" => float 1409683812.8442
        "stop_memory" => integer 3913312
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8446
        "start_memory" => integer 3961360
        "stop_time" => float 1409683812.8447
        "stop_memory" => integer 3961936
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8449
        "start_memory" => integer 3972592
        "stop_time" => float 1409683812.845
        "stop_memory" => integer 3973168
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8453
        "start_memory" => integer 3991184
        "stop_time" => float 1409683812.8454
        "stop_memory" => integer 3991760
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8457
        "start_memory" => integer 4001456
        "stop_time" => float 1409683812.8458
        "stop_memory" => integer 4002032
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8462
        "start_memory" => integer 4022136
        "stop_time" => float 1409683812.8462
        "stop_memory" => integer 4022712
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8467
        "start_memory" => integer 4043192
        "stop_time" => float 1409683812.8467
        "stop_memory" => integer 4043784
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8471
        "start_memory" => integer 4057024
        "stop_time" => float 1409683812.8471
        "stop_memory" => integer 4057592
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8475
        "start_memory" => integer 4069808
        "stop_time" => float 1409683812.8475
        "stop_memory" => integer 4070384
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8479
        "start_memory" => integer 4118664
        "stop_time" => float 1409683812.8479
        "stop_memory" => integer 4119224
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8483
        "start_memory" => integer 4157672
        "stop_time" => float 1409683812.8483
        "stop_memory" => integer 4158256
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8486
        "start_memory" => integer 4177656
        "stop_time" => float 1409683812.8486
        "stop_memory" => integer 4178232
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.849
        "start_memory" => integer 4209416
        "stop_time" => float 1409683812.8491
        "stop_memory" => integer 4209992
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8494
        "start_memory" => integer 4228704
        "stop_time" => float 1409683812.8495
        "stop_memory" => integer 4229248
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8495
        "start_memory" => integer 4233920
        "stop_time" => float 1409683812.8496
        "stop_memory" => integer 4234496
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8498
        "start_memory" => integer 4265336
        "stop_time" => float 1409683812.8498
        "stop_memory" => integer 4265872
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8499
        "start_memory" => integer 4270520
        "stop_time" => float 1409683812.85
        "stop_memory" => integer 4271088
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8525
        "start_memory" => integer 4412656
        "stop_time" => float 1409683812.8525
        "stop_memory" => integer 4413232
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8599
        "start_memory" => integer 4466040
        "stop_time" => float 1409683812.8599
        "stop_memory" => integer 4466592
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8601
        "start_memory" => integer 4471440
        "stop_time" => float 1409683812.8601
        "stop_memory" => integer 4472016
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8648
        "start_memory" => integer 4497528
        "stop_time" => float 1409683812.8648
        "stop_memory" => integer 4498112
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8649
        "start_memory" => integer 4503048
        "stop_time" => float 1409683812.8649
        "stop_memory" => integer 4503624
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.869
        "start_memory" => integer 4529248
        "stop_time" => float 1409683812.869
        "stop_memory" => integer 4529808
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8692
        "start_memory" => integer 4534664
        "stop_time" => float 1409683812.8692
        "stop_memory" => integer 4535744
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8697
        "start_memory" => integer 4624512
        "stop_time" => float 1409683812.8697
        "stop_memory" => integer 4625112
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8745
        "start_memory" => integer 4632032
        "stop_time" => float 1409683812.8745
        "stop_memory" => integer 4632584
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8746
        "start_memory" => integer 4637464
        "stop_time" => float 1409683812.8747
        "stop_memory" => integer 4638048
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8884
        "start_memory" => integer 4694952
        "stop_time" => float 1409683812.8885
        "stop_memory" => integer 4695512
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8887
        "start_memory" => integer 4700432
        "stop_time" => float 1409683812.8887
        "stop_memory" => integer 4701016
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8889
        "start_memory" => integer 4724856
        "stop_time" => float 1409683812.889
        "stop_memory" => integer 4725432
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.89
        "start_memory" => integer 4734544
        "stop_time" => float 1409683812.8901
        "stop_memory" => integer 4735104
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8902
        "start_memory" => integer 4739968
        "stop_time" => float 1409683812.8902
        "stop_memory" => integer 4740552
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8918
        "start_memory" => integer 4820032
        "stop_time" => float 1409683812.8918
        "stop_memory" => integer 4820592
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.892
        "start_memory" => integer 4825472
        "stop_time" => float 1409683812.892
        "stop_memory" => integer 4826056
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.897
        "start_memory" => integer 4851752
        "stop_time" => float 1409683812.897
        "stop_memory" => integer 4852312
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8971
        "start_memory" => integer 4857176
        "stop_time" => float 1409683812.8972
        "stop_memory" => integer 4857760
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.898
        "start_memory" => integer 4879184
        "stop_time" => float 1409683812.898
        "stop_memory" => integer 4879712
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8981
        "start_memory" => integer 4884360
        "stop_time" => float 1409683812.8982
        "stop_memory" => integer 4884936
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8997
        "start_memory" => integer 4895792
        "stop_time" => float 1409683812.8998
        "stop_memory" => integer 4896384
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.8998
        "start_memory" => integer 4901272
        "stop_time" => float 1409683812.8999
        "stop_memory" => integer 4901848
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9032
        "start_memory" => integer 4946856
        "stop_time" => float 1409683812.9033
        "stop_memory" => integer 4947432
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9039
        "start_memory" => integer 4958568
        "stop_time" => float 1409683812.904
        "stop_memory" => integer 4959112
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9041
        "start_memory" => integer 4965008
        "stop_time" => float 1409683812.9041
        "stop_memory" => integer 4965584
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9071
        "start_memory" => integer 4987040
        "stop_time" => float 1409683812.9071
        "stop_memory" => integer 4987616
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9088
        "start_memory" => integer 4993168
        "stop_time" => float 1409683812.9088
        "stop_memory" => integer 4993736
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9089
        "start_memory" => integer 4998592
        "stop_time" => float 1409683812.9089
        "stop_memory" => integer 4999176
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9112
        "start_memory" => integer 5132904
        "stop_time" => float 1409683812.9112
        "stop_memory" => integer 5133480
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9113
        "start_memory" => integer 5138432
        "stop_time" => float 1409683812.9114
        "stop_memory" => integer 5139024
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9118
        "start_memory" => integer 5153872
        "stop_time" => float 1409683812.9118
        "stop_memory" => integer 5154440
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9119
        "start_memory" => integer 5159400
        "stop_time" => float 1409683812.912
        "stop_memory" => integer 5159992
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9133
        "start_memory" => integer 5165928
        "stop_time" => float 1409683812.9133
        "stop_memory" => integer 5166480
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9134
        "start_memory" => integer 5171352
        "stop_time" => float 1409683812.9134
        "stop_memory" => integer 5171936
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9146
        "start_memory" => integer 5316528
        "stop_time" => float 1409683812.9147
        "stop_memory" => integer 5317104
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9148
        "start_memory" => integer 5322064
        "stop_time" => float 1409683812.9148
        "stop_memory" => integer 5322656
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.915
        "start_memory" => integer 5343336
        "stop_time" => float 1409683812.915
        "stop_memory" => integer 5343904
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9151
        "start_memory" => integer 5348792
        "stop_time" => float 1409683812.9151
        "stop_memory" => integer 5349368
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9159
        "start_memory" => integer 5411688
        "stop_time" => float 1409683812.916
        "stop_memory" => integer 5412248
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9161
        "start_memory" => integer 5417120
        "stop_time" => float 1409683812.9161
        "stop_memory" => integer 5417704
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9168
        "start_memory" => integer 5483208
        "stop_time" => float 1409683812.9168
        "stop_memory" => integer 5483768
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9169
        "start_memory" => integer 5488632
        "stop_time" => float 1409683812.9169
        "stop_memory" => integer 5489216
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9178
        "start_memory" => integer 5531872
        "stop_time" => float 1409683812.9178
        "stop_memory" => integer 5532448
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9179
        "start_memory" => integer 5537416
        "stop_time" => float 1409683812.9179
        "stop_memory" => integer 5538008
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9188
        "start_memory" => integer 5596848
        "stop_time" => float 1409683812.9189
        "stop_memory" => integer 5597432
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.919
        "start_memory" => integer 5602496
        "stop_time" => float 1409683812.9191
        "stop_memory" => integer 5603096
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9192
        "start_memory" => integer 5622768
        "stop_time" => float 1409683812.9193
        "stop_memory" => integer 5623344
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9193
        "start_memory" => integer 5628408
        "stop_time" => float 1409683812.9194
        "stop_memory" => integer 5629008
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9206
        "start_memory" => integer 5693480
        "stop_time" => float 1409683812.9206
        "stop_memory" => integer 5694056
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9207
        "start_memory" => integer 5699120
        "stop_time" => float 1409683812.9208
        "stop_memory" => integer 5699720
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.922
        "start_memory" => integer 5748048
        "stop_time" => float 1409683812.9221
        "stop_memory" => integer 5748624
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9221
        "start_memory" => integer 5753680
        "stop_time" => float 1409683812.9222
        "stop_memory" => integer 5754280
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9231
        "start_memory" => integer 5795584
        "stop_time" => float 1409683812.9232
        "stop_memory" => integer 5796160
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9233
        "start_memory" => integer 5801224
        "stop_time" => float 1409683812.9234
        "stop_memory" => integer 5801824
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9251
        "start_memory" => integer 5914752
        "stop_time" => float 1409683812.9252
        "stop_memory" => integer 5915328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9253
        "start_memory" => integer 5920392
        "stop_time" => float 1409683812.9254
        "stop_memory" => integer 5920992
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9285
        "start_memory" => integer 5969648
        "stop_time" => float 1409683812.9286
        "stop_memory" => integer 5970208
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9288
        "start_memory" => integer 5975176
        "stop_time" => float 1409683812.9288
        "stop_memory" => integer 5975768
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9302
        "start_memory" => integer 5998888
        "stop_time" => float 1409683812.9303
        "stop_memory" => integer 5999408
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9304
        "start_memory" => integer 6004048
        "stop_time" => float 1409683812.9305
        "stop_memory" => integer 6004616
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9317
        "start_memory" => integer 6122264
        "stop_time" => float 1409683812.9318
        "stop_memory" => integer 6122808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9327
        "start_memory" => integer 6123864
        "stop_time" => float 1409683812.9327
        "stop_memory" => integer 6124432
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9328
        "start_memory" => integer 6129104
        "stop_time" => float 1409683812.9328
        "stop_memory" => integer 6129688
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9375
        "start_memory" => integer 6150008
        "stop_time" => float 1409683812.9376
        "stop_memory" => integer 6150544
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9377
        "start_memory" => integer 6155192
        "stop_time" => float 1409683812.9378
        "stop_memory" => integer 6155760
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9402
        "start_memory" => integer 6193264
        "stop_time" => float 1409683812.9402
        "stop_memory" => integer 6193808
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9403
        "start_memory" => integer 6198448
        "stop_time" => float 1409683812.9403
        "stop_memory" => integer 6199016
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.941
        "start_memory" => integer 6241488
        "stop_time" => float 1409683812.9411
        "stop_memory" => integer 6242032
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9411
        "start_memory" => integer 6246680
        "stop_time" => float 1409683812.9412
        "stop_memory" => integer 6247248
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9418
        "start_memory" => integer 6291464
        "stop_time" => float 1409683812.9418
        "stop_memory" => integer 6293032
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9419
        "start_memory" => integer 6297672
        "stop_time" => float 1409683812.9419
        "stop_memory" => integer 6298240
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.943
        "start_memory" => integer 6373744
        "stop_time" => float 1409683812.943
        "stop_memory" => integer 6374288
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9431
        "start_memory" => integer 6378952
        "stop_time" => float 1409683812.9431
        "stop_memory" => integer 6379520
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.945
        "start_memory" => integer 6401712
        "stop_time" => float 1409683812.9451
        "stop_memory" => integer 6402256
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9451
        "start_memory" => integer 6406896
        "stop_time" => float 1409683812.9452
        "stop_memory" => integer 6407464
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9464
        "start_memory" => integer 6436944
        "stop_time" => float 1409683812.9465
        "stop_memory" => integer 6437504
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9466
        "start_memory" => integer 6442352
        "stop_time" => float 1409683812.9466
        "stop_memory" => integer 6442928
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9472
        "start_memory" => integer 6463240
        "stop_time" => float 1409683812.9472
        "stop_memory" => integer 6463808
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9473
        "start_memory" => integer 6468744
        "stop_time" => float 1409683812.9474
        "stop_memory" => integer 6469328
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.948
        "start_memory" => integer 6484352
        "stop_time" => float 1409683812.948
        "stop_memory" => integer 6484912
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9481
        "start_memory" => integer 6489848
        "stop_time" => float 1409683812.9482
        "stop_memory" => integer 6490432
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9488
        "start_memory" => integer 6505480
        "stop_time" => float 1409683812.9488
        "stop_memory" => integer 6506040
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9489
        "start_memory" => integer 6510976
        "stop_time" => float 1409683812.949
        "stop_memory" => integer 6511560
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9495
        "start_memory" => integer 6526608
        "stop_time" => float 1409683812.9496
        "stop_memory" => integer 6527168
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9496
        "start_memory" => integer 6532104
        "stop_time" => float 1409683812.9497
        "stop_memory" => integer 6532688
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9503
        "start_memory" => integer 6547712
        "stop_time" => float 1409683812.9503
        "stop_memory" => integer 6548272
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9504
        "start_memory" => integer 6553208
        "stop_time" => float 1409683812.9505
        "stop_memory" => integer 6553792
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9511
        "start_memory" => integer 6568816
        "stop_time" => float 1409683812.9511
        "stop_memory" => integer 6569376
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9512
        "start_memory" => integer 6574312
        "stop_time" => float 1409683812.9512
        "stop_memory" => integer 6574896
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9518
        "start_memory" => integer 6589952
        "stop_time" => float 1409683812.9518
        "stop_memory" => integer 6590512
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9519
        "start_memory" => integer 6595448
        "stop_time" => float 1409683812.952
        "stop_memory" => integer 6596032
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9526
        "start_memory" => integer 6611056
        "stop_time" => float 1409683812.9526
        "stop_memory" => integer 6611616
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9527
        "start_memory" => integer 6616552
        "stop_time" => float 1409683812.9527
        "stop_memory" => integer 6617136
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9533
        "start_memory" => integer 6632272
        "stop_time" => float 1409683812.9533
        "stop_memory" => integer 6632832
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9534
        "start_memory" => integer 6637768
        "stop_time" => float 1409683812.9534
        "stop_memory" => integer 6638352
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.954
        "start_memory" => integer 6653384
        "stop_time" => float 1409683812.954
        "stop_memory" => integer 6653944
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9541
        "start_memory" => integer 6658880
        "stop_time" => float 1409683812.9541
        "stop_memory" => integer 6659464
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9548
        "start_memory" => integer 6674504
        "stop_time" => float 1409683812.9549
        "stop_memory" => integer 6675064
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9549
        "start_memory" => integer 6680000
        "stop_time" => float 1409683812.955
        "stop_memory" => integer 6680584
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9555
        "start_memory" => integer 6695592
        "stop_time" => float 1409683812.9556
        "stop_memory" => integer 6696152
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9556
        "start_memory" => integer 6701088
        "stop_time" => float 1409683812.9557
        "stop_memory" => integer 6701672
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9562
        "start_memory" => integer 6716696
        "stop_time" => float 1409683812.9563
        "stop_memory" => integer 6717256
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9563
        "start_memory" => integer 6722192
        "stop_time" => float 1409683812.9564
        "stop_memory" => integer 6722776
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9569
        "start_memory" => integer 6737824
        "stop_time" => float 1409683812.957
        "stop_memory" => integer 6738384
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.957
        "start_memory" => integer 6743320
        "stop_time" => float 1409683812.9571
        "stop_memory" => integer 6743904
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9576
        "start_memory" => integer 6758960
        "stop_time" => float 1409683812.9576
        "stop_memory" => integer 6759520
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9577
        "start_memory" => integer 6764456
        "stop_time" => float 1409683812.9578
        "stop_memory" => integer 6765040
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9583
        "start_memory" => integer 6780088
        "stop_time" => float 1409683812.9583
        "stop_memory" => integer 6780648
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9584
        "start_memory" => integer 6785584
        "stop_time" => float 1409683812.9584
        "stop_memory" => integer 6786168
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.959
        "start_memory" => integer 6801352
        "stop_time" => float 1409683812.959
        "stop_memory" => integer 6801912
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9591
        "start_memory" => integer 6806848
        "stop_time" => float 1409683812.9591
        "stop_memory" => integer 6807432
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9597
        "start_memory" => integer 6822504
        "stop_time" => float 1409683812.9597
        "stop_memory" => integer 6823064
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9598
        "start_memory" => integer 6828000
        "stop_time" => float 1409683812.9598
        "stop_memory" => integer 6828584
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9604
        "start_memory" => integer 6843640
        "stop_time" => float 1409683812.9604
        "stop_memory" => integer 6844200
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9605
        "start_memory" => integer 6849136
        "stop_time" => float 1409683812.9606
        "stop_memory" => integer 6849720
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9611
        "start_memory" => integer 6864768
        "stop_time" => float 1409683812.9611
        "stop_memory" => integer 6865328
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9612
        "start_memory" => integer 6870264
        "stop_time" => float 1409683812.9612
        "stop_memory" => integer 6870848
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9619
        "start_memory" => integer 6885872
        "stop_time" => float 1409683812.9619
        "stop_memory" => integer 6886432
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.962
        "start_memory" => integer 6891368
        "stop_time" => float 1409683812.9621
        "stop_memory" => integer 6891952
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9626
        "start_memory" => integer 6906976
        "stop_time" => float 1409683812.9627
        "stop_memory" => integer 6907536
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9628
        "start_memory" => integer 6912472
        "stop_time" => float 1409683812.9628
        "stop_memory" => integer 6913056
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9634
        "start_memory" => integer 6928112
        "stop_time" => float 1409683812.9634
        "stop_memory" => integer 6928672
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9635
        "start_memory" => integer 6933608
        "stop_time" => float 1409683812.9635
        "stop_memory" => integer 6934192
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9641
        "start_memory" => integer 6949232
        "stop_time" => float 1409683812.9642
        "stop_memory" => integer 6949792
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9643
        "start_memory" => integer 6954728
        "stop_time" => float 1409683812.9644
        "stop_memory" => integer 6955312
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9657
        "start_memory" => integer 6970576
        "stop_time" => float 1409683812.9657
        "stop_memory" => integer 6971136
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9658
        "start_memory" => integer 6976048
        "stop_time" => float 1409683812.9658
        "stop_memory" => integer 6976616
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9681
        "start_memory" => integer 7014640
        "stop_time" => float 1409683812.9682
        "stop_memory" => integer 7015192
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9682
        "start_memory" => integer 7019864
        "stop_time" => float 1409683812.9683
        "stop_memory" => integer 7020440
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9695
        "start_memory" => integer 7151504
        "stop_time" => float 1409683812.9695
        "stop_memory" => integer 7152056
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9696
        "start_memory" => integer 7156736
        "stop_time" => float 1409683812.9696
        "stop_memory" => integer 7157312
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.971
        "start_memory" => integer 7326480
        "stop_time" => float 1409683812.971
        "stop_memory" => integer 7327032
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9711
        "start_memory" => integer 7331720
        "stop_time" => float 1409683812.9712
        "stop_memory" => integer 7332280
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9733
        "start_memory" => integer 7387944
        "stop_time" => float 1409683812.9733
        "stop_memory" => integer 7388520
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9734
        "start_memory" => integer 7393408
        "stop_time" => float 1409683812.9734
        "stop_memory" => integer 7393976
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.974
        "start_memory" => integer 7434024
        "stop_time" => float 1409683812.974
        "stop_memory" => integer 7434600
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9741
        "start_memory" => integer 7439552
        "stop_time" => float 1409683812.9741
        "stop_memory" => integer 7440144
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9754
        "start_memory" => integer 7466104
        "stop_time" => float 1409683812.9754
        "stop_memory" => integer 7466672
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9755
        "start_memory" => integer 7471544
        "stop_time" => float 1409683812.9755
        "stop_memory" => integer 7472120
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9771
        "start_memory" => integer 7498184
        "stop_time" => float 1409683812.9771
        "stop_memory" => integer 7498760
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.98
        "start_memory" => integer 7509664
        "stop_time" => float 1409683812.98
        "stop_memory" => integer 7510224
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9803
        "start_memory" => integer 7520096
        "stop_time" => float 1409683812.9803
        "stop_memory" => integer 7520664
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9815
        "start_memory" => integer 7531312
        "stop_time" => float 1409683812.9815
        "stop_memory" => integer 7531864
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9816
        "start_memory" => integer 7536576
        "stop_time" => float 1409683812.9816
        "stop_memory" => integer 7537176
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9821
        "start_memory" => integer 7542640
        "stop_time" => float 1409683812.9821
        "stop_memory" => integer 7543192
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9822
        "start_memory" => integer 7547920
        "stop_time" => float 1409683812.9822
        "stop_memory" => integer 7548496
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9827
        "start_memory" => integer 7553944
        "stop_time" => float 1409683812.9827
        "stop_memory" => integer 7554496
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9828
        "start_memory" => integer 7559248
        "stop_time" => float 1409683812.9829
        "stop_memory" => integer 7559824
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9837
        "start_memory" => integer 7571832
        "stop_time" => float 1409683812.9837
        "stop_memory" => integer 7572368
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9838
        "start_memory" => integer 7577016
        "stop_time" => float 1409683812.9838
        "stop_memory" => integer 7577584
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9843
        "start_memory" => integer 7580648
        "stop_time" => float 1409683812.9843
        "stop_memory" => integer 7581224
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9844
        "start_memory" => integer 7590512
        "stop_time" => float 1409683812.9845
        "stop_memory" => integer 7591048
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9846
        "start_memory" => integer 7597768
        "stop_time" => float 1409683812.9846
        "stop_memory" => integer 7598336
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9865
        "start_memory" => integer 7975760
        "stop_time" => float 1409683812.9866
        "stop_memory" => integer 7976336
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9872
        "start_memory" => integer 8050784
        "stop_time" => float 1409683812.9872
        "stop_memory" => integer 8051368
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9878
        "start_memory" => integer 8096600
        "stop_time" => float 1409683812.9878
        "stop_memory" => integer 8097160
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9879
        "start_memory" => integer 8102024
        "stop_time" => float 1409683812.9879
        "stop_memory" => integer 8102608
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9885
        "start_memory" => integer 8111568
        "stop_time" => float 1409683812.9885
        "stop_memory" => integer 8112112
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9889
        "start_memory" => integer 8143576
        "stop_time" => float 1409683812.989
        "stop_memory" => integer 8144136
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9894
        "start_memory" => integer 8178568
        "stop_time" => float 1409683812.9894
        "stop_memory" => integer 8179144
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9899
        "start_memory" => integer 8211256
        "stop_time" => float 1409683812.9899
        "stop_memory" => integer 8211792
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.99
        "start_memory" => integer 8216448
        "stop_time" => float 1409683812.99
        "stop_memory" => integer 8217016
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9919
        "start_memory" => integer 8258824
        "stop_time" => float 1409683812.9919
        "stop_memory" => integer 8259416
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.992
        "start_memory" => integer 8264600
        "stop_time" => float 1409683812.9921
        "stop_memory" => integer 8265192
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9943
        "start_memory" => integer 8309296
        "stop_time" => float 1409683812.9944
        "stop_memory" => integer 8309848
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9945
        "start_memory" => integer 8314784
        "stop_time" => float 1409683812.9945
        "stop_memory" => integer 8315368
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.998
        "start_memory" => integer 8417056
        "stop_time" => float 1409683812.998
        "stop_memory" => integer 8417584
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9981
        "start_memory" => integer 8422240
        "stop_time" => float 1409683812.9981
        "stop_memory" => integer 8422808
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9986
        "start_memory" => integer 8437736
        "stop_time" => float 1409683812.9986
        "stop_memory" => integer 8438288
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9987
        "start_memory" => integer 8442936
        "stop_time" => float 1409683812.9987
        "stop_memory" => integer 8443504
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9995
        "start_memory" => integer 8509936
        "stop_time" => float 1409683812.9995
        "stop_memory" => integer 8510496
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683812.9996
        "start_memory" => integer 8515352
        "stop_time" => float 1409683812.9996
        "stop_memory" => integer 8515928
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0001
        "start_memory" => integer 8539368
        "stop_time" => float 1409683813.0001
        "stop_memory" => integer 8539976
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0002
        "start_memory" => integer 8544896
        "stop_time" => float 1409683813.0002
        "stop_memory" => integer 8545488
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0012
        "start_memory" => integer 8616480
        "stop_time" => float 1409683813.0013
        "stop_memory" => integer 8617016
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0013
        "start_memory" => integer 8621888
        "stop_time" => float 1409683813.0014
        "stop_memory" => integer 8622440
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0019
        "start_memory" => integer 8650144
        "stop_time" => float 1409683813.0019
        "stop_memory" => integer 8650680
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.002
        "start_memory" => integer 8655336
        "stop_time" => float 1409683813.002
        "stop_memory" => integer 8655904
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.003
        "start_memory" => integer 8777128
        "stop_time" => float 1409683813.003
        "stop_memory" => integer 8777672
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0031
        "start_memory" => integer 8782344
        "stop_time" => float 1409683813.0031
        "stop_memory" => integer 8782912
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0072
        "start_memory" => integer 8814296
        "stop_time" => float 1409683813.0072
        "stop_memory" => integer 8814840
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0073
        "start_memory" => integer 8819488
        "stop_time" => float 1409683813.0074
        "stop_memory" => integer 8820056
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0081
        "start_memory" => integer 8920384
        "stop_time" => float 1409683813.0082
        "stop_memory" => integer 8920944
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0083
        "start_memory" => integer 8925656
        "stop_time" => float 1409683813.0083
        "stop_memory" => integer 8926232
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0093
        "start_memory" => integer 9034000
        "stop_time" => float 1409683813.0094
        "stop_memory" => integer 9034568
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0095
        "start_memory" => integer 9039488
        "stop_time" => float 1409683813.0095
        "stop_memory" => integer 9040072
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0105
        "start_memory" => integer 9061264
        "stop_time" => float 1409683813.0105
        "stop_memory" => integer 9061840
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0108
        "start_memory" => integer 9026304
        "stop_time" => float 1409683813.0108
        "stop_memory" => integer 9028240
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0114
        "start_memory" => integer 9098960
        "stop_time" => float 1409683813.0114
        "stop_memory" => integer 9100688
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409683813.0114
        "start_memory" => integer 9100448
        "stop_time" => float 1409683813.0114
        "stop_memory" => integer 9102176
    )
)

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