Modules

Profiler
extends Kohana_Profiler

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

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

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

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1398284775.8198
        "start_memory" => integer 1984664
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8198
        "start_memory" => integer 1987008
        "stop_time" => float 1398284775.8199
        "stop_memory" => integer 1987600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.82
        "start_memory" => integer 1992552
        "stop_time" => float 1398284775.8202
        "stop_memory" => integer 1993144
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.821
        "start_memory" => integer 2118664
        "stop_time" => float 1398284775.8211
        "stop_memory" => integer 2119216
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8212
        "start_memory" => integer 2124136
        "stop_time" => float 1398284775.8213
        "stop_memory" => integer 2124720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8215
        "start_memory" => integer 2135808
        "stop_time" => float 1398284775.8216
        "stop_memory" => integer 2136352
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8217
        "start_memory" => integer 2141064
        "stop_time" => float 1398284775.8218
        "stop_memory" => integer 2141640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8221
        "start_memory" => integer 2150920
        "stop_time" => float 1398284775.8221
        "stop_memory" => integer 2151456
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8223
        "start_memory" => integer 2156128
        "stop_time" => float 1398284775.8223
        "stop_memory" => integer 2156760
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8235
        "start_memory" => integer 2317688
        "stop_time" => float 1398284775.8236
        "stop_memory" => integer 2318248
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8238
        "start_memory" => integer 2323096
        "stop_time" => float 1398284775.8238
        "stop_memory" => integer 2323672
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8241
        "start_memory" => integer 2337128
        "stop_time" => float 1398284775.8242
        "stop_memory" => integer 2337672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8243
        "start_memory" => integer 2342320
        "stop_time" => float 1398284775.8244
        "stop_memory" => integer 2342888
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8249
        "start_memory" => integer 2397720
        "stop_time" => float 1398284775.825
        "stop_memory" => integer 2398312
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.825
        "start_memory" => integer 2399472
        "stop_time" => float 1398284775.8251
        "stop_memory" => integer 2400048
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8252
        "start_memory" => integer 2404920
        "stop_time" => float 1398284775.8253
        "stop_memory" => integer 2405496
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8259
        "start_memory" => integer 2470936
        "stop_time" => float 1398284775.826
        "stop_memory" => integer 2471552
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.826
        "start_memory" => integer 2472336
        "stop_time" => float 1398284775.8261
        "stop_memory" => integer 2472912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8304
        "start_memory" => integer 3141592
        "stop_time" => float 1398284775.8305
        "stop_memory" => integer 3142120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8307
        "start_memory" => integer 3147816
        "stop_time" => float 1398284775.8307
        "stop_memory" => integer 3148384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8312
        "start_memory" => integer 3181104
        "stop_time" => float 1398284775.8313
        "stop_memory" => integer 3181648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8314
        "start_memory" => integer 3186288
        "stop_time" => float 1398284775.8315
        "stop_memory" => integer 3186856
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8327
        "start_memory" => integer 3349728
        "stop_time" => float 1398284775.8327
        "stop_memory" => integer 3350304
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8329
        "start_memory" => integer 3355184
        "stop_time" => float 1398284775.833
        "stop_memory" => integer 3355768
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8332
        "start_memory" => integer 3358456
        "stop_time" => float 1398284775.8333
        "stop_memory" => integer 3359016
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8334
        "start_memory" => integer 3363888
        "stop_time" => float 1398284775.8335
        "stop_memory" => integer 3364472
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.834
        "start_memory" => integer 3414128
        "stop_time" => float 1398284775.834
        "stop_memory" => integer 3414672
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8341
        "start_memory" => integer 3419344
        "stop_time" => float 1398284775.8342
        "stop_memory" => integer 3419920
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8351
        "start_memory" => integer 3517960
        "stop_time" => float 1398284775.8352
        "stop_memory" => integer 3518496
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8353
        "start_memory" => integer 3523136
        "stop_time" => float 1398284775.8353
        "stop_memory" => integer 3523704
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.8374
        "start_memory" => integer 3610296
        "stop_time" => float 1398284775.8375
        "stop_memory" => integer 3610888
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9646
        "start_memory" => integer 3653008
        "stop_time" => float 1398284775.9648
        "stop_memory" => integer 3653576
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9652
        "start_memory" => integer 3658240
        "stop_time" => float 1398284775.9653
        "stop_memory" => integer 3659072
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9674
        "start_memory" => integer 3699672
        "stop_time" => float 1398284775.9675
        "stop_memory" => integer 3700224
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9678
        "start_memory" => integer 3705056
        "stop_time" => float 1398284775.9678
        "stop_memory" => integer 3705632
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9695
        "start_memory" => integer 3729336
        "stop_time" => float 1398284775.9696
        "stop_memory" => integer 3729888
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9698
        "start_memory" => integer 3734568
        "stop_time" => float 1398284775.9699
        "stop_memory" => integer 3735144
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.971
        "start_memory" => integer 3802312
        "stop_time" => float 1398284775.971
        "stop_memory" => integer 3802896
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9712
        "start_memory" => integer 3820888
        "stop_time" => float 1398284775.9712
        "stop_memory" => integer 3821448
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9713
        "start_memory" => integer 3826312
        "stop_time" => float 1398284775.9713
        "stop_memory" => integer 3826896
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9721
        "start_memory" => integer 3892040
        "stop_time" => float 1398284775.9721
        "stop_memory" => integer 3892616
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9724
        "start_memory" => integer 3912024
        "stop_time" => float 1398284775.9724
        "stop_memory" => integer 3912600
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.973
        "start_memory" => integer 3960640
        "stop_time" => float 1398284775.973
        "stop_memory" => integer 3961216
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9732
        "start_memory" => integer 3971872
        "stop_time" => float 1398284775.9733
        "stop_memory" => integer 3972448
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9736
        "start_memory" => integer 3990456
        "stop_time" => float 1398284775.9737
        "stop_memory" => integer 3991032
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9739
        "start_memory" => integer 4000704
        "stop_time" => float 1398284775.9739
        "stop_memory" => integer 4001280
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9743
        "start_memory" => integer 4021384
        "stop_time" => float 1398284775.9743
        "stop_memory" => integer 4021960
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9746
        "start_memory" => integer 4042440
        "stop_time" => float 1398284775.9747
        "stop_memory" => integer 4043032
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.975
        "start_memory" => integer 4056256
        "stop_time" => float 1398284775.9751
        "stop_memory" => integer 4056824
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9754
        "start_memory" => integer 4069032
        "stop_time" => float 1398284775.9755
        "stop_memory" => integer 4069608
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9761
        "start_memory" => integer 4117880
        "stop_time" => float 1398284775.9762
        "stop_memory" => integer 4118440
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9767
        "start_memory" => integer 4156912
        "stop_time" => float 1398284775.9767
        "stop_memory" => integer 4157496
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9773
        "start_memory" => integer 4176896
        "stop_time" => float 1398284775.9774
        "stop_memory" => integer 4177472
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.978
        "start_memory" => integer 4208632
        "stop_time" => float 1398284775.978
        "stop_memory" => integer 4209208
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9785
        "start_memory" => integer 4227928
        "stop_time" => float 1398284775.9786
        "stop_memory" => integer 4228472
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9787
        "start_memory" => integer 4233144
        "stop_time" => float 1398284775.9787
        "stop_memory" => integer 4233720
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9791
        "start_memory" => integer 4264560
        "stop_time" => float 1398284775.9792
        "stop_memory" => integer 4265096
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9793
        "start_memory" => integer 4269760
        "stop_time" => float 1398284775.9794
        "stop_memory" => integer 4270328
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9835
        "start_memory" => integer 4411896
        "stop_time" => float 1398284775.9837
        "stop_memory" => integer 4412472
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9945
        "start_memory" => integer 4465256
        "stop_time" => float 1398284775.9946
        "stop_memory" => integer 4465808
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284775.9949
        "start_memory" => integer 4470640
        "stop_time" => float 1398284775.9949
        "stop_memory" => integer 4471216
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0004
        "start_memory" => integer 4496728
        "stop_time" => float 1398284776.0004
        "stop_memory" => integer 4497312
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0006
        "start_memory" => integer 4502264
        "stop_time" => float 1398284776.0008
        "stop_memory" => integer 4502840
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0063
        "start_memory" => integer 4528528
        "stop_time" => float 1398284776.0064
        "stop_memory" => integer 4529088
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0067
        "start_memory" => integer 4533944
        "stop_time" => float 1398284776.0068
        "stop_memory" => integer 4535024
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0075
        "start_memory" => integer 4623752
        "stop_time" => float 1398284776.0075
        "stop_memory" => integer 4624352
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0168
        "start_memory" => integer 4631272
        "stop_time" => float 1398284776.0169
        "stop_memory" => integer 4631824
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0171
        "start_memory" => integer 4636704
        "stop_time" => float 1398284776.0172
        "stop_memory" => integer 4637288
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0416
        "start_memory" => integer 4694224
        "stop_time" => float 1398284776.0417
        "stop_memory" => integer 4694784
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0419
        "start_memory" => integer 4699704
        "stop_time" => float 1398284776.042
        "stop_memory" => integer 4700288
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0424
        "start_memory" => integer 4724120
        "stop_time" => float 1398284776.0424
        "stop_memory" => integer 4724696
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0439
        "start_memory" => integer 4733784
        "stop_time" => float 1398284776.0439
        "stop_memory" => integer 4734344
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0441
        "start_memory" => integer 4739208
        "stop_time" => float 1398284776.0441
        "stop_memory" => integer 4739792
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0458
        "start_memory" => integer 4819280
        "stop_time" => float 1398284776.0459
        "stop_memory" => integer 4819840
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0461
        "start_memory" => integer 4824752
        "stop_time" => float 1398284776.0461
        "stop_memory" => integer 4825328
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0659
        "start_memory" => integer 4851024
        "stop_time" => float 1398284776.066
        "stop_memory" => integer 4851584
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0663
        "start_memory" => integer 4856448
        "stop_time" => float 1398284776.0663
        "stop_memory" => integer 4857032
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0678
        "start_memory" => integer 4878416
        "stop_time" => float 1398284776.0679
        "stop_memory" => integer 4878944
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0684
        "start_memory" => integer 4883592
        "stop_time" => float 1398284776.0685
        "stop_memory" => integer 4884160
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0713
        "start_memory" => integer 4895016
        "stop_time" => float 1398284776.0714
        "stop_memory" => integer 4895608
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0716
        "start_memory" => integer 4900496
        "stop_time" => float 1398284776.0717
        "stop_memory" => integer 4901072
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0783
        "start_memory" => integer 4946008
        "stop_time" => float 1398284776.0784
        "stop_memory" => integer 4946584
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0795
        "start_memory" => integer 4957720
        "stop_time" => float 1398284776.0796
        "stop_memory" => integer 4958264
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0798
        "start_memory" => integer 4964160
        "stop_time" => float 1398284776.0799
        "stop_memory" => integer 4964736
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0846
        "start_memory" => integer 4986192
        "stop_time" => float 1398284776.0846
        "stop_memory" => integer 4986760
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0873
        "start_memory" => integer 4992312
        "stop_time" => float 1398284776.0873
        "stop_memory" => integer 4992880
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0874
        "start_memory" => integer 4997728
        "stop_time" => float 1398284776.0875
        "stop_memory" => integer 4998312
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0908
        "start_memory" => integer 5132072
        "stop_time" => float 1398284776.0909
        "stop_memory" => integer 5132648
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0914
        "start_memory" => integer 5137600
        "stop_time" => float 1398284776.0914
        "stop_memory" => integer 5138192
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0922
        "start_memory" => integer 5153056
        "stop_time" => float 1398284776.0922
        "stop_memory" => integer 5153624
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0923
        "start_memory" => integer 5158584
        "stop_time" => float 1398284776.0924
        "stop_memory" => integer 5159176
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0945
        "start_memory" => integer 5165112
        "stop_time" => float 1398284776.0946
        "stop_memory" => integer 5165664
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0947
        "start_memory" => integer 5170528
        "stop_time" => float 1398284776.0948
        "stop_memory" => integer 5171112
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0964
        "start_memory" => integer 5315712
        "stop_time" => float 1398284776.0964
        "stop_memory" => integer 5316288
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0965
        "start_memory" => integer 5321248
        "stop_time" => float 1398284776.0965
        "stop_memory" => integer 5321840
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0968
        "start_memory" => integer 5342520
        "stop_time" => float 1398284776.0968
        "stop_memory" => integer 5343088
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0969
        "start_memory" => integer 5347976
        "stop_time" => float 1398284776.0969
        "stop_memory" => integer 5348552
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.0988
        "start_memory" => integer 5410856
        "stop_time" => float 1398284776.0989
        "stop_memory" => integer 5411416
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.099
        "start_memory" => integer 5416288
        "stop_time" => float 1398284776.0991
        "stop_memory" => integer 5416872
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1004
        "start_memory" => integer 5482376
        "stop_time" => float 1398284776.1004
        "stop_memory" => integer 5482936
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1005
        "start_memory" => integer 5487800
        "stop_time" => float 1398284776.1006
        "stop_memory" => integer 5488384
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1023
        "start_memory" => integer 5531040
        "stop_time" => float 1398284776.1024
        "stop_memory" => integer 5531616
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1025
        "start_memory" => integer 5536584
        "stop_time" => float 1398284776.1025
        "stop_memory" => integer 5537176
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1042
        "start_memory" => integer 5596016
        "stop_time" => float 1398284776.1043
        "stop_memory" => integer 5596600
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1044
        "start_memory" => integer 5601664
        "stop_time" => float 1398284776.1045
        "stop_memory" => integer 5602264
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1048
        "start_memory" => integer 5621936
        "stop_time" => float 1398284776.1049
        "stop_memory" => integer 5622512
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.105
        "start_memory" => integer 5627576
        "stop_time" => float 1398284776.1051
        "stop_memory" => integer 5628176
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1069
        "start_memory" => integer 5692616
        "stop_time" => float 1398284776.107
        "stop_memory" => integer 5693192
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1072
        "start_memory" => integer 5698256
        "stop_time" => float 1398284776.1072
        "stop_memory" => integer 5698856
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1088
        "start_memory" => integer 5747184
        "stop_time" => float 1398284776.1088
        "stop_memory" => integer 5747760
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.109
        "start_memory" => integer 5752816
        "stop_time" => float 1398284776.109
        "stop_memory" => integer 5753416
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1106
        "start_memory" => integer 5794720
        "stop_time" => float 1398284776.1106
        "stop_memory" => integer 5795296
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1108
        "start_memory" => integer 5800360
        "stop_time" => float 1398284776.1109
        "stop_memory" => integer 5800960
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.113
        "start_memory" => integer 5913888
        "stop_time" => float 1398284776.1131
        "stop_memory" => integer 5914464
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1132
        "start_memory" => integer 5919528
        "stop_time" => float 1398284776.1132
        "stop_memory" => integer 5920128
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1171
        "start_memory" => integer 5968760
        "stop_time" => float 1398284776.1172
        "stop_memory" => integer 5969320
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1174
        "start_memory" => integer 5974288
        "stop_time" => float 1398284776.1174
        "stop_memory" => integer 5974880
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.119
        "start_memory" => integer 5998008
        "stop_time" => float 1398284776.1191
        "stop_memory" => integer 5998528
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1193
        "start_memory" => integer 6003168
        "stop_time" => float 1398284776.1193
        "stop_memory" => integer 6003736
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1205
        "start_memory" => integer 6121384
        "stop_time" => float 1398284776.1205
        "stop_memory" => integer 6121928
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1216
        "start_memory" => integer 6122984
        "stop_time" => float 1398284776.1217
        "stop_memory" => integer 6123552
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1218
        "start_memory" => integer 6128224
        "stop_time" => float 1398284776.1219
        "stop_memory" => integer 6128808
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1307
        "start_memory" => integer 6149128
        "stop_time" => float 1398284776.1309
        "stop_memory" => integer 6149664
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1311
        "start_memory" => integer 6154312
        "stop_time" => float 1398284776.1312
        "stop_memory" => integer 6154880
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.136
        "start_memory" => integer 6192336
        "stop_time" => float 1398284776.1361
        "stop_memory" => integer 6192880
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1363
        "start_memory" => integer 6197520
        "stop_time" => float 1398284776.1363
        "stop_memory" => integer 6198088
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1375
        "start_memory" => integer 6240504
        "stop_time" => float 1398284776.1376
        "stop_memory" => integer 6241048
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1377
        "start_memory" => integer 6245704
        "stop_time" => float 1398284776.1378
        "stop_memory" => integer 6246272
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.139
        "start_memory" => integer 6290448
        "stop_time" => float 1398284776.1391
        "stop_memory" => integer 6292016
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1392
        "start_memory" => integer 6296656
        "stop_time" => float 1398284776.1393
        "stop_memory" => integer 6297224
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1413
        "start_memory" => integer 6372736
        "stop_time" => float 1398284776.1414
        "stop_memory" => integer 6373304
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1416
        "start_memory" => integer 6377960
        "stop_time" => float 1398284776.1418
        "stop_memory" => integer 6378528
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.146
        "start_memory" => integer 6400728
        "stop_time" => float 1398284776.1461
        "stop_memory" => integer 6401272
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1463
        "start_memory" => integer 6405912
        "stop_time" => float 1398284776.1465
        "stop_memory" => integer 6406480
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1493
        "start_memory" => integer 6435952
        "stop_time" => float 1398284776.1495
        "stop_memory" => integer 6436512
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1497
        "start_memory" => integer 6441360
        "stop_time" => float 1398284776.1498
        "stop_memory" => integer 6441936
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1512
        "start_memory" => integer 6462224
        "stop_time" => float 1398284776.1513
        "stop_memory" => integer 6462792
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1515
        "start_memory" => integer 6467728
        "stop_time" => float 1398284776.1517
        "stop_memory" => integer 6468312
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.153
        "start_memory" => integer 6483336
        "stop_time" => float 1398284776.1531
        "stop_memory" => integer 6483896
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1533
        "start_memory" => integer 6488832
        "stop_time" => float 1398284776.1534
        "stop_memory" => integer 6489416
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1548
        "start_memory" => integer 6504464
        "stop_time" => float 1398284776.1549
        "stop_memory" => integer 6505024
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1551
        "start_memory" => integer 6509960
        "stop_time" => float 1398284776.1552
        "stop_memory" => integer 6510544
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1566
        "start_memory" => integer 6525592
        "stop_time" => float 1398284776.1567
        "stop_memory" => integer 6526152
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1569
        "start_memory" => integer 6531088
        "stop_time" => float 1398284776.157
        "stop_memory" => integer 6531672
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1584
        "start_memory" => integer 6546696
        "stop_time" => float 1398284776.1586
        "stop_memory" => integer 6547256
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1589
        "start_memory" => integer 6552192
        "stop_time" => float 1398284776.159
        "stop_memory" => integer 6552776
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1608
        "start_memory" => integer 6567800
        "stop_time" => float 1398284776.1609
        "stop_memory" => integer 6568360
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1613
        "start_memory" => integer 6573296
        "stop_time" => float 1398284776.1614
        "stop_memory" => integer 6573880
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1628
        "start_memory" => integer 6588936
        "stop_time" => float 1398284776.1629
        "stop_memory" => integer 6589496
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1631
        "start_memory" => integer 6594432
        "stop_time" => float 1398284776.1632
        "stop_memory" => integer 6595016
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1649
        "start_memory" => integer 6610040
        "stop_time" => float 1398284776.165
        "stop_memory" => integer 6610600
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1653
        "start_memory" => integer 6615536
        "stop_time" => float 1398284776.1654
        "stop_memory" => integer 6616120
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1671
        "start_memory" => integer 6631256
        "stop_time" => float 1398284776.1673
        "stop_memory" => integer 6631816
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1675
        "start_memory" => integer 6636752
        "stop_time" => float 1398284776.1676
        "stop_memory" => integer 6637336
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1694
        "start_memory" => integer 6652368
        "stop_time" => float 1398284776.1695
        "stop_memory" => integer 6652928
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1698
        "start_memory" => integer 6657864
        "stop_time" => float 1398284776.1701
        "stop_memory" => integer 6658448
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1721
        "start_memory" => integer 6673488
        "stop_time" => float 1398284776.1723
        "stop_memory" => integer 6674048
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1725
        "start_memory" => integer 6678984
        "stop_time" => float 1398284776.1726
        "stop_memory" => integer 6679568
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1744
        "start_memory" => integer 6694576
        "stop_time" => float 1398284776.1745
        "stop_memory" => integer 6695136
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1748
        "start_memory" => integer 6700072
        "stop_time" => float 1398284776.1749
        "stop_memory" => integer 6700656
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1765
        "start_memory" => integer 6715680
        "stop_time" => float 1398284776.1767
        "stop_memory" => integer 6716240
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1769
        "start_memory" => integer 6721176
        "stop_time" => float 1398284776.177
        "stop_memory" => integer 6721760
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.179
        "start_memory" => integer 6736824
        "stop_time" => float 1398284776.1792
        "stop_memory" => integer 6737384
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1794
        "start_memory" => integer 6742320
        "stop_time" => float 1398284776.1795
        "stop_memory" => integer 6742904
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1808
        "start_memory" => integer 6757960
        "stop_time" => float 1398284776.181
        "stop_memory" => integer 6758520
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1811
        "start_memory" => integer 6763456
        "stop_time" => float 1398284776.1812
        "stop_memory" => integer 6764040
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1825
        "start_memory" => integer 6779096
        "stop_time" => float 1398284776.1826
        "stop_memory" => integer 6779656
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1827
        "start_memory" => integer 6784592
        "stop_time" => float 1398284776.1829
        "stop_memory" => integer 6785176
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1844
        "start_memory" => integer 6800352
        "stop_time" => float 1398284776.1845
        "stop_memory" => integer 6800912
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1847
        "start_memory" => integer 6805848
        "stop_time" => float 1398284776.1848
        "stop_memory" => integer 6806432
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.186
        "start_memory" => integer 6821488
        "stop_time" => float 1398284776.1861
        "stop_memory" => integer 6822048
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1862
        "start_memory" => integer 6826984
        "stop_time" => float 1398284776.1863
        "stop_memory" => integer 6827568
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1875
        "start_memory" => integer 6842624
        "stop_time" => float 1398284776.1875
        "stop_memory" => integer 6843184
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1879
        "start_memory" => integer 6848120
        "stop_time" => float 1398284776.188
        "stop_memory" => integer 6848704
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.19
        "start_memory" => integer 6863752
        "stop_time" => float 1398284776.1902
        "stop_memory" => integer 6864312
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1905
        "start_memory" => integer 6869248
        "stop_time" => float 1398284776.1907
        "stop_memory" => integer 6869832
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1923
        "start_memory" => integer 6884856
        "stop_time" => float 1398284776.1924
        "stop_memory" => integer 6885416
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1929
        "start_memory" => integer 6890352
        "stop_time" => float 1398284776.193
        "stop_memory" => integer 6890936
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1945
        "start_memory" => integer 6905960
        "stop_time" => float 1398284776.1948
        "stop_memory" => integer 6906520
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.195
        "start_memory" => integer 6911456
        "stop_time" => float 1398284776.1951
        "stop_memory" => integer 6912040
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1966
        "start_memory" => integer 6927096
        "stop_time" => float 1398284776.1967
        "stop_memory" => integer 6927656
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.197
        "start_memory" => integer 6932592
        "stop_time" => float 1398284776.1971
        "stop_memory" => integer 6933176
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1984
        "start_memory" => integer 6948216
        "stop_time" => float 1398284776.1984
        "stop_memory" => integer 6948776
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.1987
        "start_memory" => integer 6953712
        "stop_time" => float 1398284776.1988
        "stop_memory" => integer 6954296
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2014
        "start_memory" => integer 6969560
        "stop_time" => float 1398284776.2015
        "stop_memory" => integer 6970120
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2016
        "start_memory" => integer 6975032
        "stop_time" => float 1398284776.2017
        "stop_memory" => integer 6975600
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2065
        "start_memory" => integer 7013640
        "stop_time" => float 1398284776.2066
        "stop_memory" => integer 7014192
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2068
        "start_memory" => integer 7018864
        "stop_time" => float 1398284776.2069
        "stop_memory" => integer 7019440
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2094
        "start_memory" => integer 7150504
        "stop_time" => float 1398284776.2095
        "stop_memory" => integer 7151056
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2098
        "start_memory" => integer 7155736
        "stop_time" => float 1398284776.2099
        "stop_memory" => integer 7156312
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2127
        "start_memory" => integer 7325520
        "stop_time" => float 1398284776.2128
        "stop_memory" => integer 7326072
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.213
        "start_memory" => integer 7330760
        "stop_time" => float 1398284776.2131
        "stop_memory" => integer 7331320
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.217
        "start_memory" => integer 7386984
        "stop_time" => float 1398284776.2171
        "stop_memory" => integer 7387560
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2173
        "start_memory" => integer 7392472
        "stop_time" => float 1398284776.2174
        "stop_memory" => integer 7393040
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2187
        "start_memory" => integer 7433072
        "stop_time" => float 1398284776.2187
        "stop_memory" => integer 7433648
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2188
        "start_memory" => integer 7438600
        "stop_time" => float 1398284776.2189
        "stop_memory" => integer 7439192
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2206
        "start_memory" => integer 7465136
        "stop_time" => float 1398284776.2207
        "stop_memory" => integer 7465704
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2208
        "start_memory" => integer 7470576
        "stop_time" => float 1398284776.2209
        "stop_memory" => integer 7471152
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2239
        "start_memory" => integer 7497208
        "stop_time" => float 1398284776.224
        "stop_memory" => integer 7497784
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2296
        "start_memory" => integer 7508688
        "stop_time" => float 1398284776.2299
        "stop_memory" => integer 7509248
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2304
        "start_memory" => integer 7519112
        "stop_time" => float 1398284776.2304
        "stop_memory" => integer 7519680
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2324
        "start_memory" => integer 7530328
        "stop_time" => float 1398284776.2325
        "stop_memory" => integer 7530880
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2328
        "start_memory" => integer 7535592
        "stop_time" => float 1398284776.2329
        "stop_memory" => integer 7536168
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2339
        "start_memory" => integer 7541648
        "stop_time" => float 1398284776.234
        "stop_memory" => integer 7542200
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2342
        "start_memory" => integer 7546928
        "stop_time" => float 1398284776.2343
        "stop_memory" => integer 7547504
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2353
        "start_memory" => integer 7552952
        "stop_time" => float 1398284776.2353
        "stop_memory" => integer 7553504
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2354
        "start_memory" => integer 7558256
        "stop_time" => float 1398284776.2355
        "stop_memory" => integer 7558832
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2371
        "start_memory" => integer 7570840
        "stop_time" => float 1398284776.2372
        "stop_memory" => integer 7571376
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2373
        "start_memory" => integer 7576040
        "stop_time" => float 1398284776.2374
        "stop_memory" => integer 7576608
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2384
        "start_memory" => integer 7579656
        "stop_time" => float 1398284776.2385
        "stop_memory" => integer 7580232
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2386
        "start_memory" => integer 7589504
        "stop_time" => float 1398284776.2387
        "stop_memory" => integer 7590040
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.239
        "start_memory" => integer 7596760
        "stop_time" => float 1398284776.2391
        "stop_memory" => integer 7597328
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2437
        "start_memory" => integer 7974720
        "stop_time" => float 1398284776.2438
        "stop_memory" => integer 7975296
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.245
        "start_memory" => integer 8049776
        "stop_time" => float 1398284776.2451
        "stop_memory" => integer 8050360
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2459
        "start_memory" => integer 8095592
        "stop_time" => float 1398284776.246
        "stop_memory" => integer 8096152
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2461
        "start_memory" => integer 8101016
        "stop_time" => float 1398284776.2462
        "stop_memory" => integer 8101600
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2469
        "start_memory" => integer 8110560
        "stop_time" => float 1398284776.2469
        "stop_memory" => integer 8111104
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2474
        "start_memory" => integer 8142576
        "stop_time" => float 1398284776.2475
        "stop_memory" => integer 8143136
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2484
        "start_memory" => integer 8177544
        "stop_time" => float 1398284776.2485
        "stop_memory" => integer 8178120
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2493
        "start_memory" => integer 8210232
        "stop_time" => float 1398284776.2495
        "stop_memory" => integer 8210768
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2496
        "start_memory" => integer 8215424
        "stop_time" => float 1398284776.2496
        "stop_memory" => integer 8215992
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2526
        "start_memory" => integer 8257800
        "stop_time" => float 1398284776.2527
        "stop_memory" => integer 8258392
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2529
        "start_memory" => integer 8263576
        "stop_time" => float 1398284776.253
        "stop_memory" => integer 8264168
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2569
        "start_memory" => integer 8308272
        "stop_time" => float 1398284776.257
        "stop_memory" => integer 8308824
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2572
        "start_memory" => integer 8313760
        "stop_time" => float 1398284776.2573
        "stop_memory" => integer 8314344
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2626
        "start_memory" => integer 8416032
        "stop_time" => float 1398284776.2627
        "stop_memory" => integer 8416560
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2628
        "start_memory" => integer 8421216
        "stop_time" => float 1398284776.2629
        "stop_memory" => integer 8421784
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2636
        "start_memory" => integer 8436712
        "stop_time" => float 1398284776.2637
        "stop_memory" => integer 8437264
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2638
        "start_memory" => integer 8441912
        "stop_time" => float 1398284776.2639
        "stop_memory" => integer 8442480
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2651
        "start_memory" => integer 8508912
        "stop_time" => float 1398284776.2652
        "stop_memory" => integer 8509472
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2653
        "start_memory" => integer 8514328
        "stop_time" => float 1398284776.2654
        "stop_memory" => integer 8514904
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2664
        "start_memory" => integer 8538344
        "stop_time" => float 1398284776.2665
        "stop_memory" => integer 8538952
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2667
        "start_memory" => integer 8543872
        "stop_time" => float 1398284776.2668
        "stop_memory" => integer 8544464
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2683
        "start_memory" => integer 8615456
        "stop_time" => float 1398284776.2684
        "stop_memory" => integer 8615992
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2685
        "start_memory" => integer 8620864
        "stop_time" => float 1398284776.2685
        "stop_memory" => integer 8621416
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2691
        "start_memory" => integer 8649120
        "stop_time" => float 1398284776.2691
        "stop_memory" => integer 8649656
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2692
        "start_memory" => integer 8654312
        "stop_time" => float 1398284776.2693
        "stop_memory" => integer 8654880
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2703
        "start_memory" => integer 8776104
        "stop_time" => float 1398284776.2704
        "stop_memory" => integer 8776648
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2705
        "start_memory" => integer 8781320
        "stop_time" => float 1398284776.2705
        "stop_memory" => integer 8781888
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2751
        "start_memory" => integer 8813272
        "stop_time" => float 1398284776.2752
        "stop_memory" => integer 8813816
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2755
        "start_memory" => integer 8818464
        "stop_time" => float 1398284776.2755
        "stop_memory" => integer 8819032
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2764
        "start_memory" => integer 8919320
        "stop_time" => float 1398284776.2765
        "stop_memory" => integer 8919880
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2766
        "start_memory" => integer 8924592
        "stop_time" => float 1398284776.2766
        "stop_memory" => integer 8925168
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2776
        "start_memory" => integer 9032912
        "stop_time" => float 1398284776.2777
        "stop_memory" => integer 9033480
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2778
        "start_memory" => integer 9038400
        "stop_time" => float 1398284776.2779
        "stop_memory" => integer 9038984
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2789
        "start_memory" => integer 9060168
        "stop_time" => float 1398284776.279
        "stop_memory" => integer 9060744
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2793
        "start_memory" => integer 9025248
        "stop_time" => float 1398284776.2794
        "stop_memory" => integer 9027184
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2801
        "start_memory" => integer 9097904
        "stop_time" => float 1398284776.2802
        "stop_memory" => integer 9099632
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398284776.2802
        "start_memory" => integer 9099392
        "stop_time" => float 1398284776.2803
        "stop_memory" => integer 9101120
    )
)

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