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 1409281991.3705
        "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 1409281991.3705
        "start_memory" => integer 1987656
        "stop_time" => float 1409281991.3706
        "stop_memory" => integer 1988248
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3707
        "start_memory" => integer 1993200
        "stop_time" => float 1409281991.3707
        "stop_memory" => integer 1993792
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3717
        "start_memory" => integer 2119312
        "stop_time" => float 1409281991.3719
        "stop_memory" => integer 2119864
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3722
        "start_memory" => integer 2124784
        "stop_time" => float 1409281991.3722
        "stop_memory" => integer 2125368
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3723
        "start_memory" => integer 2136456
        "stop_time" => float 1409281991.3724
        "stop_memory" => integer 2137000
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3724
        "start_memory" => integer 2141712
        "stop_time" => float 1409281991.3725
        "stop_memory" => integer 2142288
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3728
        "start_memory" => integer 2151568
        "stop_time" => float 1409281991.3729
        "stop_memory" => integer 2152128
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3732
        "start_memory" => integer 2156800
        "stop_time" => float 1409281991.3733
        "stop_memory" => integer 2157408
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3745
        "start_memory" => integer 2318336
        "stop_time" => float 1409281991.3746
        "stop_memory" => integer 2318896
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3747
        "start_memory" => integer 2323744
        "stop_time" => float 1409281991.3749
        "stop_memory" => integer 2324320
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.375
        "start_memory" => integer 2337776
        "stop_time" => float 1409281991.3751
        "stop_memory" => integer 2338320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3753
        "start_memory" => integer 2342968
        "stop_time" => float 1409281991.3754
        "stop_memory" => integer 2343536
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3757
        "start_memory" => integer 2398360
        "stop_time" => float 1409281991.3757
        "stop_memory" => integer 2398952
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3758
        "start_memory" => integer 2400112
        "stop_time" => float 1409281991.3758
        "stop_memory" => integer 2400688
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3759
        "start_memory" => integer 2405560
        "stop_time" => float 1409281991.3759
        "stop_memory" => integer 2406136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3763
        "start_memory" => integer 2471600
        "stop_time" => float 1409281991.3763
        "stop_memory" => integer 2472216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3763
        "start_memory" => integer 2473000
        "stop_time" => float 1409281991.3764
        "stop_memory" => integer 2473576
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3792
        "start_memory" => integer 3142272
        "stop_time" => float 1409281991.3793
        "stop_memory" => integer 3142800
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3794
        "start_memory" => integer 3148472
        "stop_time" => float 1409281991.3794
        "stop_memory" => integer 3149040
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3798
        "start_memory" => integer 3181792
        "stop_time" => float 1409281991.3798
        "stop_memory" => integer 3182336
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3799
        "start_memory" => integer 3187000
        "stop_time" => float 1409281991.38
        "stop_memory" => integer 3187568
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3813
        "start_memory" => integer 3350384
        "stop_time" => float 1409281991.3814
        "stop_memory" => integer 3350960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3815
        "start_memory" => integer 3355840
        "stop_time" => float 1409281991.3815
        "stop_memory" => integer 3356424
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3816
        "start_memory" => integer 3359112
        "stop_time" => float 1409281991.3816
        "stop_memory" => integer 3359672
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3817
        "start_memory" => integer 3364544
        "stop_time" => float 1409281991.3818
        "stop_memory" => integer 3365128
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3825
        "start_memory" => integer 3414784
        "stop_time" => float 1409281991.3826
        "stop_memory" => integer 3415328
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3826
        "start_memory" => integer 3420000
        "stop_time" => float 1409281991.3827
        "stop_memory" => integer 3420576
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3835
        "start_memory" => integer 3518616
        "stop_time" => float 1409281991.3835
        "stop_memory" => integer 3519152
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3836
        "start_memory" => integer 3523792
        "stop_time" => float 1409281991.3837
        "stop_memory" => integer 3524360
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.3864
        "start_memory" => integer 3610952
        "stop_time" => float 1409281991.3864
        "stop_memory" => integer 3611544
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4699
        "start_memory" => integer 3653704
        "stop_time" => float 1409281991.47
        "stop_memory" => integer 3654272
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4703
        "start_memory" => integer 3658936
        "stop_time" => float 1409281991.4703
        "stop_memory" => integer 3659768
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4711
        "start_memory" => integer 3700368
        "stop_time" => float 1409281991.4711
        "stop_memory" => integer 3700920
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4713
        "start_memory" => integer 3705752
        "stop_time" => float 1409281991.4713
        "stop_memory" => integer 3706328
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.472
        "start_memory" => integer 3730032
        "stop_time" => float 1409281991.4721
        "stop_memory" => integer 3730584
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4722
        "start_memory" => integer 3735272
        "stop_time" => float 1409281991.4722
        "stop_memory" => integer 3735848
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.473
        "start_memory" => integer 3803016
        "stop_time" => float 1409281991.4731
        "stop_memory" => integer 3803600
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4733
        "start_memory" => integer 3821592
        "stop_time" => float 1409281991.4734
        "stop_memory" => integer 3822152
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4735
        "start_memory" => integer 3827016
        "stop_time" => float 1409281991.4735
        "stop_memory" => integer 3827600
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4741
        "start_memory" => integer 3892736
        "stop_time" => float 1409281991.4741
        "stop_memory" => integer 3893312
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4744
        "start_memory" => integer 3912736
        "stop_time" => float 1409281991.4744
        "stop_memory" => integer 3913312
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4749
        "start_memory" => integer 3961360
        "stop_time" => float 1409281991.4749
        "stop_memory" => integer 3961936
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4751
        "start_memory" => integer 3972592
        "stop_time" => float 1409281991.4752
        "stop_memory" => integer 3973168
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4755
        "start_memory" => integer 3991184
        "stop_time" => float 1409281991.4755
        "stop_memory" => integer 3991760
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4759
        "start_memory" => integer 4001456
        "stop_time" => float 1409281991.4759
        "stop_memory" => integer 4002032
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4763
        "start_memory" => integer 4022136
        "stop_time" => float 1409281991.4763
        "stop_memory" => integer 4022712
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4767
        "start_memory" => integer 4043192
        "stop_time" => float 1409281991.4768
        "stop_memory" => integer 4043784
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.477
        "start_memory" => integer 4057024
        "stop_time" => float 1409281991.477
        "stop_memory" => integer 4057592
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4773
        "start_memory" => integer 4069808
        "stop_time" => float 1409281991.4773
        "stop_memory" => integer 4070384
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4777
        "start_memory" => integer 4118664
        "stop_time" => float 1409281991.4777
        "stop_memory" => integer 4119224
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4782
        "start_memory" => integer 4157672
        "stop_time" => float 1409281991.4782
        "stop_memory" => integer 4158256
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4785
        "start_memory" => integer 4177656
        "stop_time" => float 1409281991.4785
        "stop_memory" => integer 4178232
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4788
        "start_memory" => integer 4209416
        "stop_time" => float 1409281991.4788
        "stop_memory" => integer 4209992
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4791
        "start_memory" => integer 4228704
        "stop_time" => float 1409281991.4791
        "stop_memory" => integer 4229248
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4792
        "start_memory" => integer 4233920
        "stop_time" => float 1409281991.4793
        "stop_memory" => integer 4234496
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4795
        "start_memory" => integer 4265336
        "stop_time" => float 1409281991.4795
        "stop_memory" => integer 4265872
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4796
        "start_memory" => integer 4270520
        "stop_time" => float 1409281991.4796
        "stop_memory" => integer 4271088
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4822
        "start_memory" => integer 4412656
        "stop_time" => float 1409281991.4823
        "stop_memory" => integer 4413232
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4902
        "start_memory" => integer 4466040
        "stop_time" => float 1409281991.4903
        "stop_memory" => integer 4466592
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4904
        "start_memory" => integer 4471424
        "stop_time" => float 1409281991.4904
        "stop_memory" => integer 4472000
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4952
        "start_memory" => integer 4497504
        "stop_time" => float 1409281991.4952
        "stop_memory" => integer 4498088
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.4954
        "start_memory" => integer 4503024
        "stop_time" => float 1409281991.4954
        "stop_memory" => integer 4503600
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.502
        "start_memory" => integer 4529256
        "stop_time" => float 1409281991.5021
        "stop_memory" => integer 4529816
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5022
        "start_memory" => integer 4534672
        "stop_time" => float 1409281991.5023
        "stop_memory" => integer 4535752
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5029
        "start_memory" => integer 4624512
        "stop_time" => float 1409281991.5029
        "stop_memory" => integer 4625112
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5094
        "start_memory" => integer 4632032
        "stop_time" => float 1409281991.5095
        "stop_memory" => integer 4632584
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5097
        "start_memory" => integer 4637464
        "stop_time" => float 1409281991.5098
        "stop_memory" => integer 4638048
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.529
        "start_memory" => integer 4694944
        "stop_time" => float 1409281991.5291
        "stop_memory" => integer 4695504
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5293
        "start_memory" => integer 4700424
        "stop_time" => float 1409281991.5293
        "stop_memory" => integer 4701008
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5295
        "start_memory" => integer 4724856
        "stop_time" => float 1409281991.5295
        "stop_memory" => integer 4725432
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5305
        "start_memory" => integer 4734504
        "stop_time" => float 1409281991.5306
        "stop_memory" => integer 4735064
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5307
        "start_memory" => integer 4739928
        "stop_time" => float 1409281991.5307
        "stop_memory" => integer 4740512
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5323
        "start_memory" => integer 4819984
        "stop_time" => float 1409281991.5324
        "stop_memory" => integer 4820544
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5326
        "start_memory" => integer 4825424
        "stop_time" => float 1409281991.5327
        "stop_memory" => integer 4826008
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5396
        "start_memory" => integer 4851728
        "stop_time" => float 1409281991.5397
        "stop_memory" => integer 4852288
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5398
        "start_memory" => integer 4857152
        "stop_time" => float 1409281991.5398
        "stop_memory" => integer 4857736
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5409
        "start_memory" => integer 4879144
        "stop_time" => float 1409281991.541
        "stop_memory" => integer 4879672
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5411
        "start_memory" => integer 4884320
        "stop_time" => float 1409281991.5412
        "stop_memory" => integer 4884888
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5429
        "start_memory" => integer 4895744
        "stop_time" => float 1409281991.543
        "stop_memory" => integer 4896336
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5431
        "start_memory" => integer 4901224
        "stop_time" => float 1409281991.5431
        "stop_memory" => integer 4901800
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5472
        "start_memory" => integer 4946784
        "stop_time" => float 1409281991.5473
        "stop_memory" => integer 4947360
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.548
        "start_memory" => integer 4958496
        "stop_time" => float 1409281991.548
        "stop_memory" => integer 4959040
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5482
        "start_memory" => integer 4964936
        "stop_time" => float 1409281991.5482
        "stop_memory" => integer 4965512
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5552
        "start_memory" => integer 4986968
        "stop_time" => float 1409281991.5552
        "stop_memory" => integer 4987544
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5582
        "start_memory" => integer 4993096
        "stop_time" => float 1409281991.5583
        "stop_memory" => integer 4993664
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5584
        "start_memory" => integer 4998520
        "stop_time" => float 1409281991.5584
        "stop_memory" => integer 4999104
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5614
        "start_memory" => integer 5132832
        "stop_time" => float 1409281991.5615
        "stop_memory" => integer 5133408
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5618
        "start_memory" => integer 5138360
        "stop_time" => float 1409281991.5619
        "stop_memory" => integer 5138952
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5626
        "start_memory" => integer 5153800
        "stop_time" => float 1409281991.5626
        "stop_memory" => integer 5154368
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5627
        "start_memory" => integer 5159328
        "stop_time" => float 1409281991.5627
        "stop_memory" => integer 5159920
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5648
        "start_memory" => integer 5165856
        "stop_time" => float 1409281991.5648
        "stop_memory" => integer 5166408
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5649
        "start_memory" => integer 5171288
        "stop_time" => float 1409281991.565
        "stop_memory" => integer 5171872
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5665
        "start_memory" => integer 5316448
        "stop_time" => float 1409281991.5666
        "stop_memory" => integer 5317024
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5667
        "start_memory" => integer 5321984
        "stop_time" => float 1409281991.5667
        "stop_memory" => integer 5322576
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.567
        "start_memory" => integer 5343256
        "stop_time" => float 1409281991.567
        "stop_memory" => integer 5343824
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5671
        "start_memory" => integer 5348712
        "stop_time" => float 1409281991.5672
        "stop_memory" => integer 5349288
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5688
        "start_memory" => integer 5411576
        "stop_time" => float 1409281991.5688
        "stop_memory" => integer 5412136
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.569
        "start_memory" => integer 5417008
        "stop_time" => float 1409281991.5691
        "stop_memory" => integer 5417592
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5707
        "start_memory" => integer 5483096
        "stop_time" => float 1409281991.5708
        "stop_memory" => integer 5483656
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.571
        "start_memory" => integer 5488520
        "stop_time" => float 1409281991.571
        "stop_memory" => integer 5489104
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5726
        "start_memory" => integer 5531760
        "stop_time" => float 1409281991.5726
        "stop_memory" => integer 5532336
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5728
        "start_memory" => integer 5537304
        "stop_time" => float 1409281991.5729
        "stop_memory" => integer 5537896
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5743
        "start_memory" => integer 5596736
        "stop_time" => float 1409281991.5744
        "stop_memory" => integer 5597320
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5745
        "start_memory" => integer 5602384
        "stop_time" => float 1409281991.5745
        "stop_memory" => integer 5602984
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5747
        "start_memory" => integer 5622656
        "stop_time" => float 1409281991.5747
        "stop_memory" => integer 5623232
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5748
        "start_memory" => integer 5628296
        "stop_time" => float 1409281991.5748
        "stop_memory" => integer 5628896
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.576
        "start_memory" => integer 5693384
        "stop_time" => float 1409281991.576
        "stop_memory" => integer 5693960
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5761
        "start_memory" => integer 5699024
        "stop_time" => float 1409281991.5761
        "stop_memory" => integer 5699624
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5772
        "start_memory" => integer 5747952
        "stop_time" => float 1409281991.5773
        "stop_memory" => integer 5748528
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5774
        "start_memory" => integer 5753584
        "stop_time" => float 1409281991.5775
        "stop_memory" => integer 5754184
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5787
        "start_memory" => integer 5795488
        "stop_time" => float 1409281991.5788
        "stop_memory" => integer 5796064
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5788
        "start_memory" => integer 5801128
        "stop_time" => float 1409281991.5789
        "stop_memory" => integer 5801728
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5801
        "start_memory" => integer 5914656
        "stop_time" => float 1409281991.5801
        "stop_memory" => integer 5915232
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5802
        "start_memory" => integer 5920296
        "stop_time" => float 1409281991.5803
        "stop_memory" => integer 5920896
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5829
        "start_memory" => integer 5969536
        "stop_time" => float 1409281991.583
        "stop_memory" => integer 5970096
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5831
        "start_memory" => integer 5975064
        "stop_time" => float 1409281991.5831
        "stop_memory" => integer 5975656
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5841
        "start_memory" => integer 5998776
        "stop_time" => float 1409281991.5844
        "stop_memory" => integer 5999296
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5845
        "start_memory" => integer 6003936
        "stop_time" => float 1409281991.5846
        "stop_memory" => integer 6004504
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5855
        "start_memory" => integer 6122152
        "stop_time" => float 1409281991.5855
        "stop_memory" => integer 6122696
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5862
        "start_memory" => integer 6123752
        "stop_time" => float 1409281991.5862
        "stop_memory" => integer 6124320
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5863
        "start_memory" => integer 6128992
        "stop_time" => float 1409281991.5864
        "stop_memory" => integer 6129576
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5913
        "start_memory" => integer 6149896
        "stop_time" => float 1409281991.5914
        "stop_memory" => integer 6150432
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5915
        "start_memory" => integer 6155080
        "stop_time" => float 1409281991.5916
        "stop_memory" => integer 6155648
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5942
        "start_memory" => integer 6193128
        "stop_time" => float 1409281991.5943
        "stop_memory" => integer 6193672
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5945
        "start_memory" => integer 6198312
        "stop_time" => float 1409281991.5945
        "stop_memory" => integer 6198880
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5953
        "start_memory" => integer 6241296
        "stop_time" => float 1409281991.5954
        "stop_memory" => integer 6241840
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5955
        "start_memory" => integer 6246488
        "stop_time" => float 1409281991.5956
        "stop_memory" => integer 6247056
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5963
        "start_memory" => integer 6291240
        "stop_time" => float 1409281991.5964
        "stop_memory" => integer 6292808
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5964
        "start_memory" => integer 6297448
        "stop_time" => float 1409281991.5965
        "stop_memory" => integer 6298016
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.598
        "start_memory" => integer 6373520
        "stop_time" => float 1409281991.5981
        "stop_memory" => integer 6374064
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.5982
        "start_memory" => integer 6378728
        "stop_time" => float 1409281991.5983
        "stop_memory" => integer 6379296
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6006
        "start_memory" => integer 6401488
        "stop_time" => float 1409281991.6007
        "stop_memory" => integer 6402032
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6008
        "start_memory" => integer 6406672
        "stop_time" => float 1409281991.6008
        "stop_memory" => integer 6407240
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6025
        "start_memory" => integer 6436720
        "stop_time" => float 1409281991.6026
        "stop_memory" => integer 6437280
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6027
        "start_memory" => integer 6442128
        "stop_time" => float 1409281991.6028
        "stop_memory" => integer 6442704
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6035
        "start_memory" => integer 6462992
        "stop_time" => float 1409281991.6036
        "stop_memory" => integer 6463560
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6037
        "start_memory" => integer 6468520
        "stop_time" => float 1409281991.6038
        "stop_memory" => integer 6469104
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6046
        "start_memory" => integer 6484128
        "stop_time" => float 1409281991.6047
        "stop_memory" => integer 6484688
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6048
        "start_memory" => integer 6489624
        "stop_time" => float 1409281991.6048
        "stop_memory" => integer 6490208
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6059
        "start_memory" => integer 6505256
        "stop_time" => float 1409281991.606
        "stop_memory" => integer 6505816
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6061
        "start_memory" => integer 6510752
        "stop_time" => float 1409281991.6061
        "stop_memory" => integer 6511336
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.607
        "start_memory" => integer 6526384
        "stop_time" => float 1409281991.6071
        "stop_memory" => integer 6526944
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6072
        "start_memory" => integer 6531880
        "stop_time" => float 1409281991.6073
        "stop_memory" => integer 6532464
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6083
        "start_memory" => integer 6547488
        "stop_time" => float 1409281991.6083
        "stop_memory" => integer 6548048
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6084
        "start_memory" => integer 6552984
        "stop_time" => float 1409281991.6084
        "stop_memory" => integer 6553568
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6094
        "start_memory" => integer 6568592
        "stop_time" => float 1409281991.6095
        "stop_memory" => integer 6569152
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6096
        "start_memory" => integer 6574088
        "stop_time" => float 1409281991.6097
        "stop_memory" => integer 6574672
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6107
        "start_memory" => integer 6589728
        "stop_time" => float 1409281991.6108
        "stop_memory" => integer 6590288
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6109
        "start_memory" => integer 6595224
        "stop_time" => float 1409281991.611
        "stop_memory" => integer 6595808
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.612
        "start_memory" => integer 6610832
        "stop_time" => float 1409281991.6121
        "stop_memory" => integer 6611392
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6122
        "start_memory" => integer 6616328
        "stop_time" => float 1409281991.6123
        "stop_memory" => integer 6616912
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6134
        "start_memory" => integer 6632048
        "stop_time" => float 1409281991.6135
        "stop_memory" => integer 6632608
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6136
        "start_memory" => integer 6637544
        "stop_time" => float 1409281991.6137
        "stop_memory" => integer 6638128
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6146
        "start_memory" => integer 6653160
        "stop_time" => float 1409281991.6147
        "stop_memory" => integer 6653720
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6149
        "start_memory" => integer 6658656
        "stop_time" => float 1409281991.6149
        "stop_memory" => integer 6659240
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.616
        "start_memory" => integer 6674280
        "stop_time" => float 1409281991.616
        "stop_memory" => integer 6674840
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6161
        "start_memory" => integer 6679776
        "stop_time" => float 1409281991.6163
        "stop_memory" => integer 6680360
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6173
        "start_memory" => integer 6695368
        "stop_time" => float 1409281991.6173
        "stop_memory" => integer 6695928
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6175
        "start_memory" => integer 6700864
        "stop_time" => float 1409281991.6175
        "stop_memory" => integer 6701448
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6186
        "start_memory" => integer 6716472
        "stop_time" => float 1409281991.6187
        "stop_memory" => integer 6717032
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6188
        "start_memory" => integer 6721968
        "stop_time" => float 1409281991.6189
        "stop_memory" => integer 6722552
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6199
        "start_memory" => integer 6737616
        "stop_time" => float 1409281991.62
        "stop_memory" => integer 6738176
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6201
        "start_memory" => integer 6743112
        "stop_time" => float 1409281991.6201
        "stop_memory" => integer 6743696
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.622
        "start_memory" => integer 6758752
        "stop_time" => float 1409281991.622
        "stop_memory" => integer 6759312
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6221
        "start_memory" => integer 6764248
        "stop_time" => float 1409281991.6222
        "stop_memory" => integer 6764832
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6229
        "start_memory" => integer 6779880
        "stop_time" => float 1409281991.6229
        "stop_memory" => integer 6780440
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.623
        "start_memory" => integer 6785376
        "stop_time" => float 1409281991.623
        "stop_memory" => integer 6785960
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6236
        "start_memory" => integer 6801144
        "stop_time" => float 1409281991.6236
        "stop_memory" => integer 6801704
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6237
        "start_memory" => integer 6806640
        "stop_time" => float 1409281991.6237
        "stop_memory" => integer 6807224
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6243
        "start_memory" => integer 6822296
        "stop_time" => float 1409281991.6243
        "stop_memory" => integer 6822856
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6244
        "start_memory" => integer 6827792
        "stop_time" => float 1409281991.6244
        "stop_memory" => integer 6828376
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.625
        "start_memory" => integer 6843432
        "stop_time" => float 1409281991.625
        "stop_memory" => integer 6843992
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6251
        "start_memory" => integer 6848928
        "stop_time" => float 1409281991.6251
        "stop_memory" => integer 6849512
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6257
        "start_memory" => integer 6864560
        "stop_time" => float 1409281991.6258
        "stop_memory" => integer 6865120
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6258
        "start_memory" => integer 6870056
        "stop_time" => float 1409281991.6259
        "stop_memory" => integer 6870640
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6264
        "start_memory" => integer 6885664
        "stop_time" => float 1409281991.6265
        "stop_memory" => integer 6886224
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6265
        "start_memory" => integer 6891160
        "stop_time" => float 1409281991.6266
        "stop_memory" => integer 6891744
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6272
        "start_memory" => integer 6906768
        "stop_time" => float 1409281991.6273
        "stop_memory" => integer 6907328
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6273
        "start_memory" => integer 6912264
        "stop_time" => float 1409281991.6274
        "stop_memory" => integer 6912848
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6279
        "start_memory" => integer 6927904
        "stop_time" => float 1409281991.6279
        "stop_memory" => integer 6928464
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.628
        "start_memory" => integer 6933400
        "stop_time" => float 1409281991.628
        "stop_memory" => integer 6933984
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6286
        "start_memory" => integer 6949024
        "stop_time" => float 1409281991.6286
        "stop_memory" => integer 6949584
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6287
        "start_memory" => integer 6954520
        "stop_time" => float 1409281991.6287
        "stop_memory" => integer 6955104
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6299
        "start_memory" => integer 6970368
        "stop_time" => float 1409281991.63
        "stop_memory" => integer 6970928
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6301
        "start_memory" => integer 6975840
        "stop_time" => float 1409281991.6301
        "stop_memory" => integer 6976408
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6324
        "start_memory" => integer 7014440
        "stop_time" => float 1409281991.6324
        "stop_memory" => integer 7014992
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6325
        "start_memory" => integer 7019664
        "stop_time" => float 1409281991.6325
        "stop_memory" => integer 7020240
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6343
        "start_memory" => integer 7151312
        "stop_time" => float 1409281991.6343
        "stop_memory" => integer 7151864
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6345
        "start_memory" => integer 7156544
        "stop_time" => float 1409281991.6345
        "stop_memory" => integer 7157120
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6363
        "start_memory" => integer 7326328
        "stop_time" => float 1409281991.6364
        "stop_memory" => integer 7326880
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6365
        "start_memory" => integer 7331568
        "stop_time" => float 1409281991.6365
        "stop_memory" => integer 7332128
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6385
        "start_memory" => integer 7387792
        "stop_time" => float 1409281991.6386
        "stop_memory" => integer 7388368
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6387
        "start_memory" => integer 7393280
        "stop_time" => float 1409281991.6387
        "stop_memory" => integer 7393848
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6393
        "start_memory" => integer 7433888
        "stop_time" => float 1409281991.6394
        "stop_memory" => integer 7434464
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6394
        "start_memory" => integer 7439416
        "stop_time" => float 1409281991.6395
        "stop_memory" => integer 7440008
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6407
        "start_memory" => integer 7465952
        "stop_time" => float 1409281991.6408
        "stop_memory" => integer 7466520
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6408
        "start_memory" => integer 7471392
        "stop_time" => float 1409281991.6409
        "stop_memory" => integer 7471968
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6425
        "start_memory" => integer 7498024
        "stop_time" => float 1409281991.6425
        "stop_memory" => integer 7498600
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6453
        "start_memory" => integer 7509504
        "stop_time" => float 1409281991.6454
        "stop_memory" => integer 7510064
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6456
        "start_memory" => integer 7519952
        "stop_time" => float 1409281991.6457
        "stop_memory" => integer 7520520
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6469
        "start_memory" => integer 7531120
        "stop_time" => float 1409281991.6469
        "stop_memory" => integer 7531672
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.647
        "start_memory" => integer 7536384
        "stop_time" => float 1409281991.647
        "stop_memory" => integer 7536984
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6475
        "start_memory" => integer 7542448
        "stop_time" => float 1409281991.6475
        "stop_memory" => integer 7543000
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6476
        "start_memory" => integer 7547728
        "stop_time" => float 1409281991.6476
        "stop_memory" => integer 7548304
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6481
        "start_memory" => integer 7553752
        "stop_time" => float 1409281991.6482
        "stop_memory" => integer 7554304
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6484
        "start_memory" => integer 7559056
        "stop_time" => float 1409281991.6484
        "stop_memory" => integer 7559632
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6494
        "start_memory" => integer 7571648
        "stop_time" => float 1409281991.6494
        "stop_memory" => integer 7572184
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6495
        "start_memory" => integer 7576848
        "stop_time" => float 1409281991.6495
        "stop_memory" => integer 7577400
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.65
        "start_memory" => integer 7580464
        "stop_time" => float 1409281991.65
        "stop_memory" => integer 7581040
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6501
        "start_memory" => integer 7590328
        "stop_time" => float 1409281991.6501
        "stop_memory" => integer 7590864
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6503
        "start_memory" => integer 7597560
        "stop_time" => float 1409281991.6503
        "stop_memory" => integer 7598128
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6526
        "start_memory" => integer 7975560
        "stop_time" => float 1409281991.6526
        "stop_memory" => integer 7976136
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6532
        "start_memory" => integer 8050592
        "stop_time" => float 1409281991.6532
        "stop_memory" => integer 8051176
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6537
        "start_memory" => integer 8096408
        "stop_time" => float 1409281991.6538
        "stop_memory" => integer 8096968
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6539
        "start_memory" => integer 8101832
        "stop_time" => float 1409281991.6539
        "stop_memory" => integer 8102416
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6544
        "start_memory" => integer 8111376
        "stop_time" => float 1409281991.6545
        "stop_memory" => integer 8111920
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6549
        "start_memory" => integer 8143384
        "stop_time" => float 1409281991.6549
        "stop_memory" => integer 8143944
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6553
        "start_memory" => integer 8178376
        "stop_time" => float 1409281991.6553
        "stop_memory" => integer 8178952
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6558
        "start_memory" => integer 8211064
        "stop_time" => float 1409281991.6558
        "stop_memory" => integer 8211600
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6559
        "start_memory" => integer 8216256
        "stop_time" => float 1409281991.6559
        "stop_memory" => integer 8216824
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6578
        "start_memory" => integer 8258632
        "stop_time" => float 1409281991.6579
        "stop_memory" => integer 8259224
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6579
        "start_memory" => integer 8264408
        "stop_time" => float 1409281991.6581
        "stop_memory" => integer 8265000
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6602
        "start_memory" => integer 8309112
        "stop_time" => float 1409281991.6602
        "stop_memory" => integer 8309664
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6603
        "start_memory" => integer 8314600
        "stop_time" => float 1409281991.6604
        "stop_memory" => integer 8315184
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6639
        "start_memory" => integer 8416872
        "stop_time" => float 1409281991.664
        "stop_memory" => integer 8417400
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.664
        "start_memory" => integer 8422056
        "stop_time" => float 1409281991.6641
        "stop_memory" => integer 8422624
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6646
        "start_memory" => integer 8437552
        "stop_time" => float 1409281991.6646
        "stop_memory" => integer 8438104
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6647
        "start_memory" => integer 8442752
        "stop_time" => float 1409281991.6647
        "stop_memory" => integer 8443320
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6655
        "start_memory" => integer 8509752
        "stop_time" => float 1409281991.6655
        "stop_memory" => integer 8510312
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6656
        "start_memory" => integer 8515168
        "stop_time" => float 1409281991.6657
        "stop_memory" => integer 8515744
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6662
        "start_memory" => integer 8539184
        "stop_time" => float 1409281991.6662
        "stop_memory" => integer 8539792
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6663
        "start_memory" => integer 8544712
        "stop_time" => float 1409281991.6663
        "stop_memory" => integer 8545304
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6673
        "start_memory" => integer 8616288
        "stop_time" => float 1409281991.6673
        "stop_memory" => integer 8616824
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6674
        "start_memory" => integer 8621696
        "stop_time" => float 1409281991.6674
        "stop_memory" => integer 8622248
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.668
        "start_memory" => integer 8649952
        "stop_time" => float 1409281991.6681
        "stop_memory" => integer 8650488
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6681
        "start_memory" => integer 8655144
        "stop_time" => float 1409281991.6682
        "stop_memory" => integer 8655712
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6691
        "start_memory" => integer 8776936
        "stop_time" => float 1409281991.6692
        "stop_memory" => integer 8777480
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6693
        "start_memory" => integer 8782152
        "stop_time" => float 1409281991.6693
        "stop_memory" => integer 8782720
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6736
        "start_memory" => integer 8814128
        "stop_time" => float 1409281991.6737
        "stop_memory" => integer 8814672
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6738
        "start_memory" => integer 8819320
        "stop_time" => float 1409281991.6738
        "stop_memory" => integer 8819888
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6746
        "start_memory" => integer 8920176
        "stop_time" => float 1409281991.6746
        "stop_memory" => integer 8920736
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6747
        "start_memory" => integer 8925448
        "stop_time" => float 1409281991.6748
        "stop_memory" => integer 8926024
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6757
        "start_memory" => integer 9033760
        "stop_time" => float 1409281991.6757
        "stop_memory" => integer 9034328
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6758
        "start_memory" => integer 9039248
        "stop_time" => float 1409281991.6758
        "stop_memory" => integer 9039832
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6768
        "start_memory" => integer 9061024
        "stop_time" => float 1409281991.6769
        "stop_memory" => integer 9061600
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6771
        "start_memory" => integer 9026064
        "stop_time" => float 1409281991.6772
        "stop_memory" => integer 9028000
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6781
        "start_memory" => integer 9098720
        "stop_time" => float 1409281991.6782
        "stop_memory" => integer 9100448
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1409281991.6782
        "start_memory" => integer 9100208
        "stop_time" => float 1409281991.6782
        "stop_memory" => integer 9101936
    )
)

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