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 1414046412.4679
        "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 1414046412.468
        "start_memory" => integer 1987656
        "stop_time" => float 1414046412.468
        "stop_memory" => integer 1988248
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4681
        "start_memory" => integer 1993200
        "stop_time" => float 1414046412.4681
        "stop_memory" => integer 1993792
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4687
        "start_memory" => integer 2119312
        "stop_time" => float 1414046412.4687
        "stop_memory" => integer 2119864
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4688
        "start_memory" => integer 2124784
        "stop_time" => float 1414046412.4689
        "stop_memory" => integer 2125368
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.469
        "start_memory" => integer 2136456
        "stop_time" => float 1414046412.469
        "stop_memory" => integer 2137000
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4691
        "start_memory" => integer 2141712
        "stop_time" => float 1414046412.4691
        "stop_memory" => integer 2142288
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4693
        "start_memory" => integer 2151568
        "stop_time" => float 1414046412.4693
        "stop_memory" => integer 2152128
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4694
        "start_memory" => integer 2156800
        "stop_time" => float 1414046412.4694
        "stop_memory" => integer 2157408
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4703
        "start_memory" => integer 2318336
        "stop_time" => float 1414046412.4704
        "stop_memory" => integer 2318896
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4704
        "start_memory" => integer 2323744
        "stop_time" => float 1414046412.4705
        "stop_memory" => integer 2324320
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4707
        "start_memory" => integer 2337776
        "stop_time" => float 1414046412.4708
        "stop_memory" => integer 2338320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4709
        "start_memory" => integer 2342968
        "stop_time" => float 1414046412.4709
        "stop_memory" => integer 2343536
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4713
        "start_memory" => integer 2398360
        "stop_time" => float 1414046412.4713
        "stop_memory" => integer 2398952
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4714
        "start_memory" => integer 2400112
        "stop_time" => float 1414046412.4714
        "stop_memory" => integer 2400688
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4715
        "start_memory" => integer 2405560
        "stop_time" => float 1414046412.4715
        "stop_memory" => integer 2406136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4719
        "start_memory" => integer 2471600
        "stop_time" => float 1414046412.4719
        "stop_memory" => integer 2472216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.472
        "start_memory" => integer 2473000
        "stop_time" => float 1414046412.4721
        "stop_memory" => integer 2473576
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.475
        "start_memory" => integer 3142272
        "stop_time" => float 1414046412.4751
        "stop_memory" => integer 3142800
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4752
        "start_memory" => integer 3148472
        "stop_time" => float 1414046412.4752
        "stop_memory" => integer 3149040
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4755
        "start_memory" => integer 3181792
        "stop_time" => float 1414046412.4755
        "stop_memory" => integer 3182336
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4756
        "start_memory" => integer 3187000
        "stop_time" => float 1414046412.4757
        "stop_memory" => integer 3187568
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4765
        "start_memory" => integer 3350384
        "stop_time" => float 1414046412.4765
        "stop_memory" => integer 3350960
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4767
        "start_memory" => integer 3355840
        "stop_time" => float 1414046412.4767
        "stop_memory" => integer 3356424
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4768
        "start_memory" => integer 3359112
        "stop_time" => float 1414046412.4769
        "stop_memory" => integer 3359672
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4769
        "start_memory" => integer 3364544
        "stop_time" => float 1414046412.4771
        "stop_memory" => integer 3365128
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4774
        "start_memory" => integer 3414784
        "stop_time" => float 1414046412.4775
        "stop_memory" => integer 3415328
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4776
        "start_memory" => integer 3420000
        "stop_time" => float 1414046412.4776
        "stop_memory" => integer 3420576
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4783
        "start_memory" => integer 3518616
        "stop_time" => float 1414046412.4784
        "stop_memory" => integer 3519152
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.4785
        "start_memory" => integer 3523792
        "stop_time" => float 1414046412.4786
        "stop_memory" => integer 3524360
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.48
        "start_memory" => integer 3610952
        "stop_time" => float 1414046412.4801
        "stop_memory" => integer 3611544
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5565
        "start_memory" => integer 3653688
        "stop_time" => float 1414046412.5566
        "stop_memory" => integer 3654256
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5567
        "start_memory" => integer 3658920
        "stop_time" => float 1414046412.5567
        "stop_memory" => integer 3659752
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5577
        "start_memory" => integer 3700352
        "stop_time" => float 1414046412.5577
        "stop_memory" => integer 3700904
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5578
        "start_memory" => integer 3705736
        "stop_time" => float 1414046412.5578
        "stop_memory" => integer 3706312
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5585
        "start_memory" => integer 3730008
        "stop_time" => float 1414046412.5586
        "stop_memory" => integer 3730560
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5587
        "start_memory" => integer 3735240
        "stop_time" => float 1414046412.5588
        "stop_memory" => integer 3735816
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5596
        "start_memory" => integer 3802976
        "stop_time" => float 1414046412.5596
        "stop_memory" => integer 3803560
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5598
        "start_memory" => integer 3821552
        "stop_time" => float 1414046412.5598
        "stop_memory" => integer 3822112
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5599
        "start_memory" => integer 3826976
        "stop_time" => float 1414046412.5599
        "stop_memory" => integer 3827560
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5606
        "start_memory" => integer 3892688
        "stop_time" => float 1414046412.5606
        "stop_memory" => integer 3893264
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5609
        "start_memory" => integer 3912688
        "stop_time" => float 1414046412.5609
        "stop_memory" => integer 3913264
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5613
        "start_memory" => integer 3961336
        "stop_time" => float 1414046412.5613
        "stop_memory" => integer 3961912
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5616
        "start_memory" => integer 3972576
        "stop_time" => float 1414046412.5617
        "stop_memory" => integer 3973152
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.562
        "start_memory" => integer 3991160
        "stop_time" => float 1414046412.562
        "stop_memory" => integer 3991736
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5625
        "start_memory" => integer 4001432
        "stop_time" => float 1414046412.5625
        "stop_memory" => integer 4002008
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5628
        "start_memory" => integer 4022112
        "stop_time" => float 1414046412.5628
        "stop_memory" => integer 4022688
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5632
        "start_memory" => integer 4043192
        "stop_time" => float 1414046412.5632
        "stop_memory" => integer 4043784
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5634
        "start_memory" => integer 4057008
        "stop_time" => float 1414046412.5635
        "stop_memory" => integer 4057576
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5638
        "start_memory" => integer 4069792
        "stop_time" => float 1414046412.5638
        "stop_memory" => integer 4070368
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5642
        "start_memory" => integer 4118656
        "stop_time" => float 1414046412.5642
        "stop_memory" => integer 4119216
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5646
        "start_memory" => integer 4157688
        "stop_time" => float 1414046412.5646
        "stop_memory" => integer 4158272
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5649
        "start_memory" => integer 4177672
        "stop_time" => float 1414046412.5649
        "stop_memory" => integer 4178248
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5652
        "start_memory" => integer 4209408
        "stop_time" => float 1414046412.5652
        "stop_memory" => integer 4209984
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5655
        "start_memory" => integer 4228696
        "stop_time" => float 1414046412.5655
        "stop_memory" => integer 4229240
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5656
        "start_memory" => integer 4233912
        "stop_time" => float 1414046412.5656
        "stop_memory" => integer 4234488
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5659
        "start_memory" => integer 4265352
        "stop_time" => float 1414046412.5659
        "stop_memory" => integer 4265888
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.566
        "start_memory" => integer 4270552
        "stop_time" => float 1414046412.566
        "stop_memory" => integer 4271120
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5687
        "start_memory" => integer 4412688
        "stop_time" => float 1414046412.5688
        "stop_memory" => integer 4413264
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5765
        "start_memory" => integer 4466064
        "stop_time" => float 1414046412.5766
        "stop_memory" => integer 4466616
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5767
        "start_memory" => integer 4471448
        "stop_time" => float 1414046412.5767
        "stop_memory" => integer 4472024
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5813
        "start_memory" => integer 4497536
        "stop_time" => float 1414046412.5813
        "stop_memory" => integer 4498120
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5814
        "start_memory" => integer 4503072
        "stop_time" => float 1414046412.5815
        "stop_memory" => integer 4503648
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5862
        "start_memory" => integer 4529264
        "stop_time" => float 1414046412.5862
        "stop_memory" => integer 4529824
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5864
        "start_memory" => integer 4534680
        "stop_time" => float 1414046412.5864
        "stop_memory" => integer 4535760
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5869
        "start_memory" => integer 4624480
        "stop_time" => float 1414046412.5869
        "stop_memory" => integer 4625080
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5925
        "start_memory" => integer 4632000
        "stop_time" => float 1414046412.5926
        "stop_memory" => integer 4632552
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.5928
        "start_memory" => integer 4637432
        "stop_time" => float 1414046412.5928
        "stop_memory" => integer 4638016
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6107
        "start_memory" => integer 4694888
        "stop_time" => float 1414046412.6108
        "stop_memory" => integer 4695448
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6109
        "start_memory" => integer 4700368
        "stop_time" => float 1414046412.6109
        "stop_memory" => integer 4700952
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6112
        "start_memory" => integer 4724800
        "stop_time" => float 1414046412.6113
        "stop_memory" => integer 4725376
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6121
        "start_memory" => integer 4734464
        "stop_time" => float 1414046412.6121
        "stop_memory" => integer 4735024
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6123
        "start_memory" => integer 4739888
        "stop_time" => float 1414046412.6123
        "stop_memory" => integer 4740472
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.614
        "start_memory" => integer 4819976
        "stop_time" => float 1414046412.614
        "stop_memory" => integer 4820560
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6142
        "start_memory" => integer 4825440
        "stop_time" => float 1414046412.6142
        "stop_memory" => integer 4826024
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6222
        "start_memory" => integer 4851744
        "stop_time" => float 1414046412.6222
        "stop_memory" => integer 4852304
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6224
        "start_memory" => integer 4857168
        "stop_time" => float 1414046412.6224
        "stop_memory" => integer 4857752
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6233
        "start_memory" => integer 4879168
        "stop_time" => float 1414046412.6234
        "stop_memory" => integer 4879696
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6235
        "start_memory" => integer 4884344
        "stop_time" => float 1414046412.6236
        "stop_memory" => integer 4884912
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6252
        "start_memory" => integer 4895768
        "stop_time" => float 1414046412.6253
        "stop_memory" => integer 4896360
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6254
        "start_memory" => integer 4901248
        "stop_time" => float 1414046412.6254
        "stop_memory" => integer 4901824
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6298
        "start_memory" => integer 4946784
        "stop_time" => float 1414046412.6299
        "stop_memory" => integer 4947360
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6305
        "start_memory" => integer 4958496
        "stop_time" => float 1414046412.6306
        "stop_memory" => integer 4959040
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6307
        "start_memory" => integer 4964936
        "stop_time" => float 1414046412.6308
        "stop_memory" => integer 4965512
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6344
        "start_memory" => integer 4986968
        "stop_time" => float 1414046412.6344
        "stop_memory" => integer 4987552
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6366
        "start_memory" => integer 4993104
        "stop_time" => float 1414046412.6366
        "stop_memory" => integer 4993672
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.637
        "start_memory" => integer 4998520
        "stop_time" => float 1414046412.6371
        "stop_memory" => integer 4999104
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6402
        "start_memory" => integer 5132888
        "stop_time" => float 1414046412.6403
        "stop_memory" => integer 5133464
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6404
        "start_memory" => integer 5138416
        "stop_time" => float 1414046412.6405
        "stop_memory" => integer 5139008
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6413
        "start_memory" => integer 5153856
        "stop_time" => float 1414046412.6413
        "stop_memory" => integer 5154424
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6415
        "start_memory" => integer 5159384
        "stop_time" => float 1414046412.6415
        "stop_memory" => integer 5159976
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6437
        "start_memory" => integer 5165912
        "stop_time" => float 1414046412.6438
        "stop_memory" => integer 5166464
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6439
        "start_memory" => integer 5171328
        "stop_time" => float 1414046412.6439
        "stop_memory" => integer 5171912
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6456
        "start_memory" => integer 5316512
        "stop_time" => float 1414046412.6456
        "stop_memory" => integer 5317088
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6458
        "start_memory" => integer 5322048
        "stop_time" => float 1414046412.6458
        "stop_memory" => integer 5322640
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6461
        "start_memory" => integer 5343320
        "stop_time" => float 1414046412.6462
        "stop_memory" => integer 5343888
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6463
        "start_memory" => integer 5348776
        "stop_time" => float 1414046412.6464
        "stop_memory" => integer 5349352
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6477
        "start_memory" => integer 5411656
        "stop_time" => float 1414046412.6478
        "stop_memory" => integer 5412216
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6479
        "start_memory" => integer 5417088
        "stop_time" => float 1414046412.648
        "stop_memory" => integer 5417672
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6492
        "start_memory" => integer 5483176
        "stop_time" => float 1414046412.6492
        "stop_memory" => integer 5483736
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6493
        "start_memory" => integer 5488600
        "stop_time" => float 1414046412.6494
        "stop_memory" => integer 5489184
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6506
        "start_memory" => integer 5531840
        "stop_time" => float 1414046412.6507
        "stop_memory" => integer 5532416
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6508
        "start_memory" => integer 5537384
        "stop_time" => float 1414046412.6508
        "stop_memory" => integer 5537976
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6518
        "start_memory" => integer 5596816
        "stop_time" => float 1414046412.6518
        "stop_memory" => integer 5597400
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6519
        "start_memory" => integer 5602464
        "stop_time" => float 1414046412.652
        "stop_memory" => integer 5603064
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6522
        "start_memory" => integer 5622736
        "stop_time" => float 1414046412.6522
        "stop_memory" => integer 5623312
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6523
        "start_memory" => integer 5628376
        "stop_time" => float 1414046412.6524
        "stop_memory" => integer 5628976
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6537
        "start_memory" => integer 5693416
        "stop_time" => float 1414046412.6537
        "stop_memory" => integer 5693992
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6538
        "start_memory" => integer 5699056
        "stop_time" => float 1414046412.6539
        "stop_memory" => integer 5699656
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6549
        "start_memory" => integer 5747984
        "stop_time" => float 1414046412.655
        "stop_memory" => integer 5748560
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6552
        "start_memory" => integer 5753616
        "stop_time" => float 1414046412.6553
        "stop_memory" => integer 5754216
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6563
        "start_memory" => integer 5795520
        "stop_time" => float 1414046412.6564
        "stop_memory" => integer 5796096
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6565
        "start_memory" => integer 5801160
        "stop_time" => float 1414046412.6565
        "stop_memory" => integer 5801760
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6578
        "start_memory" => integer 5914688
        "stop_time" => float 1414046412.6578
        "stop_memory" => integer 5915264
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6579
        "start_memory" => integer 5920328
        "stop_time" => float 1414046412.658
        "stop_memory" => integer 5920928
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6602
        "start_memory" => integer 5969576
        "stop_time" => float 1414046412.6603
        "stop_memory" => integer 5970136
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6604
        "start_memory" => integer 5975104
        "stop_time" => float 1414046412.6605
        "stop_memory" => integer 5975696
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6616
        "start_memory" => integer 5998824
        "stop_time" => float 1414046412.6617
        "stop_memory" => integer 5999344
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6618
        "start_memory" => integer 6003984
        "stop_time" => float 1414046412.6618
        "stop_memory" => integer 6004552
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6627
        "start_memory" => integer 6122184
        "stop_time" => float 1414046412.6628
        "stop_memory" => integer 6122728
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6634
        "start_memory" => integer 6123784
        "stop_time" => float 1414046412.6634
        "stop_memory" => integer 6124352
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6635
        "start_memory" => integer 6129024
        "stop_time" => float 1414046412.6636
        "stop_memory" => integer 6129608
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6695
        "start_memory" => integer 6149928
        "stop_time" => float 1414046412.6696
        "stop_memory" => integer 6150464
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6698
        "start_memory" => integer 6155112
        "stop_time" => float 1414046412.6698
        "stop_memory" => integer 6155680
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6726
        "start_memory" => integer 6193128
        "stop_time" => float 1414046412.6727
        "stop_memory" => integer 6193672
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6728
        "start_memory" => integer 6198312
        "stop_time" => float 1414046412.6728
        "stop_memory" => integer 6198880
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6736
        "start_memory" => integer 6241320
        "stop_time" => float 1414046412.6737
        "stop_memory" => integer 6241864
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6738
        "start_memory" => integer 6246528
        "stop_time" => float 1414046412.6738
        "stop_memory" => integer 6247096
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6746
        "start_memory" => integer 6291296
        "stop_time" => float 1414046412.6747
        "stop_memory" => integer 6292864
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6747
        "start_memory" => integer 6297504
        "stop_time" => float 1414046412.6748
        "stop_memory" => integer 6298072
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6761
        "start_memory" => integer 6373576
        "stop_time" => float 1414046412.6761
        "stop_memory" => integer 6374120
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6762
        "start_memory" => integer 6378784
        "stop_time" => float 1414046412.6762
        "stop_memory" => integer 6379352
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6785
        "start_memory" => integer 6401544
        "stop_time" => float 1414046412.6786
        "stop_memory" => integer 6402088
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6787
        "start_memory" => integer 6406728
        "stop_time" => float 1414046412.6787
        "stop_memory" => integer 6407296
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6802
        "start_memory" => integer 6436776
        "stop_time" => float 1414046412.6802
        "stop_memory" => integer 6437336
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6803
        "start_memory" => integer 6442184
        "stop_time" => float 1414046412.6804
        "stop_memory" => integer 6442760
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6812
        "start_memory" => integer 6463056
        "stop_time" => float 1414046412.6813
        "stop_memory" => integer 6463624
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6813
        "start_memory" => integer 6468560
        "stop_time" => float 1414046412.6814
        "stop_memory" => integer 6469144
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.682
        "start_memory" => integer 6484168
        "stop_time" => float 1414046412.682
        "stop_memory" => integer 6484728
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6821
        "start_memory" => integer 6489664
        "stop_time" => float 1414046412.6823
        "stop_memory" => integer 6490248
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6829
        "start_memory" => integer 6505296
        "stop_time" => float 1414046412.683
        "stop_memory" => integer 6505856
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6831
        "start_memory" => integer 6510792
        "stop_time" => float 1414046412.6831
        "stop_memory" => integer 6511376
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6837
        "start_memory" => integer 6526424
        "stop_time" => float 1414046412.6838
        "stop_memory" => integer 6526984
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6838
        "start_memory" => integer 6531920
        "stop_time" => float 1414046412.6839
        "stop_memory" => integer 6532504
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6845
        "start_memory" => integer 6547528
        "stop_time" => float 1414046412.6846
        "stop_memory" => integer 6548088
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6847
        "start_memory" => integer 6553024
        "stop_time" => float 1414046412.6847
        "stop_memory" => integer 6553608
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6853
        "start_memory" => integer 6568632
        "stop_time" => float 1414046412.6854
        "stop_memory" => integer 6569192
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6855
        "start_memory" => integer 6574128
        "stop_time" => float 1414046412.6855
        "stop_memory" => integer 6574712
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6862
        "start_memory" => integer 6589768
        "stop_time" => float 1414046412.6862
        "stop_memory" => integer 6590328
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6863
        "start_memory" => integer 6595264
        "stop_time" => float 1414046412.6864
        "stop_memory" => integer 6595848
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.687
        "start_memory" => integer 6610872
        "stop_time" => float 1414046412.6871
        "stop_memory" => integer 6611432
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6872
        "start_memory" => integer 6616368
        "stop_time" => float 1414046412.6872
        "stop_memory" => integer 6616952
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6878
        "start_memory" => integer 6632088
        "stop_time" => float 1414046412.6879
        "stop_memory" => integer 6632648
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.688
        "start_memory" => integer 6637584
        "stop_time" => float 1414046412.6881
        "stop_memory" => integer 6638168
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6888
        "start_memory" => integer 6653200
        "stop_time" => float 1414046412.6888
        "stop_memory" => integer 6653760
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6889
        "start_memory" => integer 6658696
        "stop_time" => float 1414046412.689
        "stop_memory" => integer 6659280
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6896
        "start_memory" => integer 6674320
        "stop_time" => float 1414046412.6897
        "stop_memory" => integer 6674880
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6898
        "start_memory" => integer 6679816
        "stop_time" => float 1414046412.6898
        "stop_memory" => integer 6680400
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6905
        "start_memory" => integer 6695408
        "stop_time" => float 1414046412.6905
        "stop_memory" => integer 6695968
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6906
        "start_memory" => integer 6700904
        "stop_time" => float 1414046412.6906
        "stop_memory" => integer 6701488
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6912
        "start_memory" => integer 6716512
        "stop_time" => float 1414046412.6912
        "stop_memory" => integer 6717072
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6913
        "start_memory" => integer 6722008
        "stop_time" => float 1414046412.6913
        "stop_memory" => integer 6722592
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6919
        "start_memory" => integer 6737640
        "stop_time" => float 1414046412.692
        "stop_memory" => integer 6738200
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6921
        "start_memory" => integer 6743136
        "stop_time" => float 1414046412.6921
        "stop_memory" => integer 6743720
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6928
        "start_memory" => integer 6758792
        "stop_time" => float 1414046412.6928
        "stop_memory" => integer 6759352
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6929
        "start_memory" => integer 6764288
        "stop_time" => float 1414046412.693
        "stop_memory" => integer 6764872
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6936
        "start_memory" => integer 6779928
        "stop_time" => float 1414046412.6937
        "stop_memory" => integer 6780488
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6938
        "start_memory" => integer 6785424
        "stop_time" => float 1414046412.6938
        "stop_memory" => integer 6786008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6944
        "start_memory" => integer 6801184
        "stop_time" => float 1414046412.6945
        "stop_memory" => integer 6801744
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6946
        "start_memory" => integer 6806680
        "stop_time" => float 1414046412.6946
        "stop_memory" => integer 6807264
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6953
        "start_memory" => integer 6822320
        "stop_time" => float 1414046412.6953
        "stop_memory" => integer 6822880
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6954
        "start_memory" => integer 6827816
        "stop_time" => float 1414046412.6955
        "stop_memory" => integer 6828400
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6964
        "start_memory" => integer 6843456
        "stop_time" => float 1414046412.6964
        "stop_memory" => integer 6844016
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6965
        "start_memory" => integer 6848952
        "stop_time" => float 1414046412.6966
        "stop_memory" => integer 6849536
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6973
        "start_memory" => integer 6864584
        "stop_time" => float 1414046412.6974
        "stop_memory" => integer 6865144
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6975
        "start_memory" => integer 6870080
        "stop_time" => float 1414046412.6975
        "stop_memory" => integer 6870664
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6982
        "start_memory" => integer 6885688
        "stop_time" => float 1414046412.6983
        "stop_memory" => integer 6886248
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6984
        "start_memory" => integer 6891184
        "stop_time" => float 1414046412.6984
        "stop_memory" => integer 6891768
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6993
        "start_memory" => integer 6906792
        "stop_time" => float 1414046412.6994
        "stop_memory" => integer 6907352
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.6996
        "start_memory" => integer 6912288
        "stop_time" => float 1414046412.6997
        "stop_memory" => integer 6912872
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7006
        "start_memory" => integer 6927928
        "stop_time" => float 1414046412.7006
        "stop_memory" => integer 6928488
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7007
        "start_memory" => integer 6933424
        "stop_time" => float 1414046412.7008
        "stop_memory" => integer 6934008
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7013
        "start_memory" => integer 6949048
        "stop_time" => float 1414046412.7014
        "stop_memory" => integer 6949608
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7015
        "start_memory" => integer 6954544
        "stop_time" => float 1414046412.7016
        "stop_memory" => integer 6955128
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7032
        "start_memory" => integer 6970392
        "stop_time" => float 1414046412.7032
        "stop_memory" => integer 6970952
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7034
        "start_memory" => integer 6975864
        "stop_time" => float 1414046412.7034
        "stop_memory" => integer 6976432
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7069
        "start_memory" => integer 7014464
        "stop_time" => float 1414046412.7071
        "stop_memory" => integer 7015016
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7073
        "start_memory" => integer 7019688
        "stop_time" => float 1414046412.7073
        "stop_memory" => integer 7020264
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7093
        "start_memory" => integer 7151328
        "stop_time" => float 1414046412.7094
        "stop_memory" => integer 7151880
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7095
        "start_memory" => integer 7156560
        "stop_time" => float 1414046412.7096
        "stop_memory" => integer 7157136
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7121
        "start_memory" => integer 7326288
        "stop_time" => float 1414046412.7122
        "stop_memory" => integer 7326840
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7125
        "start_memory" => integer 7331528
        "stop_time" => float 1414046412.7125
        "stop_memory" => integer 7332088
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7163
        "start_memory" => integer 7387752
        "stop_time" => float 1414046412.7164
        "stop_memory" => integer 7388328
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7165
        "start_memory" => integer 7393240
        "stop_time" => float 1414046412.7166
        "stop_memory" => integer 7393808
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7177
        "start_memory" => integer 7433848
        "stop_time" => float 1414046412.7178
        "stop_memory" => integer 7434424
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7179
        "start_memory" => integer 7439376
        "stop_time" => float 1414046412.718
        "stop_memory" => integer 7439968
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7197
        "start_memory" => integer 7465912
        "stop_time" => float 1414046412.7198
        "stop_memory" => integer 7466480
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7199
        "start_memory" => integer 7471352
        "stop_time" => float 1414046412.7199
        "stop_memory" => integer 7471928
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7219
        "start_memory" => integer 7497984
        "stop_time" => float 1414046412.7219
        "stop_memory" => integer 7498560
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7252
        "start_memory" => integer 7509464
        "stop_time" => float 1414046412.7254
        "stop_memory" => integer 7510024
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7257
        "start_memory" => integer 7519896
        "stop_time" => float 1414046412.7257
        "stop_memory" => integer 7520464
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7273
        "start_memory" => integer 7531112
        "stop_time" => float 1414046412.7274
        "stop_memory" => integer 7531664
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7275
        "start_memory" => integer 7536376
        "stop_time" => float 1414046412.7275
        "stop_memory" => integer 7536976
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7282
        "start_memory" => integer 7542440
        "stop_time" => float 1414046412.7283
        "stop_memory" => integer 7542992
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7283
        "start_memory" => integer 7547720
        "stop_time" => float 1414046412.7284
        "stop_memory" => integer 7548296
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7289
        "start_memory" => integer 7553744
        "stop_time" => float 1414046412.729
        "stop_memory" => integer 7554296
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7291
        "start_memory" => integer 7559048
        "stop_time" => float 1414046412.7292
        "stop_memory" => integer 7559624
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7303
        "start_memory" => integer 7571632
        "stop_time" => float 1414046412.7304
        "stop_memory" => integer 7572168
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7304
        "start_memory" => integer 7576816
        "stop_time" => float 1414046412.7305
        "stop_memory" => integer 7577384
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.731
        "start_memory" => integer 7580448
        "stop_time" => float 1414046412.731
        "stop_memory" => integer 7581024
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7311
        "start_memory" => integer 7590312
        "stop_time" => float 1414046412.7312
        "stop_memory" => integer 7590848
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7313
        "start_memory" => integer 7597568
        "stop_time" => float 1414046412.7314
        "stop_memory" => integer 7598136
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7334
        "start_memory" => integer 7975552
        "stop_time" => float 1414046412.7334
        "stop_memory" => integer 7976128
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7342
        "start_memory" => integer 8050608
        "stop_time" => float 1414046412.7342
        "stop_memory" => integer 8051192
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7348
        "start_memory" => integer 8096432
        "stop_time" => float 1414046412.7348
        "stop_memory" => integer 8096992
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7349
        "start_memory" => integer 8101856
        "stop_time" => float 1414046412.735
        "stop_memory" => integer 8102440
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7356
        "start_memory" => integer 8111416
        "stop_time" => float 1414046412.7357
        "stop_memory" => integer 8111960
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7361
        "start_memory" => integer 8143400
        "stop_time" => float 1414046412.7362
        "stop_memory" => integer 8143960
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7368
        "start_memory" => integer 8178368
        "stop_time" => float 1414046412.7369
        "stop_memory" => integer 8178944
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7374
        "start_memory" => integer 8211056
        "stop_time" => float 1414046412.7374
        "stop_memory" => integer 8211592
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7375
        "start_memory" => integer 8216248
        "stop_time" => float 1414046412.7376
        "stop_memory" => integer 8216816
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7396
        "start_memory" => integer 8258624
        "stop_time" => float 1414046412.7396
        "stop_memory" => integer 8259216
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7397
        "start_memory" => integer 8264400
        "stop_time" => float 1414046412.7398
        "stop_memory" => integer 8264992
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7424
        "start_memory" => integer 8309088
        "stop_time" => float 1414046412.7424
        "stop_memory" => integer 8309640
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7425
        "start_memory" => integer 8314576
        "stop_time" => float 1414046412.7426
        "stop_memory" => integer 8315160
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7481
        "start_memory" => integer 8416848
        "stop_time" => float 1414046412.7482
        "stop_memory" => integer 8417376
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7483
        "start_memory" => integer 8422032
        "stop_time" => float 1414046412.7484
        "stop_memory" => integer 8422600
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.749
        "start_memory" => integer 8437528
        "stop_time" => float 1414046412.7491
        "stop_memory" => integer 8438080
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7491
        "start_memory" => integer 8442728
        "stop_time" => float 1414046412.7492
        "stop_memory" => integer 8443296
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7501
        "start_memory" => integer 8509728
        "stop_time" => float 1414046412.7501
        "stop_memory" => integer 8510288
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7502
        "start_memory" => integer 8515144
        "stop_time" => float 1414046412.7503
        "stop_memory" => integer 8515720
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.751
        "start_memory" => integer 8539160
        "stop_time" => float 1414046412.751
        "stop_memory" => integer 8539768
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7511
        "start_memory" => integer 8544688
        "stop_time" => float 1414046412.7511
        "stop_memory" => integer 8545280
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7524
        "start_memory" => integer 8616248
        "stop_time" => float 1414046412.7525
        "stop_memory" => integer 8616784
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7526
        "start_memory" => integer 8621656
        "stop_time" => float 1414046412.7527
        "stop_memory" => integer 8622208
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7534
        "start_memory" => integer 8649944
        "stop_time" => float 1414046412.7534
        "stop_memory" => integer 8650480
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7535
        "start_memory" => integer 8655136
        "stop_time" => float 1414046412.7536
        "stop_memory" => integer 8655704
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7551
        "start_memory" => integer 8776928
        "stop_time" => float 1414046412.7553
        "stop_memory" => integer 8777472
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7554
        "start_memory" => integer 8782144
        "stop_time" => float 1414046412.7555
        "stop_memory" => integer 8782712
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7617
        "start_memory" => integer 8814096
        "stop_time" => float 1414046412.7619
        "stop_memory" => integer 8814640
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.762
        "start_memory" => integer 8819288
        "stop_time" => float 1414046412.7621
        "stop_memory" => integer 8819856
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7638
        "start_memory" => integer 8920144
        "stop_time" => float 1414046412.764
        "stop_memory" => integer 8920704
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7641
        "start_memory" => integer 8925416
        "stop_time" => float 1414046412.7642
        "stop_memory" => integer 8925992
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7657
        "start_memory" => integer 9033736
        "stop_time" => float 1414046412.7657
        "stop_memory" => integer 9034304
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7658
        "start_memory" => integer 9039224
        "stop_time" => float 1414046412.7659
        "stop_memory" => integer 9039808
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7669
        "start_memory" => integer 9060992
        "stop_time" => float 1414046412.7669
        "stop_memory" => integer 9061568
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7673
        "start_memory" => integer 9026048
        "stop_time" => float 1414046412.7674
        "stop_memory" => integer 9027984
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.768
        "start_memory" => integer 9098704
        "stop_time" => float 1414046412.7681
        "stop_memory" => integer 9100432
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414046412.7681
        "start_memory" => integer 9100192
        "stop_time" => float 1414046412.7682
        "stop_memory" => integer 9101920
    )
)

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