Modules

Kohana_Profiler

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

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

Class declared in SYSPATH/classes/kohana/profiler.php on line 14.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1398337157.2773
        "start_memory" => integer 1985056
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2773
        "start_memory" => integer 1987392
        "stop_time" => float 1398337157.2774
        "stop_memory" => integer 1987984
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2775
        "start_memory" => integer 1992936
        "stop_time" => float 1398337157.2776
        "stop_memory" => integer 1993528
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2782
        "start_memory" => integer 2119048
        "stop_time" => float 1398337157.2783
        "stop_memory" => integer 2119600
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2785
        "start_memory" => integer 2124536
        "stop_time" => float 1398337157.2785
        "stop_memory" => integer 2125120
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2787
        "start_memory" => integer 2136208
        "stop_time" => float 1398337157.2788
        "stop_memory" => integer 2136752
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2789
        "start_memory" => integer 2141464
        "stop_time" => float 1398337157.2789
        "stop_memory" => integer 2142040
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2791
        "start_memory" => integer 2151296
        "stop_time" => float 1398337157.2792
        "stop_memory" => integer 2151832
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2793
        "start_memory" => integer 2156512
        "stop_time" => float 1398337157.2793
        "stop_memory" => integer 2157144
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2802
        "start_memory" => integer 2318080
        "stop_time" => float 1398337157.2802
        "stop_memory" => integer 2318640
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2803
        "start_memory" => integer 2323488
        "stop_time" => float 1398337157.2805
        "stop_memory" => integer 2324064
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2807
        "start_memory" => integer 2337512
        "stop_time" => float 1398337157.2807
        "stop_memory" => integer 2338056
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2808
        "start_memory" => integer 2342704
        "stop_time" => float 1398337157.2809
        "stop_memory" => integer 2343272
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2812
        "start_memory" => integer 2398056
        "stop_time" => float 1398337157.2812
        "stop_memory" => integer 2398648
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2812
        "start_memory" => integer 2399808
        "stop_time" => float 1398337157.2813
        "stop_memory" => integer 2400384
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2814
        "start_memory" => integer 2405264
        "stop_time" => float 1398337157.2815
        "stop_memory" => integer 2405840
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2819
        "start_memory" => integer 2471304
        "stop_time" => float 1398337157.2819
        "stop_memory" => integer 2471920
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2819
        "start_memory" => integer 2472704
        "stop_time" => float 1398337157.282
        "stop_memory" => integer 2473280
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2855
        "start_memory" => integer 3141928
        "stop_time" => float 1398337157.2857
        "stop_memory" => integer 3142480
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2858
        "start_memory" => integer 3148128
        "stop_time" => float 1398337157.2859
        "stop_memory" => integer 3148696
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2862
        "start_memory" => integer 3181440
        "stop_time" => float 1398337157.2863
        "stop_memory" => integer 3181984
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2864
        "start_memory" => integer 3186624
        "stop_time" => float 1398337157.2867
        "stop_memory" => integer 3187192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2875
        "start_memory" => integer 3350032
        "stop_time" => float 1398337157.2876
        "stop_memory" => integer 3350608
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2877
        "start_memory" => integer 3355488
        "stop_time" => float 1398337157.2877
        "stop_memory" => integer 3356072
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2879
        "start_memory" => integer 3358760
        "stop_time" => float 1398337157.288
        "stop_memory" => integer 3359320
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2881
        "start_memory" => integer 3364192
        "stop_time" => float 1398337157.2881
        "stop_memory" => integer 3364776
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2886
        "start_memory" => integer 3414432
        "stop_time" => float 1398337157.2887
        "stop_memory" => integer 3414976
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2888
        "start_memory" => integer 3419648
        "stop_time" => float 1398337157.2888
        "stop_memory" => integer 3420224
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2894
        "start_memory" => integer 3517816
        "stop_time" => float 1398337157.2894
        "stop_memory" => integer 3518352
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2896
        "start_memory" => integer 3522992
        "stop_time" => float 1398337157.2896
        "stop_memory" => integer 3523560
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.2921
        "start_memory" => integer 3610624
        "stop_time" => float 1398337157.2922
        "stop_memory" => integer 3611216
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3876
        "start_memory" => integer 3653384
        "stop_time" => float 1398337157.3876
        "stop_memory" => integer 3653952
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3878
        "start_memory" => integer 3658616
        "stop_time" => float 1398337157.3878
        "stop_memory" => integer 3659448
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3886
        "start_memory" => integer 3700048
        "stop_time" => float 1398337157.3886
        "stop_memory" => integer 3700600
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3887
        "start_memory" => integer 3705432
        "stop_time" => float 1398337157.3888
        "stop_memory" => integer 3706008
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3895
        "start_memory" => integer 3729704
        "stop_time" => float 1398337157.3895
        "stop_memory" => integer 3730256
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3896
        "start_memory" => integer 3734960
        "stop_time" => float 1398337157.3896
        "stop_memory" => integer 3735536
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3905
        "start_memory" => integer 3802696
        "stop_time" => float 1398337157.3905
        "stop_memory" => integer 3803280
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3906
        "start_memory" => integer 3821272
        "stop_time" => float 1398337157.3907
        "stop_memory" => integer 3821832
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3908
        "start_memory" => integer 3826696
        "stop_time" => float 1398337157.3909
        "stop_memory" => integer 3827280
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3915
        "start_memory" => integer 3892408
        "stop_time" => float 1398337157.3915
        "stop_memory" => integer 3892984
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3917
        "start_memory" => integer 3912392
        "stop_time" => float 1398337157.3918
        "stop_memory" => integer 3912968
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3922
        "start_memory" => integer 3961008
        "stop_time" => float 1398337157.3923
        "stop_memory" => integer 3961584
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3925
        "start_memory" => integer 3972240
        "stop_time" => float 1398337157.3926
        "stop_memory" => integer 3972816
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3929
        "start_memory" => integer 3990824
        "stop_time" => float 1398337157.3929
        "stop_memory" => integer 3991400
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3933
        "start_memory" => integer 4001072
        "stop_time" => float 1398337157.3934
        "stop_memory" => integer 4001648
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3937
        "start_memory" => integer 4021752
        "stop_time" => float 1398337157.3938
        "stop_memory" => integer 4022328
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3941
        "start_memory" => integer 4042832
        "stop_time" => float 1398337157.3944
        "stop_memory" => integer 4043424
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3946
        "start_memory" => integer 4056648
        "stop_time" => float 1398337157.3947
        "stop_memory" => integer 4057216
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3951
        "start_memory" => integer 4069424
        "stop_time" => float 1398337157.3951
        "stop_memory" => integer 4070000
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3956
        "start_memory" => integer 4118304
        "stop_time" => float 1398337157.3957
        "stop_memory" => integer 4118864
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3963
        "start_memory" => integer 4157336
        "stop_time" => float 1398337157.3963
        "stop_memory" => integer 4157920
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3966
        "start_memory" => integer 4177320
        "stop_time" => float 1398337157.3967
        "stop_memory" => integer 4177896
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.397
        "start_memory" => integer 4209056
        "stop_time" => float 1398337157.397
        "stop_memory" => integer 4209632
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3975
        "start_memory" => integer 4228344
        "stop_time" => float 1398337157.3975
        "stop_memory" => integer 4228888
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3976
        "start_memory" => integer 4233560
        "stop_time" => float 1398337157.3976
        "stop_memory" => integer 4234136
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.398
        "start_memory" => integer 4265000
        "stop_time" => float 1398337157.398
        "stop_memory" => integer 4265536
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.3982
        "start_memory" => integer 4270200
        "stop_time" => float 1398337157.3983
        "stop_memory" => integer 4270768
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4014
        "start_memory" => integer 4412336
        "stop_time" => float 1398337157.4015
        "stop_memory" => integer 4412912
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.411
        "start_memory" => integer 4465704
        "stop_time" => float 1398337157.4111
        "stop_memory" => integer 4466256
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4112
        "start_memory" => integer 4471088
        "stop_time" => float 1398337157.4113
        "stop_memory" => integer 4471664
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4166
        "start_memory" => integer 4497176
        "stop_time" => float 1398337157.4167
        "stop_memory" => integer 4497760
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4168
        "start_memory" => integer 4502696
        "stop_time" => float 1398337157.4169
        "stop_memory" => integer 4503272
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4242
        "start_memory" => integer 4528920
        "stop_time" => float 1398337157.4243
        "stop_memory" => integer 4529480
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4245
        "start_memory" => integer 4534336
        "stop_time" => float 1398337157.4245
        "stop_memory" => integer 4535416
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4254
        "start_memory" => integer 4624144
        "stop_time" => float 1398337157.4255
        "stop_memory" => integer 4624744
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4339
        "start_memory" => integer 4631672
        "stop_time" => float 1398337157.4339
        "stop_memory" => integer 4632224
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4341
        "start_memory" => integer 4637104
        "stop_time" => float 1398337157.4341
        "stop_memory" => integer 4637688
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4531
        "start_memory" => integer 4694608
        "stop_time" => float 1398337157.4532
        "stop_memory" => integer 4695168
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4534
        "start_memory" => integer 4700088
        "stop_time" => float 1398337157.4534
        "stop_memory" => integer 4700672
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4535
        "start_memory" => integer 4724512
        "stop_time" => float 1398337157.4536
        "stop_memory" => integer 4725088
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4542
        "start_memory" => integer 4734192
        "stop_time" => float 1398337157.4542
        "stop_memory" => integer 4734752
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4544
        "start_memory" => integer 4739616
        "stop_time" => float 1398337157.4544
        "stop_memory" => integer 4740200
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4556
        "start_memory" => integer 4819680
        "stop_time" => float 1398337157.4556
        "stop_memory" => integer 4820240
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4557
        "start_memory" => integer 4825120
        "stop_time" => float 1398337157.4558
        "stop_memory" => integer 4825704
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.462
        "start_memory" => integer 4851416
        "stop_time" => float 1398337157.4621
        "stop_memory" => integer 4851976
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4623
        "start_memory" => integer 4856840
        "stop_time" => float 1398337157.4623
        "stop_memory" => integer 4857424
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4632
        "start_memory" => integer 4878792
        "stop_time" => float 1398337157.4635
        "stop_memory" => integer 4879320
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4637
        "start_memory" => integer 4883968
        "stop_time" => float 1398337157.4638
        "stop_memory" => integer 4884544
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4657
        "start_memory" => integer 4895400
        "stop_time" => float 1398337157.4658
        "stop_memory" => integer 4895992
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.466
        "start_memory" => integer 4900880
        "stop_time" => float 1398337157.466
        "stop_memory" => integer 4901456
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4703
        "start_memory" => integer 4946432
        "stop_time" => float 1398337157.4704
        "stop_memory" => integer 4947008
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4711
        "start_memory" => integer 4958144
        "stop_time" => float 1398337157.4711
        "stop_memory" => integer 4958688
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4712
        "start_memory" => integer 4964584
        "stop_time" => float 1398337157.4714
        "stop_memory" => integer 4965160
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4755
        "start_memory" => integer 4986616
        "stop_time" => float 1398337157.4756
        "stop_memory" => integer 4987184
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4773
        "start_memory" => integer 4992752
        "stop_time" => float 1398337157.4774
        "stop_memory" => integer 4993320
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4775
        "start_memory" => integer 4998168
        "stop_time" => float 1398337157.4775
        "stop_memory" => integer 4998752
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4801
        "start_memory" => integer 5132480
        "stop_time" => float 1398337157.4802
        "stop_memory" => integer 5133056
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4804
        "start_memory" => integer 5138008
        "stop_time" => float 1398337157.4805
        "stop_memory" => integer 5138600
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4811
        "start_memory" => integer 5153448
        "stop_time" => float 1398337157.4812
        "stop_memory" => integer 5154016
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4813
        "start_memory" => integer 5158976
        "stop_time" => float 1398337157.4813
        "stop_memory" => integer 5159568
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4829
        "start_memory" => integer 5165504
        "stop_time" => float 1398337157.483
        "stop_memory" => integer 5166056
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4831
        "start_memory" => integer 5170928
        "stop_time" => float 1398337157.4831
        "stop_memory" => integer 5171504
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4846
        "start_memory" => integer 5316112
        "stop_time" => float 1398337157.4846
        "stop_memory" => integer 5316688
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4847
        "start_memory" => integer 5321648
        "stop_time" => float 1398337157.4847
        "stop_memory" => integer 5322240
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4849
        "start_memory" => integer 5342920
        "stop_time" => float 1398337157.485
        "stop_memory" => integer 5343488
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4851
        "start_memory" => integer 5348376
        "stop_time" => float 1398337157.4852
        "stop_memory" => integer 5348952
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4863
        "start_memory" => integer 5411264
        "stop_time" => float 1398337157.4864
        "stop_memory" => integer 5411824
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4865
        "start_memory" => integer 5416696
        "stop_time" => float 1398337157.4866
        "stop_memory" => integer 5417280
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4875
        "start_memory" => integer 5482784
        "stop_time" => float 1398337157.4876
        "stop_memory" => integer 5483344
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4877
        "start_memory" => integer 5488208
        "stop_time" => float 1398337157.4877
        "stop_memory" => integer 5488792
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4888
        "start_memory" => integer 5531448
        "stop_time" => float 1398337157.4888
        "stop_memory" => integer 5532024
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4889
        "start_memory" => integer 5536992
        "stop_time" => float 1398337157.489
        "stop_memory" => integer 5537584
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.49
        "start_memory" => integer 5596424
        "stop_time" => float 1398337157.4901
        "stop_memory" => integer 5597008
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4902
        "start_memory" => integer 5602072
        "stop_time" => float 1398337157.4903
        "stop_memory" => integer 5602672
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4904
        "start_memory" => integer 5622344
        "stop_time" => float 1398337157.4905
        "stop_memory" => integer 5622920
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4906
        "start_memory" => integer 5627984
        "stop_time" => float 1398337157.4907
        "stop_memory" => integer 5628584
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4929
        "start_memory" => integer 5693032
        "stop_time" => float 1398337157.493
        "stop_memory" => integer 5693608
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4931
        "start_memory" => integer 5698672
        "stop_time" => float 1398337157.4932
        "stop_memory" => integer 5699272
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.495
        "start_memory" => integer 5747600
        "stop_time" => float 1398337157.4951
        "stop_memory" => integer 5748176
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4952
        "start_memory" => integer 5753232
        "stop_time" => float 1398337157.4953
        "stop_memory" => integer 5753832
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4966
        "start_memory" => integer 5795136
        "stop_time" => float 1398337157.4968
        "stop_memory" => integer 5795712
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.497
        "start_memory" => integer 5800776
        "stop_time" => float 1398337157.497
        "stop_memory" => integer 5801376
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.4988
        "start_memory" => integer 5914304
        "stop_time" => float 1398337157.4989
        "stop_memory" => integer 5914880
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.499
        "start_memory" => integer 5919944
        "stop_time" => float 1398337157.499
        "stop_memory" => integer 5920544
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5017
        "start_memory" => integer 5969224
        "stop_time" => float 1398337157.5018
        "stop_memory" => integer 5969784
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5019
        "start_memory" => integer 5974752
        "stop_time" => float 1398337157.502
        "stop_memory" => integer 5975344
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5032
        "start_memory" => integer 5998456
        "stop_time" => float 1398337157.5032
        "stop_memory" => integer 5998976
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5033
        "start_memory" => integer 6003616
        "stop_time" => float 1398337157.5034
        "stop_memory" => integer 6004184
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5045
        "start_memory" => integer 6121832
        "stop_time" => float 1398337157.5046
        "stop_memory" => integer 6122376
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5053
        "start_memory" => integer 6123432
        "stop_time" => float 1398337157.5054
        "stop_memory" => integer 6124000
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5054
        "start_memory" => integer 6128672
        "stop_time" => float 1398337157.5055
        "stop_memory" => integer 6129256
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5121
        "start_memory" => integer 6149576
        "stop_time" => float 1398337157.5123
        "stop_memory" => integer 6150112
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5124
        "start_memory" => integer 6154760
        "stop_time" => float 1398337157.5126
        "stop_memory" => integer 6155328
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5158
        "start_memory" => integer 6192832
        "stop_time" => float 1398337157.5159
        "stop_memory" => integer 6193376
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.516
        "start_memory" => integer 6198016
        "stop_time" => float 1398337157.516
        "stop_memory" => integer 6198584
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5168
        "start_memory" => integer 6241032
        "stop_time" => float 1398337157.5169
        "stop_memory" => integer 6241576
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.517
        "start_memory" => integer 6246216
        "stop_time" => float 1398337157.5171
        "stop_memory" => integer 6246784
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5179
        "start_memory" => integer 6290976
        "stop_time" => float 1398337157.518
        "stop_memory" => integer 6292544
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5181
        "start_memory" => integer 6297192
        "stop_time" => float 1398337157.5182
        "stop_memory" => integer 6297760
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5196
        "start_memory" => integer 6373288
        "stop_time" => float 1398337157.5197
        "stop_memory" => integer 6373832
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5199
        "start_memory" => integer 6378496
        "stop_time" => float 1398337157.52
        "stop_memory" => integer 6379064
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5248
        "start_memory" => integer 6401256
        "stop_time" => float 1398337157.525
        "stop_memory" => integer 6401800
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5252
        "start_memory" => integer 6406440
        "stop_time" => float 1398337157.5254
        "stop_memory" => integer 6407008
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5282
        "start_memory" => integer 6436488
        "stop_time" => float 1398337157.5284
        "stop_memory" => integer 6437048
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5286
        "start_memory" => integer 6441896
        "stop_time" => float 1398337157.5287
        "stop_memory" => integer 6442472
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.53
        "start_memory" => integer 6462776
        "stop_time" => float 1398337157.5302
        "stop_memory" => integer 6463344
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5304
        "start_memory" => integer 6468280
        "stop_time" => float 1398337157.5305
        "stop_memory" => integer 6468864
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5319
        "start_memory" => integer 6483888
        "stop_time" => float 1398337157.5321
        "stop_memory" => integer 6484448
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5323
        "start_memory" => integer 6489384
        "stop_time" => float 1398337157.5325
        "stop_memory" => integer 6489968
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.534
        "start_memory" => integer 6505008
        "stop_time" => float 1398337157.5341
        "stop_memory" => integer 6505568
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5342
        "start_memory" => integer 6510504
        "stop_time" => float 1398337157.5344
        "stop_memory" => integer 6511088
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5359
        "start_memory" => integer 6526136
        "stop_time" => float 1398337157.536
        "stop_memory" => integer 6526696
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5362
        "start_memory" => integer 6531632
        "stop_time" => float 1398337157.5364
        "stop_memory" => integer 6532216
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5378
        "start_memory" => integer 6547240
        "stop_time" => float 1398337157.5379
        "stop_memory" => integer 6547800
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5381
        "start_memory" => integer 6552736
        "stop_time" => float 1398337157.5381
        "stop_memory" => integer 6553320
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5392
        "start_memory" => integer 6568344
        "stop_time" => float 1398337157.5392
        "stop_memory" => integer 6568904
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5394
        "start_memory" => integer 6573840
        "stop_time" => float 1398337157.5395
        "stop_memory" => integer 6574424
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5408
        "start_memory" => integer 6589480
        "stop_time" => float 1398337157.541
        "stop_memory" => integer 6590040
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5411
        "start_memory" => integer 6594976
        "stop_time" => float 1398337157.5412
        "stop_memory" => integer 6595560
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5429
        "start_memory" => integer 6610584
        "stop_time" => float 1398337157.5432
        "stop_memory" => integer 6611144
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5435
        "start_memory" => integer 6616080
        "stop_time" => float 1398337157.5435
        "stop_memory" => integer 6616664
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5452
        "start_memory" => integer 6631800
        "stop_time" => float 1398337157.5453
        "stop_memory" => integer 6632360
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5455
        "start_memory" => integer 6637296
        "stop_time" => float 1398337157.5456
        "stop_memory" => integer 6637880
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.547
        "start_memory" => integer 6652912
        "stop_time" => float 1398337157.5471
        "stop_memory" => integer 6653472
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5474
        "start_memory" => integer 6658408
        "stop_time" => float 1398337157.5475
        "stop_memory" => integer 6658992
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5488
        "start_memory" => integer 6674032
        "stop_time" => float 1398337157.549
        "stop_memory" => integer 6674592
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5491
        "start_memory" => integer 6679528
        "stop_time" => float 1398337157.5492
        "stop_memory" => integer 6680112
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5505
        "start_memory" => integer 6695120
        "stop_time" => float 1398337157.5507
        "stop_memory" => integer 6695680
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5508
        "start_memory" => integer 6700616
        "stop_time" => float 1398337157.5509
        "stop_memory" => integer 6701200
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5525
        "start_memory" => integer 6716224
        "stop_time" => float 1398337157.5526
        "stop_memory" => integer 6716784
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5528
        "start_memory" => integer 6721720
        "stop_time" => float 1398337157.553
        "stop_memory" => integer 6722304
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5546
        "start_memory" => integer 6737360
        "stop_time" => float 1398337157.5547
        "stop_memory" => integer 6737920
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5549
        "start_memory" => integer 6742856
        "stop_time" => float 1398337157.555
        "stop_memory" => integer 6743440
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5565
        "start_memory" => integer 6758496
        "stop_time" => float 1398337157.5566
        "stop_memory" => integer 6759056
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5568
        "start_memory" => integer 6763992
        "stop_time" => float 1398337157.5568
        "stop_memory" => integer 6764576
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5581
        "start_memory" => integer 6779624
        "stop_time" => float 1398337157.5582
        "stop_memory" => integer 6780184
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5585
        "start_memory" => integer 6785120
        "stop_time" => float 1398337157.5586
        "stop_memory" => integer 6785704
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5602
        "start_memory" => integer 6800888
        "stop_time" => float 1398337157.5604
        "stop_memory" => integer 6801448
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5607
        "start_memory" => integer 6806384
        "stop_time" => float 1398337157.5608
        "stop_memory" => integer 6806968
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5628
        "start_memory" => integer 6822040
        "stop_time" => float 1398337157.5629
        "stop_memory" => integer 6822600
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5631
        "start_memory" => integer 6827536
        "stop_time" => float 1398337157.5634
        "stop_memory" => integer 6828120
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.565
        "start_memory" => integer 6843176
        "stop_time" => float 1398337157.5651
        "stop_memory" => integer 6843736
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5654
        "start_memory" => integer 6848672
        "stop_time" => float 1398337157.5654
        "stop_memory" => integer 6849256
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5663
        "start_memory" => integer 6864304
        "stop_time" => float 1398337157.5664
        "stop_memory" => integer 6864864
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5666
        "start_memory" => integer 6869800
        "stop_time" => float 1398337157.5667
        "stop_memory" => integer 6870384
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5682
        "start_memory" => integer 6885408
        "stop_time" => float 1398337157.5684
        "stop_memory" => integer 6885968
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5686
        "start_memory" => integer 6890904
        "stop_time" => float 1398337157.5687
        "stop_memory" => integer 6891488
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5704
        "start_memory" => integer 6906512
        "stop_time" => float 1398337157.5705
        "stop_memory" => integer 6907072
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5708
        "start_memory" => integer 6912008
        "stop_time" => float 1398337157.5709
        "stop_memory" => integer 6912592
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5721
        "start_memory" => integer 6927648
        "stop_time" => float 1398337157.5722
        "stop_memory" => integer 6928208
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5723
        "start_memory" => integer 6933144
        "stop_time" => float 1398337157.5724
        "stop_memory" => integer 6933728
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5741
        "start_memory" => integer 6948768
        "stop_time" => float 1398337157.5742
        "stop_memory" => integer 6949328
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5744
        "start_memory" => integer 6954264
        "stop_time" => float 1398337157.5744
        "stop_memory" => integer 6954848
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.577
        "start_memory" => integer 6970112
        "stop_time" => float 1398337157.5772
        "stop_memory" => integer 6970672
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5775
        "start_memory" => integer 6975584
        "stop_time" => float 1398337157.5776
        "stop_memory" => integer 6976152
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5851
        "start_memory" => integer 7014184
        "stop_time" => float 1398337157.5852
        "stop_memory" => integer 7014736
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5858
        "start_memory" => integer 7019408
        "stop_time" => float 1398337157.5859
        "stop_memory" => integer 7019984
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5895
        "start_memory" => integer 7151048
        "stop_time" => float 1398337157.5896
        "stop_memory" => integer 7151600
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5899
        "start_memory" => integer 7156280
        "stop_time" => float 1398337157.59
        "stop_memory" => integer 7156856
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5934
        "start_memory" => integer 7326000
        "stop_time" => float 1398337157.5936
        "stop_memory" => integer 7326552
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.5939
        "start_memory" => integer 7331240
        "stop_time" => float 1398337157.594
        "stop_memory" => integer 7331800
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6019
        "start_memory" => integer 7387464
        "stop_time" => float 1398337157.6021
        "stop_memory" => integer 7388040
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6025
        "start_memory" => integer 7392928
        "stop_time" => float 1398337157.6027
        "stop_memory" => integer 7393496
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6051
        "start_memory" => integer 7433560
        "stop_time" => float 1398337157.6054
        "stop_memory" => integer 7434136
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6056
        "start_memory" => integer 7439088
        "stop_time" => float 1398337157.6059
        "stop_memory" => integer 7439680
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.61
        "start_memory" => integer 7465640
        "stop_time" => float 1398337157.6104
        "stop_memory" => integer 7466208
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6107
        "start_memory" => integer 7471080
        "stop_time" => float 1398337157.6108
        "stop_memory" => integer 7471656
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6155
        "start_memory" => integer 7497720
        "stop_time" => float 1398337157.6155
        "stop_memory" => integer 7498296
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6225
        "start_memory" => integer 7509200
        "stop_time" => float 1398337157.6227
        "stop_memory" => integer 7509760
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6231
        "start_memory" => integer 7519624
        "stop_time" => float 1398337157.6232
        "stop_memory" => integer 7520192
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.626
        "start_memory" => integer 7530792
        "stop_time" => float 1398337157.6261
        "stop_memory" => integer 7531344
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6264
        "start_memory" => integer 7536056
        "stop_time" => float 1398337157.6265
        "stop_memory" => integer 7536632
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6277
        "start_memory" => integer 7542112
        "stop_time" => float 1398337157.6278
        "stop_memory" => integer 7542664
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.628
        "start_memory" => integer 7547392
        "stop_time" => float 1398337157.6281
        "stop_memory" => integer 7547968
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6294
        "start_memory" => integer 7553416
        "stop_time" => float 1398337157.6295
        "stop_memory" => integer 7553968
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6297
        "start_memory" => integer 7558720
        "stop_time" => float 1398337157.6299
        "stop_memory" => integer 7559296
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6319
        "start_memory" => integer 7571304
        "stop_time" => float 1398337157.6321
        "stop_memory" => integer 7571840
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6322
        "start_memory" => integer 7576504
        "stop_time" => float 1398337157.6323
        "stop_memory" => integer 7577072
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6335
        "start_memory" => integer 7580120
        "stop_time" => float 1398337157.6337
        "stop_memory" => integer 7580696
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6339
        "start_memory" => integer 7589968
        "stop_time" => float 1398337157.634
        "stop_memory" => integer 7590504
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6342
        "start_memory" => integer 7597224
        "stop_time" => float 1398337157.6343
        "stop_memory" => integer 7597792
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6381
        "start_memory" => integer 7975208
        "stop_time" => float 1398337157.6383
        "stop_memory" => integer 7975784
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6399
        "start_memory" => integer 8050272
        "stop_time" => float 1398337157.6401
        "stop_memory" => integer 8050856
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6412
        "start_memory" => integer 8096096
        "stop_time" => float 1398337157.6413
        "stop_memory" => integer 8096656
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6415
        "start_memory" => integer 8101520
        "stop_time" => float 1398337157.6415
        "stop_memory" => integer 8102104
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6429
        "start_memory" => integer 8111080
        "stop_time" => float 1398337157.643
        "stop_memory" => integer 8111624
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6439
        "start_memory" => integer 8143064
        "stop_time" => float 1398337157.644
        "stop_memory" => integer 8143624
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6452
        "start_memory" => integer 8178032
        "stop_time" => float 1398337157.6453
        "stop_memory" => integer 8178608
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6461
        "start_memory" => integer 8210720
        "stop_time" => float 1398337157.6463
        "stop_memory" => integer 8211256
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6465
        "start_memory" => integer 8215912
        "stop_time" => float 1398337157.6467
        "stop_memory" => integer 8216480
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6504
        "start_memory" => integer 8258288
        "stop_time" => float 1398337157.6505
        "stop_memory" => integer 8258880
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6508
        "start_memory" => integer 8264064
        "stop_time" => float 1398337157.6509
        "stop_memory" => integer 8264656
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.655
        "start_memory" => integer 8308752
        "stop_time" => float 1398337157.6551
        "stop_memory" => integer 8309304
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6554
        "start_memory" => integer 8314240
        "stop_time" => float 1398337157.6555
        "stop_memory" => integer 8314824
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.662
        "start_memory" => integer 8416512
        "stop_time" => float 1398337157.6622
        "stop_memory" => integer 8417040
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6624
        "start_memory" => integer 8421696
        "stop_time" => float 1398337157.6624
        "stop_memory" => integer 8422264
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6638
        "start_memory" => integer 8437192
        "stop_time" => float 1398337157.6638
        "stop_memory" => integer 8437744
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.664
        "start_memory" => integer 8442392
        "stop_time" => float 1398337157.6641
        "stop_memory" => integer 8442960
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6654
        "start_memory" => integer 8509392
        "stop_time" => float 1398337157.6656
        "stop_memory" => integer 8509952
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6659
        "start_memory" => integer 8514808
        "stop_time" => float 1398337157.666
        "stop_memory" => integer 8515384
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6679
        "start_memory" => integer 8538824
        "stop_time" => float 1398337157.668
        "stop_memory" => integer 8539432
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6684
        "start_memory" => integer 8544352
        "stop_time" => float 1398337157.6686
        "stop_memory" => integer 8544944
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6713
        "start_memory" => integer 8615912
        "stop_time" => float 1398337157.6714
        "stop_memory" => integer 8616448
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6718
        "start_memory" => integer 8621320
        "stop_time" => float 1398337157.6719
        "stop_memory" => integer 8621872
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.673
        "start_memory" => integer 8649576
        "stop_time" => float 1398337157.673
        "stop_memory" => integer 8650112
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6732
        "start_memory" => integer 8654768
        "stop_time" => float 1398337157.6732
        "stop_memory" => integer 8655336
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6753
        "start_memory" => integer 8776560
        "stop_time" => float 1398337157.6756
        "stop_memory" => integer 8777104
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6759
        "start_memory" => integer 8781776
        "stop_time" => float 1398337157.676
        "stop_memory" => integer 8782344
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6855
        "start_memory" => integer 8813728
        "stop_time" => float 1398337157.6856
        "stop_memory" => integer 8814272
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6858
        "start_memory" => integer 8818920
        "stop_time" => float 1398337157.6859
        "stop_memory" => integer 8819488
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6879
        "start_memory" => integer 8919776
        "stop_time" => float 1398337157.6881
        "stop_memory" => integer 8920336
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6883
        "start_memory" => integer 8925048
        "stop_time" => float 1398337157.6885
        "stop_memory" => integer 8925624
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6903
        "start_memory" => integer 9033408
        "stop_time" => float 1398337157.6904
        "stop_memory" => integer 9033976
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6906
        "start_memory" => integer 9038896
        "stop_time" => float 1398337157.6908
        "stop_memory" => integer 9039480
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6927
        "start_memory" => integer 9060664
        "stop_time" => float 1398337157.6929
        "stop_memory" => integer 9061240
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6936
        "start_memory" => integer 9025696
        "stop_time" => float 1398337157.6937
        "stop_memory" => integer 9027632
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6955
        "start_memory" => integer 9098352
        "stop_time" => float 1398337157.6956
        "stop_memory" => integer 9100080
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398337157.6957
        "start_memory" => integer 9099840
        "stop_time" => float 1398337157.6958
        "stop_memory" => integer 9101568
    )
)

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