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-2010 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(242) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1422275105.6495
        "start_memory" => integer 1696968
        "stop_time" => float 1422275106.0558
        "stop_memory" => integer 8469704
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6495
        "start_memory" => integer 1699784
        "stop_time" => float 1422275105.6496
        "stop_memory" => integer 1700376
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6505
        "start_memory" => integer 1828768
        "stop_time" => float 1422275105.6506
        "stop_memory" => integer 1829328
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6507
        "start_memory" => integer 1834760
        "stop_time" => float 1422275105.6508
        "stop_memory" => integer 1835344
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.651
        "start_memory" => integer 1846040
        "stop_time" => float 1422275105.6511
        "stop_memory" => integer 1846584
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6513
        "start_memory" => integer 1851472
        "stop_time" => float 1422275105.6513
        "stop_memory" => integer 1852048
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6516
        "start_memory" => integer 1855440
        "stop_time" => float 1422275105.6517
        "stop_memory" => integer 1856024
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6557
        "start_memory" => integer 2439784
        "stop_time" => float 1422275105.6558
        "stop_memory" => integer 2440360
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.656
        "start_memory" => integer 2445232
        "stop_time" => float 1422275105.6561
        "stop_memory" => integer 2445872
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6568
        "start_memory" => integer 2591616
        "stop_time" => float 1422275105.657
        "stop_memory" => integer 2592144
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6571
        "start_memory" => integer 2596792
        "stop_time" => float 1422275105.6573
        "stop_memory" => integer 2597360
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6577
        "start_memory" => integer 2629120
        "stop_time" => float 1422275105.6578
        "stop_memory" => integer 2629664
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6579
        "start_memory" => integer 2634312
        "stop_time" => float 1422275105.658
        "stop_memory" => integer 2634880
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.659
        "start_memory" => integer 2801264
        "stop_time" => float 1422275105.6591
        "stop_memory" => integer 2801808
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6593
        "start_memory" => integer 2806448
        "stop_time" => float 1422275105.6594
        "stop_memory" => integer 2807016
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6598
        "start_memory" => integer 2861536
        "stop_time" => float 1422275105.6599
        "stop_memory" => integer 2862128
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6599
        "start_memory" => integer 2864048
        "stop_time" => float 1422275105.66
        "stop_memory" => integer 2864736
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6601
        "start_memory" => integer 2869616
        "stop_time" => float 1422275105.6602
        "stop_memory" => integer 2870200
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6604
        "start_memory" => integer 2872904
        "stop_time" => float 1422275105.6605
        "stop_memory" => integer 2873464
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6606
        "start_memory" => integer 2878344
        "stop_time" => float 1422275105.6607
        "stop_memory" => integer 2878928
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6611
        "start_memory" => integer 2928448
        "stop_time" => float 1422275105.6612
        "stop_memory" => integer 2928992
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6614
        "start_memory" => integer 2933664
        "stop_time" => float 1422275105.6614
        "stop_memory" => integer 2934240
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6625
        "start_memory" => integer 3030600
        "stop_time" => float 1422275105.6626
        "stop_memory" => integer 3031136
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6627
        "start_memory" => integer 3035776
        "stop_time" => float 1422275105.6629
        "stop_memory" => integer 3036344
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.6648
        "start_memory" => integer 3118920
        "stop_time" => float 1422275105.665
        "stop_memory" => integer 3119512
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8016
        "start_memory" => integer 3158776
        "stop_time" => float 1422275105.8016
        "stop_memory" => integer 3159344
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8018
        "start_memory" => integer 3164008
        "stop_time" => float 1422275105.8018
        "stop_memory" => integer 3164584
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.803
        "start_memory" => integer 3218504
        "stop_time" => float 1422275105.803
        "stop_memory" => integer 3219056
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8031
        "start_memory" => integer 3223896
        "stop_time" => float 1422275105.8032
        "stop_memory" => integer 3224472
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8039
        "start_memory" => integer 3249544
        "stop_time" => float 1422275105.8039
        "stop_memory" => integer 3250096
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8041
        "start_memory" => integer 3254792
        "stop_time" => float 1422275105.8042
        "stop_memory" => integer 3255368
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8052
        "start_memory" => integer 3328480
        "stop_time" => float 1422275105.8053
        "stop_memory" => integer 3329064
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8055
        "start_memory" => integer 3347056
        "stop_time" => float 1422275105.8056
        "stop_memory" => integer 3347872
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8057
        "start_memory" => integer 3352736
        "stop_time" => float 1422275105.8057
        "stop_memory" => integer 3353320
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8064
        "start_memory" => integer 3418448
        "stop_time" => float 1422275105.8064
        "stop_memory" => integer 3419024
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8068
        "start_memory" => integer 3438424
        "stop_time" => float 1422275105.8068
        "stop_memory" => integer 3439000
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8074
        "start_memory" => integer 3487072
        "stop_time" => float 1422275105.8075
        "stop_memory" => integer 3487648
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8078
        "start_memory" => integer 3499352
        "stop_time" => float 1422275105.8079
        "stop_memory" => integer 3499928
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8082
        "start_memory" => integer 3517936
        "stop_time" => float 1422275105.8083
        "stop_memory" => integer 3518512
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8086
        "start_memory" => integer 3528192
        "stop_time" => float 1422275105.8086
        "stop_memory" => integer 3528768
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8089
        "start_memory" => integer 3548872
        "stop_time" => float 1422275105.809
        "stop_memory" => integer 3549448
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8094
        "start_memory" => integer 3569968
        "stop_time" => float 1422275105.8095
        "stop_memory" => integer 3570560
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8098
        "start_memory" => integer 3583800
        "stop_time" => float 1422275105.8099
        "stop_memory" => integer 3584368
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8102
        "start_memory" => integer 3596592
        "stop_time" => float 1422275105.8102
        "stop_memory" => integer 3597168
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8106
        "start_memory" => integer 3645448
        "stop_time" => float 1422275105.8106
        "stop_memory" => integer 3646008
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8111
        "start_memory" => integer 3684480
        "stop_time" => float 1422275105.8111
        "stop_memory" => integer 3685064
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8114
        "start_memory" => integer 3704464
        "stop_time" => float 1422275105.8114
        "stop_memory" => integer 3705040
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8117
        "start_memory" => integer 3736216
        "stop_time" => float 1422275105.8117
        "stop_memory" => integer 3736792
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8121
        "start_memory" => integer 3755504
        "stop_time" => float 1422275105.8122
        "stop_memory" => integer 3756048
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8123
        "start_memory" => integer 3760720
        "stop_time" => float 1422275105.8123
        "stop_memory" => integer 3761296
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8265
        "start_memory" => integer 3882000
        "stop_time" => float 1422275105.8266
        "stop_memory" => integer 3882552
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8267
        "start_memory" => integer 3887384
        "stop_time" => float 1422275105.8268
        "stop_memory" => integer 3887960
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8328
        "start_memory" => integer 3913448
        "stop_time" => float 1422275105.8329
        "stop_memory" => integer 3914032
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.833
        "start_memory" => integer 3918968
        "stop_time" => float 1422275105.8331
        "stop_memory" => integer 3919544
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8391
        "start_memory" => integer 3945136
        "stop_time" => float 1422275105.8392
        "stop_memory" => integer 3945696
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8393
        "start_memory" => integer 3950552
        "stop_time" => float 1422275105.8394
        "stop_memory" => integer 3951120
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.84
        "start_memory" => integer 4038488
        "stop_time" => float 1422275105.84
        "stop_memory" => integer 4039088
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8469
        "start_memory" => integer 4046032
        "stop_time" => float 1422275105.8469
        "stop_memory" => integer 4046584
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8471
        "start_memory" => integer 4051464
        "stop_time" => float 1422275105.8472
        "stop_memory" => integer 4052048
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8686
        "start_memory" => integer 4108848
        "stop_time" => float 1422275105.8686
        "stop_memory" => integer 4109408
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8689
        "start_memory" => integer 4114328
        "stop_time" => float 1422275105.8689
        "stop_memory" => integer 4114912
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8693
        "start_memory" => integer 4138184
        "stop_time" => float 1422275105.8693
        "stop_memory" => integer 4138760
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8704
        "start_memory" => integer 4147832
        "stop_time" => float 1422275105.8705
        "stop_memory" => integer 4148392
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8706
        "start_memory" => integer 4153256
        "stop_time" => float 1422275105.8707
        "stop_memory" => integer 4153840
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8723
        "start_memory" => integer 4233288
        "stop_time" => float 1422275105.8724
        "stop_memory" => integer 4234360
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8725
        "start_memory" => integer 4239264
        "stop_time" => float 1422275105.8726
        "stop_memory" => integer 4239848
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8823
        "start_memory" => integer 4265512
        "stop_time" => float 1422275105.8824
        "stop_memory" => integer 4266072
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8826
        "start_memory" => integer 4270936
        "stop_time" => float 1422275105.8826
        "stop_memory" => integer 4271520
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.884
        "start_memory" => integer 4292928
        "stop_time" => float 1422275105.8842
        "stop_memory" => integer 4293456
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8843
        "start_memory" => integer 4298104
        "stop_time" => float 1422275105.8844
        "stop_memory" => integer 4298680
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8883
        "start_memory" => integer 4309584
        "stop_time" => float 1422275105.8884
        "stop_memory" => integer 4310176
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8894
        "start_memory" => integer 4320976
        "stop_time" => float 1422275105.8895
        "stop_memory" => integer 4321552
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8899
        "start_memory" => integer 4360144
        "stop_time" => float 1422275105.89
        "stop_memory" => integer 4360632
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8927
        "start_memory" => integer 4361808
        "stop_time" => float 1422275105.8928
        "stop_memory" => integer 4362384
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.8957
        "start_memory" => integer 4391400
        "stop_time" => float 1422275105.8958
        "stop_memory" => integer 4391944
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.896
        "start_memory" => integer 4396808
        "stop_time" => float 1422275105.8961
        "stop_memory" => integer 4397384
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9009
        "start_memory" => integer 4411904
        "stop_time" => float 1422275105.9009
        "stop_memory" => integer 4412496
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9033
        "start_memory" => integer 4417352
        "stop_time" => float 1422275105.9034
        "stop_memory" => integer 4417888
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9035
        "start_memory" => integer 4422544
        "stop_time" => float 1422275105.9036
        "stop_memory" => integer 4423112
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9045
        "start_memory" => integer 4450896
        "stop_time" => float 1422275105.9045
        "stop_memory" => integer 4451472
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9046
        "start_memory" => integer 4456312
        "stop_time" => float 1422275105.9047
        "stop_memory" => integer 4456896
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9079
        "start_memory" => integer 4576992
        "stop_time" => float 1422275105.908
        "stop_memory" => integer 4577568
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9081
        "start_memory" => integer 4582520
        "stop_time" => float 1422275105.9082
        "stop_memory" => integer 4583112
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9083
        "start_memory" => integer 4588272
        "stop_time" => float 1422275105.9084
        "stop_memory" => integer 4588824
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.909
        "start_memory" => integer 4608256
        "stop_time" => float 1422275105.9091
        "stop_memory" => integer 4608848
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9093
        "start_memory" => integer 4613808
        "stop_time" => float 1422275105.9093
        "stop_memory" => integer 4614400
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9112
        "start_memory" => integer 4620336
        "stop_time" => float 1422275105.9113
        "stop_memory" => integer 4620888
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9114
        "start_memory" => integer 4625752
        "stop_time" => float 1422275105.9115
        "stop_memory" => integer 4626336
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9129
        "start_memory" => integer 4758216
        "stop_time" => float 1422275105.913
        "stop_memory" => integer 4758792
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9131
        "start_memory" => integer 4763752
        "stop_time" => float 1422275105.9132
        "stop_memory" => integer 4764368
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9134
        "start_memory" => integer 4785048
        "stop_time" => float 1422275105.9135
        "stop_memory" => integer 4785616
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9136
        "start_memory" => integer 4790528
        "stop_time" => float 1422275105.9137
        "stop_memory" => integer 4791104
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9149
        "start_memory" => integer 4853120
        "stop_time" => float 1422275105.915
        "stop_memory" => integer 4853680
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9151
        "start_memory" => integer 4858552
        "stop_time" => float 1422275105.9152
        "stop_memory" => integer 4859136
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9164
        "start_memory" => integer 4917336
        "stop_time" => float 1422275105.9164
        "stop_memory" => integer 4917896
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9165
        "start_memory" => integer 4922760
        "stop_time" => float 1422275105.9166
        "stop_memory" => integer 4923344
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9179
        "start_memory" => integer 4965912
        "stop_time" => float 1422275105.9179
        "stop_memory" => integer 4966488
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9181
        "start_memory" => integer 4971456
        "stop_time" => float 1422275105.9182
        "stop_memory" => integer 4972056
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9194
        "start_memory" => integer 5022000
        "stop_time" => float 1422275105.9195
        "stop_memory" => integer 5022576
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9196
        "start_memory" => integer 5027640
        "stop_time" => float 1422275105.9197
        "stop_memory" => integer 5028240
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.92
        "start_memory" => integer 5048928
        "stop_time" => float 1422275105.9201
        "stop_memory" => integer 5049504
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9202
        "start_memory" => integer 5055576
        "stop_time" => float 1422275105.9202
        "stop_memory" => integer 5056176
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9214
        "start_memory" => integer 5119144
        "stop_time" => float 1422275105.9215
        "stop_memory" => integer 5119720
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9216
        "start_memory" => integer 5124784
        "stop_time" => float 1422275105.9217
        "stop_memory" => integer 5125384
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9229
        "start_memory" => integer 5172968
        "stop_time" => float 1422275105.9229
        "stop_memory" => integer 5173544
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9231
        "start_memory" => integer 5178600
        "stop_time" => float 1422275105.9232
        "stop_memory" => integer 5179200
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9242
        "start_memory" => integer 5211264
        "stop_time" => float 1422275105.9242
        "stop_memory" => integer 5211840
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9243
        "start_memory" => integer 5216904
        "stop_time" => float 1422275105.9243
        "stop_memory" => integer 5217504
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9262
        "start_memory" => integer 5317304
        "stop_time" => float 1422275105.9263
        "stop_memory" => integer 5317880
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9264
        "start_memory" => integer 5322944
        "stop_time" => float 1422275105.9264
        "stop_memory" => integer 5323544
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9293
        "start_memory" => integer 5371432
        "stop_time" => float 1422275105.9294
        "stop_memory" => integer 5371992
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9295
        "start_memory" => integer 5376960
        "stop_time" => float 1422275105.9295
        "stop_memory" => integer 5377552
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9307
        "start_memory" => integer 5400680
        "stop_time" => float 1422275105.9308
        "stop_memory" => integer 5401200
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9309
        "start_memory" => integer 5405840
        "stop_time" => float 1422275105.9311
        "stop_memory" => integer 5406408
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9326
        "start_memory" => integer 5515480
        "stop_time" => float 1422275105.9327
        "stop_memory" => integer 5516040
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9328
        "start_memory" => integer 5520712
        "stop_time" => float 1422275105.9329
        "stop_memory" => integer 5521288
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9387
        "start_memory" => integer 5541040
        "stop_time" => float 1422275105.9389
        "stop_memory" => integer 5541576
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.939
        "start_memory" => integer 5546240
        "stop_time" => float 1422275105.9391
        "stop_memory" => integer 5546808
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9424
        "start_memory" => integer 5583456
        "stop_time" => float 1422275105.9424
        "stop_memory" => integer 5584000
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9425
        "start_memory" => integer 5588640
        "stop_time" => float 1422275105.9426
        "stop_memory" => integer 5589208
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9435
        "start_memory" => integer 5631568
        "stop_time" => float 1422275105.9436
        "stop_memory" => integer 5632112
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9437
        "start_memory" => integer 5636752
        "stop_time" => float 1422275105.9438
        "stop_memory" => integer 5637320
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9447
        "start_memory" => integer 5666664
        "stop_time" => float 1422275105.9447
        "stop_memory" => integer 5667208
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9448
        "start_memory" => integer 5671848
        "stop_time" => float 1422275105.945
        "stop_memory" => integer 5672416
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9465
        "start_memory" => integer 5747416
        "stop_time" => float 1422275105.9466
        "stop_memory" => integer 5747960
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9468
        "start_memory" => integer 5752616
        "stop_time" => float 1422275105.9469
        "stop_memory" => integer 5753184
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9497
        "start_memory" => integer 5775312
        "stop_time" => float 1422275105.9498
        "stop_memory" => integer 5775856
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.95
        "start_memory" => integer 5780496
        "stop_time" => float 1422275105.95
        "stop_memory" => integer 5781064
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.952
        "start_memory" => integer 5801912
        "stop_time" => float 1422275105.9521
        "stop_memory" => integer 5803496
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9522
        "start_memory" => integer 5808184
        "stop_time" => float 1422275105.9524
        "stop_memory" => integer 5808760
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9539
        "start_memory" => integer 5936128
        "stop_time" => float 1422275105.954
        "stop_memory" => integer 5936680
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9541
        "start_memory" => integer 5941376
        "stop_time" => float 1422275105.9542
        "stop_memory" => integer 5941952
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9564
        "start_memory" => integer 6108944
        "stop_time" => float 1422275105.9565
        "stop_memory" => integer 6109496
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9567
        "start_memory" => integer 6114184
        "stop_time" => float 1422275105.9568
        "stop_memory" => integer 6114744
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.96
        "start_memory" => integer 6170360
        "stop_time" => float 1422275105.9601
        "stop_memory" => integer 6170936
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9602
        "start_memory" => integer 6175840
        "stop_time" => float 1422275105.9602
        "stop_memory" => integer 6176408
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9612
        "start_memory" => integer 6216456
        "stop_time" => float 1422275105.9613
        "stop_memory" => integer 6217032
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9614
        "start_memory" => integer 6221984
        "stop_time" => float 1422275105.9615
        "stop_memory" => integer 6222576
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.963
        "start_memory" => integer 6248496
        "stop_time" => float 1422275105.9631
        "stop_memory" => integer 6249064
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9632
        "start_memory" => integer 6253936
        "stop_time" => float 1422275105.9633
        "stop_memory" => integer 6254512
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9654
        "start_memory" => integer 6280408
        "stop_time" => float 1422275105.9655
        "stop_memory" => integer 6280984
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9687
        "start_memory" => integer 6290480
        "stop_time" => float 1422275105.9688
        "stop_memory" => integer 6291056
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9769
        "start_memory" => integer 6327176
        "stop_time" => float 1422275105.9771
        "stop_memory" => integer 6327736
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9773
        "start_memory" => integer 6336208
        "stop_time" => float 1422275105.9774
        "stop_memory" => integer 6336696
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9794
        "start_memory" => integer 6336952
        "stop_time" => float 1422275105.9795
        "stop_memory" => integer 6337520
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9816
        "start_memory" => integer 6343992
        "stop_time" => float 1422275105.9817
        "stop_memory" => integer 6344560
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9832
        "start_memory" => integer 6356368
        "stop_time" => float 1422275105.9833
        "stop_memory" => integer 6356952
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9838
        "start_memory" => integer 6365704
        "stop_time" => float 1422275105.9839
        "stop_memory" => integer 6366280
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9846
        "start_memory" => integer 6369360
        "stop_time" => float 1422275105.9847
        "stop_memory" => integer 6369920
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.985
        "start_memory" => integer 6378264
        "stop_time" => float 1422275105.9851
        "stop_memory" => integer 6378832
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9854
        "start_memory" => integer 6387136
        "stop_time" => float 1422275105.9856
        "stop_memory" => integer 6387672
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9857
        "start_memory" => integer 6392320
        "stop_time" => float 1422275105.9858
        "stop_memory" => integer 6392888
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9866
        "start_memory" => integer 6402192
        "stop_time" => float 1422275105.9867
        "stop_memory" => integer 6402768
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9868
        "start_memory" => integer 6411464
        "stop_time" => float 1422275105.9869
        "stop_memory" => integer 6412000
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.987
        "start_memory" => integer 6416648
        "stop_time" => float 1422275105.9871
        "stop_memory" => integer 6417216
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9901
        "start_memory" => integer 6767640
        "stop_time" => float 1422275105.9902
        "stop_memory" => integer 6768216
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9913
        "start_memory" => integer 6851632
        "stop_time" => float 1422275105.9913
        "stop_memory" => integer 6852216
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9922
        "start_memory" => integer 6895376
        "stop_time" => float 1422275105.9922
        "stop_memory" => integer 6895920
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9928
        "start_memory" => integer 6925312
        "stop_time" => float 1422275105.9929
        "stop_memory" => integer 6925872
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9935
        "start_memory" => integer 6957776
        "stop_time" => float 1422275105.9935
        "stop_memory" => integer 6958352
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9942
        "start_memory" => integer 6988688
        "stop_time" => float 1422275105.9943
        "stop_memory" => integer 6989224
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9944
        "start_memory" => integer 6993872
        "stop_time" => float 1422275105.9945
        "stop_memory" => integer 6994440
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9954
        "start_memory" => integer 7005448
        "stop_time" => float 1422275105.9955
        "stop_memory" => integer 7006008
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9957
        "start_memory" => integer 7010704
        "stop_time" => float 1422275105.9957
        "stop_memory" => integer 7011280
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9968
        "start_memory" => integer 7054064
        "stop_time" => float 1422275105.9969
        "stop_memory" => integer 7054616
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.997
        "start_memory" => integer 7059288
        "stop_time" => float 1422275105.9971
        "stop_memory" => integer 7059864
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9977
        "start_memory" => integer 7073640
        "stop_time" => float 1422275105.9978
        "stop_memory" => integer 7074208
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9979
        "start_memory" => integer 7079080
        "stop_time" => float 1422275105.998
        "stop_memory" => integer 7079664
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9984
        "start_memory" => integer 7095360
        "stop_time" => float 1422275105.9985
        "stop_memory" => integer 7095920
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9986
        "start_memory" => integer 7100808
        "stop_time" => float 1422275105.9987
        "stop_memory" => integer 7101392
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9991
        "start_memory" => integer 7119472
        "stop_time" => float 1422275105.9992
        "stop_memory" => integer 7120048
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9994
        "start_memory" => integer 7125040
        "stop_time" => float 1422275105.9995
        "stop_memory" => integer 7125632
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275105.9998
        "start_memory" => integer 7131080
        "stop_time" => float 1422275105.9999
        "stop_memory" => integer 7131632
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106
        "start_memory" => integer 7136512
        "stop_time" => float 1422275106
        "stop_memory" => integer 7137096
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0001
        "start_memory" => integer 7145816
        "stop_time" => float 1422275106.0002
        "stop_memory" => integer 7146376
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0003
        "start_memory" => integer 7151248
        "stop_time" => float 1422275106.0004
        "stop_memory" => integer 7151832
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0019
        "start_memory" => integer 7249424
        "stop_time" => float 1422275106.002
        "stop_memory" => integer 7250000
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0021
        "start_memory" => integer 7254984
        "stop_time" => float 1422275106.0022
        "stop_memory" => integer 7255576
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0031
        "start_memory" => integer 7274400
        "stop_time" => float 1422275106.0032
        "stop_memory" => integer 7274984
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0033
        "start_memory" => integer 7280016
        "stop_time" => float 1422275106.0034
        "stop_memory" => integer 7280600
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0042
        "start_memory" => integer 7297424
        "stop_time" => float 1422275106.0043
        "stop_memory" => integer 7297992
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0044
        "start_memory" => integer 7302936
        "stop_time" => float 1422275106.0045
        "stop_memory" => integer 7303528
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0052
        "start_memory" => integer 7322288
        "stop_time" => float 1422275106.0053
        "stop_memory" => integer 7322840
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0054
        "start_memory" => integer 7327704
        "stop_time" => float 1422275106.0055
        "stop_memory" => integer 7328288
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0057
        "start_memory" => integer 7335664
        "stop_time" => float 1422275106.0058
        "stop_memory" => integer 7336224
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0059
        "start_memory" => integer 7341096
        "stop_time" => float 1422275106.006
        "stop_memory" => integer 7341680
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0067
        "start_memory" => integer 7354872
        "stop_time" => float 1422275106.0068
        "stop_memory" => integer 7355448
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0069
        "start_memory" => integer 7360400
        "stop_time" => float 1422275106.0069
        "stop_memory" => integer 7360992
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0078
        "start_memory" => integer 7365672
        "stop_time" => float 1422275106.0078
        "stop_memory" => integer 7366224
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.008
        "start_memory" => integer 7371104
        "stop_time" => float 1422275106.008
        "stop_memory" => integer 7371688
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0089
        "start_memory" => integer 7386976
        "stop_time" => float 1422275106.0089
        "stop_memory" => integer 7387536
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.009
        "start_memory" => integer 7392416
        "stop_time" => float 1422275106.0092
        "stop_memory" => integer 7393000
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0101
        "start_memory" => integer 7430984
        "stop_time" => float 1422275106.0102
        "stop_memory" => integer 7431560
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0103
        "start_memory" => integer 7436520
        "stop_time" => float 1422275106.0104
        "stop_memory" => integer 7437112
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0124
        "start_memory" => integer 7450840
        "stop_time" => float 1422275106.0124
        "stop_memory" => integer 7451408
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0127
        "start_memory" => integer 7456376
        "stop_time" => float 1422275106.0127
        "stop_memory" => integer 7456968
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0144
        "start_memory" => integer 7467304
        "stop_time" => float 1422275106.0144
        "stop_memory" => integer 7467872
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0145
        "start_memory" => integer 7472816
        "stop_time" => float 1422275106.0146
        "stop_memory" => integer 7473408
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0152
        "start_memory" => integer 7493768
        "stop_time" => float 1422275106.0153
        "stop_memory" => integer 7494336
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0154
        "start_memory" => integer 7499304
        "stop_time" => float 1422275106.0154
        "stop_memory" => integer 7499896
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0162
        "start_memory" => integer 7519224
        "stop_time" => float 1422275106.0162
        "stop_memory" => integer 7519792
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0163
        "start_memory" => integer 7524816
        "stop_time" => float 1422275106.0165
        "stop_memory" => integer 7525408
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0172
        "start_memory" => integer 7542624
        "stop_time" => float 1422275106.0173
        "stop_memory" => integer 7543192
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0174
        "start_memory" => integer 7548160
        "stop_time" => float 1422275106.0175
        "stop_memory" => integer 7548752
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0182
        "start_memory" => integer 7567080
        "stop_time" => float 1422275106.0182
        "stop_memory" => integer 7567648
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0184
        "start_memory" => integer 7572600
        "stop_time" => float 1422275106.0185
        "stop_memory" => integer 7573192
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0192
        "start_memory" => integer 7593328
        "stop_time" => float 1422275106.0193
        "stop_memory" => integer 7593880
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0194
        "start_memory" => integer 7598760
        "stop_time" => float 1422275106.0195
        "stop_memory" => integer 7599344
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0202
        "start_memory" => integer 7609712
        "stop_time" => float 1422275106.0203
        "stop_memory" => integer 7610272
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0204
        "start_memory" => integer 7615160
        "stop_time" => float 1422275106.0205
        "stop_memory" => integer 7615744
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0213
        "start_memory" => integer 7631240
        "stop_time" => float 1422275106.0213
        "stop_memory" => integer 7631816
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0214
        "start_memory" => integer 7636832
        "stop_time" => float 1422275106.0214
        "stop_memory" => integer 7637424
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0228
        "start_memory" => integer 7648896
        "stop_time" => float 1422275106.023
        "stop_memory" => integer 7649464
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0232
        "start_memory" => integer 7654480
        "stop_time" => float 1422275106.0233
        "stop_memory" => integer 7655072
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0248
        "start_memory" => integer 7664880
        "stop_time" => float 1422275106.0249
        "stop_memory" => integer 7665448
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.025
        "start_memory" => integer 7670384
        "stop_time" => float 1422275106.0251
        "stop_memory" => integer 7670960
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0258
        "start_memory" => integer 7677120
        "stop_time" => float 1422275106.0259
        "stop_memory" => integer 7677720
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.026
        "start_memory" => integer 7682672
        "stop_time" => float 1422275106.0261
        "stop_memory" => integer 7683264
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0284
        "start_memory" => integer 7693104
        "stop_time" => float 1422275106.0285
        "stop_memory" => integer 7693656
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0287
        "start_memory" => integer 7698536
        "stop_time" => float 1422275106.0287
        "stop_memory" => integer 7699120
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0311
        "start_memory" => integer 7773504
        "stop_time" => float 1422275106.0312
        "stop_memory" => integer 7774032
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0313
        "start_memory" => integer 7778680
        "stop_time" => float 1422275106.0314
        "stop_memory" => integer 7779248
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.036
        "start_memory" => integer 7805312
        "stop_time" => float 1422275106.0361
        "stop_memory" => integer 7805856
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0362
        "start_memory" => integer 7810512
        "stop_time" => float 1422275106.0363
        "stop_memory" => integer 7811080
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0371
        "start_memory" => integer 7842880
        "stop_time" => float 1422275106.0373
        "stop_memory" => integer 7843424
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0374
        "start_memory" => integer 7848072
        "stop_time" => float 1422275106.0375
        "stop_memory" => integer 7848640
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0387
        "start_memory" => integer 7914960
        "stop_time" => float 1422275106.0388
        "stop_memory" => integer 7915520
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0389
        "start_memory" => integer 7920376
        "stop_time" => float 1422275106.039
        "stop_memory" => integer 7920952
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0396
        "start_memory" => integer 7944400
        "stop_time" => float 1422275106.0396
        "stop_memory" => integer 7944984
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0399
        "start_memory" => integer 7951952
        "stop_time" => float 1422275106.0399
        "stop_memory" => integer 7952544
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0419
        "start_memory" => integer 8025280
        "stop_time" => float 1422275106.0421
        "stop_memory" => integer 8025816
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0422
        "start_memory" => integer 8030680
        "stop_time" => float 1422275106.0423
        "stop_memory" => integer 8031256
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.043
        "start_memory" => integer 8059008
        "stop_time" => float 1422275106.0431
        "stop_memory" => integer 8059544
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0432
        "start_memory" => integer 8064200
        "stop_time" => float 1422275106.0432
        "stop_memory" => integer 8064768
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0444
        "start_memory" => integer 8185616
        "stop_time" => float 1422275106.0445
        "stop_memory" => integer 8186160
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0446
        "start_memory" => integer 8190832
        "stop_time" => float 1422275106.0447
        "stop_memory" => integer 8191400
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0506
        "start_memory" => integer 8230128
        "stop_time" => float 1422275106.0507
        "stop_memory" => integer 8230672
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0509
        "start_memory" => integer 8235328
        "stop_time" => float 1422275106.051
        "stop_memory" => integer 8235896
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0534
        "start_memory" => integer 8476816
        "stop_time" => float 1422275106.0535
        "stop_memory" => integer 8477392
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0536
        "start_memory" => integer 8482328
        "stop_time" => float 1422275106.0537
        "stop_memory" => integer 8482912
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0551
        "start_memory" => integer 8500936
        "stop_time" => float 1422275106.0552
        "stop_memory" => integer 8501512
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1422275106.0555
        "start_memory" => integer 8468208
        "stop_time" => float 1422275106.0556
        "stop_memory" => integer 8470320
    )
)

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