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 1406645167.9237
        "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 1406645167.9238
        "start_memory" => integer 1987008
        "stop_time" => float 1406645167.9239
        "stop_memory" => integer 1987600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.924
        "start_memory" => integer 1992552
        "stop_time" => float 1406645167.9241
        "stop_memory" => integer 1993144
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9252
        "start_memory" => integer 2118664
        "stop_time" => float 1406645167.9252
        "stop_memory" => integer 2119216
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9254
        "start_memory" => integer 2124136
        "stop_time" => float 1406645167.9255
        "stop_memory" => integer 2124720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9256
        "start_memory" => integer 2135808
        "stop_time" => float 1406645167.9257
        "stop_memory" => integer 2136352
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9258
        "start_memory" => integer 2141064
        "stop_time" => float 1406645167.9259
        "stop_memory" => integer 2141640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9262
        "start_memory" => integer 2150920
        "stop_time" => float 1406645167.9263
        "stop_memory" => integer 2151456
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9265
        "start_memory" => integer 2156128
        "stop_time" => float 1406645167.9266
        "stop_memory" => integer 2156760
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.928
        "start_memory" => integer 2317688
        "stop_time" => float 1406645167.9281
        "stop_memory" => integer 2318248
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9283
        "start_memory" => integer 2323096
        "stop_time" => float 1406645167.9284
        "stop_memory" => integer 2323672
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9287
        "start_memory" => integer 2337128
        "stop_time" => float 1406645167.9288
        "stop_memory" => integer 2337672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9289
        "start_memory" => integer 2342320
        "stop_time" => float 1406645167.9289
        "stop_memory" => integer 2342888
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9296
        "start_memory" => integer 2397720
        "stop_time" => float 1406645167.9297
        "stop_memory" => integer 2398312
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9298
        "start_memory" => integer 2399472
        "stop_time" => float 1406645167.9298
        "stop_memory" => integer 2400048
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9299
        "start_memory" => integer 2404920
        "stop_time" => float 1406645167.93
        "stop_memory" => integer 2405496
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9306
        "start_memory" => integer 2470936
        "stop_time" => float 1406645167.9307
        "stop_memory" => integer 2471552
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9307
        "start_memory" => integer 2472336
        "stop_time" => float 1406645167.9308
        "stop_memory" => integer 2472912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9364
        "start_memory" => integer 3141592
        "stop_time" => float 1406645167.9366
        "stop_memory" => integer 3142120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9369
        "start_memory" => integer 3147816
        "stop_time" => float 1406645167.937
        "stop_memory" => integer 3148384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9376
        "start_memory" => integer 3181104
        "stop_time" => float 1406645167.9377
        "stop_memory" => integer 3181648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9379
        "start_memory" => integer 3186288
        "stop_time" => float 1406645167.9379
        "stop_memory" => integer 3186856
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9393
        "start_memory" => integer 3349728
        "stop_time" => float 1406645167.9394
        "stop_memory" => integer 3350304
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9395
        "start_memory" => integer 3355184
        "stop_time" => float 1406645167.9396
        "stop_memory" => integer 3355768
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9398
        "start_memory" => integer 3358456
        "stop_time" => float 1406645167.9399
        "stop_memory" => integer 3359016
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9401
        "start_memory" => integer 3363888
        "stop_time" => float 1406645167.9402
        "stop_memory" => integer 3364472
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9407
        "start_memory" => integer 3414128
        "stop_time" => float 1406645167.9407
        "stop_memory" => integer 3414672
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9408
        "start_memory" => integer 3419344
        "stop_time" => float 1406645167.9409
        "stop_memory" => integer 3419920
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.942
        "start_memory" => integer 3517960
        "stop_time" => float 1406645167.9421
        "stop_memory" => integer 3518496
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9422
        "start_memory" => integer 3523136
        "stop_time" => float 1406645167.9423
        "stop_memory" => integer 3523704
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645167.9458
        "start_memory" => integer 3610296
        "stop_time" => float 1406645167.9459
        "stop_memory" => integer 3610888
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2396
        "start_memory" => integer 3653040
        "stop_time" => float 1406645168.2397
        "stop_memory" => integer 3653608
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2402
        "start_memory" => integer 3658272
        "stop_time" => float 1406645168.2403
        "stop_memory" => integer 3659104
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2435
        "start_memory" => integer 3699720
        "stop_time" => float 1406645168.2436
        "stop_memory" => integer 3700272
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.244
        "start_memory" => integer 3705104
        "stop_time" => float 1406645168.2442
        "stop_memory" => integer 3705680
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2464
        "start_memory" => integer 3729384
        "stop_time" => float 1406645168.2465
        "stop_memory" => integer 3729936
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.247
        "start_memory" => integer 3734616
        "stop_time" => float 1406645168.2471
        "stop_memory" => integer 3735192
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2526
        "start_memory" => integer 3802376
        "stop_time" => float 1406645168.2527
        "stop_memory" => integer 3802960
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2571
        "start_memory" => integer 3820952
        "stop_time" => float 1406645168.2572
        "stop_memory" => integer 3821512
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2579
        "start_memory" => integer 3826400
        "stop_time" => float 1406645168.2579
        "stop_memory" => integer 3826984
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2646
        "start_memory" => integer 3892088
        "stop_time" => float 1406645168.2648
        "stop_memory" => integer 3892664
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2697
        "start_memory" => integer 3912064
        "stop_time" => float 1406645168.2698
        "stop_memory" => integer 3912640
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2742
        "start_memory" => integer 3960688
        "stop_time" => float 1406645168.2742
        "stop_memory" => integer 3961264
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2752
        "start_memory" => integer 3971920
        "stop_time" => float 1406645168.2753
        "stop_memory" => integer 3972496
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2759
        "start_memory" => integer 3990504
        "stop_time" => float 1406645168.276
        "stop_memory" => integer 3991080
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2766
        "start_memory" => integer 4000744
        "stop_time" => float 1406645168.2766
        "stop_memory" => integer 4001320
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.278
        "start_memory" => integer 4021424
        "stop_time" => float 1406645168.278
        "stop_memory" => integer 4022008
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2791
        "start_memory" => integer 4042488
        "stop_time" => float 1406645168.2794
        "stop_memory" => integer 4043080
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2806
        "start_memory" => integer 4056304
        "stop_time" => float 1406645168.2806
        "stop_memory" => integer 4056872
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2823
        "start_memory" => integer 4069096
        "stop_time" => float 1406645168.2824
        "stop_memory" => integer 4069672
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2856
        "start_memory" => integer 4117952
        "stop_time" => float 1406645168.2857
        "stop_memory" => integer 4118512
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2872
        "start_memory" => integer 4156984
        "stop_time" => float 1406645168.2873
        "stop_memory" => integer 4157568
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.288
        "start_memory" => integer 4176968
        "stop_time" => float 1406645168.288
        "stop_memory" => integer 4177544
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2884
        "start_memory" => integer 4208704
        "stop_time" => float 1406645168.2885
        "stop_memory" => integer 4209280
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2892
        "start_memory" => integer 4227992
        "stop_time" => float 1406645168.2893
        "stop_memory" => integer 4228536
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.2896
        "start_memory" => integer 4233208
        "stop_time" => float 1406645168.2897
        "stop_memory" => integer 4233784
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3056
        "start_memory" => integer 4264648
        "stop_time" => float 1406645168.3057
        "stop_memory" => integer 4265184
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.306
        "start_memory" => integer 4269848
        "stop_time" => float 1406645168.3062
        "stop_memory" => integer 4270416
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3219
        "start_memory" => integer 4411984
        "stop_time" => float 1406645168.3221
        "stop_memory" => integer 4412560
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3378
        "start_memory" => integer 4465368
        "stop_time" => float 1406645168.338
        "stop_memory" => integer 4465920
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3445
        "start_memory" => integer 4470752
        "stop_time" => float 1406645168.3446
        "stop_memory" => integer 4471328
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3527
        "start_memory" => integer 4496792
        "stop_time" => float 1406645168.3528
        "stop_memory" => integer 4497376
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3532
        "start_memory" => integer 4502312
        "stop_time" => float 1406645168.3532
        "stop_memory" => integer 4502888
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.359
        "start_memory" => integer 4528496
        "stop_time" => float 1406645168.3591
        "stop_memory" => integer 4529056
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3601
        "start_memory" => integer 4533912
        "stop_time" => float 1406645168.3601
        "stop_memory" => integer 4534992
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3615
        "start_memory" => integer 4623696
        "stop_time" => float 1406645168.3615
        "stop_memory" => integer 4624296
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3684
        "start_memory" => integer 4631216
        "stop_time" => float 1406645168.3684
        "stop_memory" => integer 4631768
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.369
        "start_memory" => integer 4636648
        "stop_time" => float 1406645168.369
        "stop_memory" => integer 4637232
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3868
        "start_memory" => integer 4694104
        "stop_time" => float 1406645168.3869
        "stop_memory" => integer 4694664
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3883
        "start_memory" => integer 4699584
        "stop_time" => float 1406645168.3883
        "stop_memory" => integer 4700168
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3922
        "start_memory" => integer 4724040
        "stop_time" => float 1406645168.3924
        "stop_memory" => integer 4724616
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.3955
        "start_memory" => integer 4733696
        "stop_time" => float 1406645168.3956
        "stop_memory" => integer 4734256
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.396
        "start_memory" => integer 4739120
        "stop_time" => float 1406645168.396
        "stop_memory" => integer 4739704
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4026
        "start_memory" => integer 4819176
        "stop_time" => float 1406645168.4028
        "stop_memory" => integer 4819736
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4034
        "start_memory" => integer 4824616
        "stop_time" => float 1406645168.4035
        "stop_memory" => integer 4825200
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4107
        "start_memory" => integer 4850896
        "stop_time" => float 1406645168.4108
        "stop_memory" => integer 4851456
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4111
        "start_memory" => integer 4856320
        "stop_time" => float 1406645168.4112
        "stop_memory" => integer 4856904
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4126
        "start_memory" => integer 4878280
        "stop_time" => float 1406645168.4127
        "stop_memory" => integer 4878808
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4131
        "start_memory" => integer 4883456
        "stop_time" => float 1406645168.4132
        "stop_memory" => integer 4884024
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.416
        "start_memory" => integer 4894880
        "stop_time" => float 1406645168.4161
        "stop_memory" => integer 4895472
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4164
        "start_memory" => integer 4900360
        "stop_time" => float 1406645168.4164
        "stop_memory" => integer 4900936
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4209
        "start_memory" => integer 4945896
        "stop_time" => float 1406645168.4209
        "stop_memory" => integer 4946472
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.422
        "start_memory" => integer 4957616
        "stop_time" => float 1406645168.4221
        "stop_memory" => integer 4958160
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4224
        "start_memory" => integer 4964056
        "stop_time" => float 1406645168.4226
        "stop_memory" => integer 4964632
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4344
        "start_memory" => integer 4986104
        "stop_time" => float 1406645168.4345
        "stop_memory" => integer 4986688
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4402
        "start_memory" => integer 4992256
        "stop_time" => float 1406645168.4403
        "stop_memory" => integer 4992824
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4407
        "start_memory" => integer 4997672
        "stop_time" => float 1406645168.4408
        "stop_memory" => integer 4998256
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4561
        "start_memory" => integer 5131984
        "stop_time" => float 1406645168.4562
        "stop_memory" => integer 5132560
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.461
        "start_memory" => integer 5137512
        "stop_time" => float 1406645168.4615
        "stop_memory" => integer 5138104
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4694
        "start_memory" => integer 5152960
        "stop_time" => float 1406645168.4695
        "stop_memory" => integer 5153528
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4706
        "start_memory" => integer 5158488
        "stop_time" => float 1406645168.4706
        "stop_memory" => integer 5159080
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4801
        "start_memory" => integer 5165016
        "stop_time" => float 1406645168.4802
        "stop_memory" => integer 5165568
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4853
        "start_memory" => integer 5170440
        "stop_time" => float 1406645168.4854
        "stop_memory" => integer 5171016
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4882
        "start_memory" => integer 5315608
        "stop_time" => float 1406645168.4883
        "stop_memory" => integer 5316184
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4932
        "start_memory" => integer 5321144
        "stop_time" => float 1406645168.4933
        "stop_memory" => integer 5321736
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.4943
        "start_memory" => integer 5342416
        "stop_time" => float 1406645168.4944
        "stop_memory" => integer 5342984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.501
        "start_memory" => integer 5347872
        "stop_time" => float 1406645168.5011
        "stop_memory" => integer 5348448
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.504
        "start_memory" => integer 5410744
        "stop_time" => float 1406645168.5041
        "stop_memory" => integer 5411304
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5048
        "start_memory" => integer 5416176
        "stop_time" => float 1406645168.5051
        "stop_memory" => integer 5416760
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5072
        "start_memory" => integer 5482264
        "stop_time" => float 1406645168.5073
        "stop_memory" => integer 5482824
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5076
        "start_memory" => integer 5487688
        "stop_time" => float 1406645168.5077
        "stop_memory" => integer 5488272
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5094
        "start_memory" => integer 5530928
        "stop_time" => float 1406645168.5095
        "stop_memory" => integer 5531504
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5168
        "start_memory" => integer 5536472
        "stop_time" => float 1406645168.5169
        "stop_memory" => integer 5537064
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5259
        "start_memory" => integer 5595904
        "stop_time" => float 1406645168.526
        "stop_memory" => integer 5596488
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5333
        "start_memory" => integer 5601552
        "stop_time" => float 1406645168.5335
        "stop_memory" => integer 5602152
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5405
        "start_memory" => integer 5621824
        "stop_time" => float 1406645168.5406
        "stop_memory" => integer 5622400
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5491
        "start_memory" => integer 5627464
        "stop_time" => float 1406645168.5493
        "stop_memory" => integer 5628064
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5612
        "start_memory" => integer 5692544
        "stop_time" => float 1406645168.5613
        "stop_memory" => integer 5693120
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5619
        "start_memory" => integer 5698184
        "stop_time" => float 1406645168.562
        "stop_memory" => integer 5698784
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5639
        "start_memory" => integer 5747112
        "stop_time" => float 1406645168.5639
        "stop_memory" => integer 5747688
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5848
        "start_memory" => integer 5752744
        "stop_time" => float 1406645168.585
        "stop_memory" => integer 5753344
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5889
        "start_memory" => integer 5794648
        "stop_time" => float 1406645168.589
        "stop_memory" => integer 5795224
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5896
        "start_memory" => integer 5800288
        "stop_time" => float 1406645168.5899
        "stop_memory" => integer 5800888
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5945
        "start_memory" => integer 5913816
        "stop_time" => float 1406645168.5945
        "stop_memory" => integer 5914392
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.5971
        "start_memory" => integer 5919456
        "stop_time" => float 1406645168.5972
        "stop_memory" => integer 5920056
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6008
        "start_memory" => integer 5968712
        "stop_time" => float 1406645168.6008
        "stop_memory" => integer 5969272
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6014
        "start_memory" => integer 5974240
        "stop_time" => float 1406645168.6014
        "stop_memory" => integer 5974832
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6042
        "start_memory" => integer 5997952
        "stop_time" => float 1406645168.6044
        "stop_memory" => integer 5998472
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6049
        "start_memory" => integer 6003112
        "stop_time" => float 1406645168.605
        "stop_memory" => integer 6003680
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6077
        "start_memory" => integer 6121312
        "stop_time" => float 1406645168.6081
        "stop_memory" => integer 6121856
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6164
        "start_memory" => integer 6122912
        "stop_time" => float 1406645168.6165
        "stop_memory" => integer 6123480
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6207
        "start_memory" => integer 6128152
        "stop_time" => float 1406645168.6209
        "stop_memory" => integer 6128736
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6317
        "start_memory" => integer 6149056
        "stop_time" => float 1406645168.6318
        "stop_memory" => integer 6149592
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6327
        "start_memory" => integer 6154240
        "stop_time" => float 1406645168.6328
        "stop_memory" => integer 6154808
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6435
        "start_memory" => integer 6192256
        "stop_time" => float 1406645168.6436
        "stop_memory" => integer 6192800
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6444
        "start_memory" => integer 6197440
        "stop_time" => float 1406645168.6445
        "stop_memory" => integer 6198008
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6488
        "start_memory" => integer 6240440
        "stop_time" => float 1406645168.649
        "stop_memory" => integer 6240984
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6541
        "start_memory" => integer 6245624
        "stop_time" => float 1406645168.6542
        "stop_memory" => integer 6246192
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6575
        "start_memory" => integer 6290392
        "stop_time" => float 1406645168.6576
        "stop_memory" => integer 6291960
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.659
        "start_memory" => integer 6296600
        "stop_time" => float 1406645168.6592
        "stop_memory" => integer 6297168
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6616
        "start_memory" => integer 6372680
        "stop_time" => float 1406645168.6617
        "stop_memory" => integer 6373224
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6622
        "start_memory" => integer 6377888
        "stop_time" => float 1406645168.6622
        "stop_memory" => integer 6378456
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.668
        "start_memory" => integer 6400640
        "stop_time" => float 1406645168.6681
        "stop_memory" => integer 6401184
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6686
        "start_memory" => integer 6405824
        "stop_time" => float 1406645168.6687
        "stop_memory" => integer 6406392
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6717
        "start_memory" => integer 6435872
        "stop_time" => float 1406645168.6718
        "stop_memory" => integer 6436432
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6724
        "start_memory" => integer 6441280
        "stop_time" => float 1406645168.6726
        "stop_memory" => integer 6441856
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.674
        "start_memory" => integer 6462160
        "stop_time" => float 1406645168.6741
        "stop_memory" => integer 6462736
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6799
        "start_memory" => integer 6467672
        "stop_time" => float 1406645168.6801
        "stop_memory" => integer 6468256
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6826
        "start_memory" => integer 6483288
        "stop_time" => float 1406645168.6828
        "stop_memory" => integer 6483848
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6884
        "start_memory" => integer 6488784
        "stop_time" => float 1406645168.6885
        "stop_memory" => integer 6489368
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.6904
        "start_memory" => integer 6504416
        "stop_time" => float 1406645168.6905
        "stop_memory" => integer 6504976
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7004
        "start_memory" => integer 6509912
        "stop_time" => float 1406645168.7007
        "stop_memory" => integer 6510496
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7034
        "start_memory" => integer 6525544
        "stop_time" => float 1406645168.7035
        "stop_memory" => integer 6526104
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7043
        "start_memory" => integer 6531040
        "stop_time" => float 1406645168.7046
        "stop_memory" => integer 6531624
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7065
        "start_memory" => integer 6546648
        "stop_time" => float 1406645168.7066
        "stop_memory" => integer 6547208
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7077
        "start_memory" => integer 6552144
        "stop_time" => float 1406645168.7079
        "stop_memory" => integer 6552728
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7105
        "start_memory" => integer 6567752
        "stop_time" => float 1406645168.7118
        "stop_memory" => integer 6568312
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7173
        "start_memory" => integer 6573248
        "stop_time" => float 1406645168.7184
        "stop_memory" => integer 6573832
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.721
        "start_memory" => integer 6588888
        "stop_time" => float 1406645168.7211
        "stop_memory" => integer 6589448
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.724
        "start_memory" => integer 6594384
        "stop_time" => float 1406645168.7241
        "stop_memory" => integer 6594968
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7259
        "start_memory" => integer 6609992
        "stop_time" => float 1406645168.7261
        "stop_memory" => integer 6610552
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7272
        "start_memory" => integer 6615488
        "stop_time" => float 1406645168.7273
        "stop_memory" => integer 6616072
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7303
        "start_memory" => integer 6631208
        "stop_time" => float 1406645168.7304
        "stop_memory" => integer 6631768
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7307
        "start_memory" => integer 6636704
        "stop_time" => float 1406645168.7308
        "stop_memory" => integer 6637288
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.733
        "start_memory" => integer 6652320
        "stop_time" => float 1406645168.733
        "stop_memory" => integer 6652880
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7358
        "start_memory" => integer 6657816
        "stop_time" => float 1406645168.7368
        "stop_memory" => integer 6658400
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7391
        "start_memory" => integer 6673440
        "stop_time" => float 1406645168.7392
        "stop_memory" => integer 6674000
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.744
        "start_memory" => integer 6678936
        "stop_time" => float 1406645168.7441
        "stop_memory" => integer 6679520
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.746
        "start_memory" => integer 6694528
        "stop_time" => float 1406645168.7462
        "stop_memory" => integer 6695088
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7469
        "start_memory" => integer 6700024
        "stop_time" => float 1406645168.7471
        "stop_memory" => integer 6700608
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7492
        "start_memory" => integer 6715632
        "stop_time" => float 1406645168.7493
        "stop_memory" => integer 6716192
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7498
        "start_memory" => integer 6721128
        "stop_time" => float 1406645168.75
        "stop_memory" => integer 6721712
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7528
        "start_memory" => integer 6736760
        "stop_time" => float 1406645168.7529
        "stop_memory" => integer 6737320
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7533
        "start_memory" => integer 6742256
        "stop_time" => float 1406645168.7534
        "stop_memory" => integer 6742840
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7557
        "start_memory" => integer 6757896
        "stop_time" => float 1406645168.7558
        "stop_memory" => integer 6758456
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7565
        "start_memory" => integer 6763392
        "stop_time" => float 1406645168.7574
        "stop_memory" => integer 6763976
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7597
        "start_memory" => integer 6779024
        "stop_time" => float 1406645168.76
        "stop_memory" => integer 6779584
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7608
        "start_memory" => integer 6784520
        "stop_time" => float 1406645168.7609
        "stop_memory" => integer 6785104
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7629
        "start_memory" => integer 6800288
        "stop_time" => float 1406645168.763
        "stop_memory" => integer 6800848
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7633
        "start_memory" => integer 6805784
        "stop_time" => float 1406645168.7635
        "stop_memory" => integer 6806368
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7656
        "start_memory" => integer 6821440
        "stop_time" => float 1406645168.7657
        "stop_memory" => integer 6822000
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7661
        "start_memory" => integer 6826936
        "stop_time" => float 1406645168.7667
        "stop_memory" => integer 6827520
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7705
        "start_memory" => integer 6842576
        "stop_time" => float 1406645168.7707
        "stop_memory" => integer 6843136
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.771
        "start_memory" => integer 6848072
        "stop_time" => float 1406645168.7711
        "stop_memory" => integer 6848656
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7734
        "start_memory" => integer 6863704
        "stop_time" => float 1406645168.7736
        "stop_memory" => integer 6864264
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.774
        "start_memory" => integer 6869200
        "stop_time" => float 1406645168.7741
        "stop_memory" => integer 6869784
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7753
        "start_memory" => integer 6884808
        "stop_time" => float 1406645168.7753
        "stop_memory" => integer 6885368
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7758
        "start_memory" => integer 6890304
        "stop_time" => float 1406645168.7759
        "stop_memory" => integer 6890888
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7791
        "start_memory" => integer 6905912
        "stop_time" => float 1406645168.7793
        "stop_memory" => integer 6906472
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7796
        "start_memory" => integer 6911408
        "stop_time" => float 1406645168.7797
        "stop_memory" => integer 6911992
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7826
        "start_memory" => integer 6927048
        "stop_time" => float 1406645168.7828
        "stop_memory" => integer 6927608
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7831
        "start_memory" => integer 6932544
        "stop_time" => float 1406645168.7833
        "stop_memory" => integer 6933128
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7865
        "start_memory" => integer 6948168
        "stop_time" => float 1406645168.7866
        "stop_memory" => integer 6948728
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7871
        "start_memory" => integer 6953664
        "stop_time" => float 1406645168.7872
        "stop_memory" => integer 6954248
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7914
        "start_memory" => integer 6969512
        "stop_time" => float 1406645168.7915
        "stop_memory" => integer 6970072
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7916
        "start_memory" => integer 6974984
        "stop_time" => float 1406645168.7918
        "stop_memory" => integer 6975552
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7971
        "start_memory" => integer 7013584
        "stop_time" => float 1406645168.7971
        "stop_memory" => integer 7014136
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.7981
        "start_memory" => integer 7018808
        "stop_time" => float 1406645168.7982
        "stop_memory" => integer 7019384
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8069
        "start_memory" => integer 7150448
        "stop_time" => float 1406645168.807
        "stop_memory" => integer 7151000
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8075
        "start_memory" => integer 7155680
        "stop_time" => float 1406645168.8076
        "stop_memory" => integer 7156256
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.812
        "start_memory" => integer 7325384
        "stop_time" => float 1406645168.8121
        "stop_memory" => integer 7325936
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8127
        "start_memory" => integer 7330624
        "stop_time" => float 1406645168.8128
        "stop_memory" => integer 7331184
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8194
        "start_memory" => integer 7386848
        "stop_time" => float 1406645168.8195
        "stop_memory" => integer 7387424
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8203
        "start_memory" => integer 7392336
        "stop_time" => float 1406645168.8204
        "stop_memory" => integer 7392904
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8223
        "start_memory" => integer 7432944
        "stop_time" => float 1406645168.8224
        "stop_memory" => integer 7433520
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8233
        "start_memory" => integer 7438472
        "stop_time" => float 1406645168.8234
        "stop_memory" => integer 7439064
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8264
        "start_memory" => integer 7465008
        "stop_time" => float 1406645168.8265
        "stop_memory" => integer 7465576
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8271
        "start_memory" => integer 7470448
        "stop_time" => float 1406645168.8273
        "stop_memory" => integer 7471024
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8312
        "start_memory" => integer 7497080
        "stop_time" => float 1406645168.8313
        "stop_memory" => integer 7497656
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8404
        "start_memory" => integer 7508560
        "stop_time" => float 1406645168.8405
        "stop_memory" => integer 7509120
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8415
        "start_memory" => integer 7518992
        "stop_time" => float 1406645168.8417
        "stop_memory" => integer 7519560
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8442
        "start_memory" => integer 7530208
        "stop_time" => float 1406645168.8444
        "stop_memory" => integer 7530760
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8448
        "start_memory" => integer 7535496
        "stop_time" => float 1406645168.8449
        "stop_memory" => integer 7536072
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8459
        "start_memory" => integer 7541520
        "stop_time" => float 1406645168.846
        "stop_memory" => integer 7542072
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8463
        "start_memory" => integer 7546816
        "stop_time" => float 1406645168.8464
        "stop_memory" => integer 7547392
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8477
        "start_memory" => integer 7552840
        "stop_time" => float 1406645168.8478
        "stop_memory" => integer 7553392
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8481
        "start_memory" => integer 7558128
        "stop_time" => float 1406645168.8482
        "stop_memory" => integer 7558704
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8505
        "start_memory" => integer 7570712
        "stop_time" => float 1406645168.8506
        "stop_memory" => integer 7571248
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8561
        "start_memory" => integer 7575904
        "stop_time" => float 1406645168.8562
        "stop_memory" => integer 7576464
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8622
        "start_memory" => integer 7579528
        "stop_time" => float 1406645168.8623
        "stop_memory" => integer 7580104
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8633
        "start_memory" => integer 7589368
        "stop_time" => float 1406645168.8633
        "stop_memory" => integer 7589904
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8639
        "start_memory" => integer 7596624
        "stop_time" => float 1406645168.864
        "stop_memory" => integer 7597192
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8745
        "start_memory" => integer 7974568
        "stop_time" => float 1406645168.8746
        "stop_memory" => integer 7975144
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8771
        "start_memory" => integer 8049624
        "stop_time" => float 1406645168.8772
        "stop_memory" => integer 8050208
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8793
        "start_memory" => integer 8095440
        "stop_time" => float 1406645168.8794
        "stop_memory" => integer 8096000
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8797
        "start_memory" => integer 8100864
        "stop_time" => float 1406645168.8798
        "stop_memory" => integer 8101448
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8815
        "start_memory" => integer 8110408
        "stop_time" => float 1406645168.8817
        "stop_memory" => integer 8110952
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8832
        "start_memory" => integer 8142416
        "stop_time" => float 1406645168.8833
        "stop_memory" => integer 8142976
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8844
        "start_memory" => integer 8177408
        "stop_time" => float 1406645168.8845
        "stop_memory" => integer 8177984
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.887
        "start_memory" => integer 8210096
        "stop_time" => float 1406645168.8871
        "stop_memory" => integer 8210632
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8892
        "start_memory" => integer 8215288
        "stop_time" => float 1406645168.8893
        "stop_memory" => integer 8215856
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.896
        "start_memory" => integer 8257664
        "stop_time" => float 1406645168.8961
        "stop_memory" => integer 8258256
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.8972
        "start_memory" => integer 8263440
        "stop_time" => float 1406645168.8975
        "stop_memory" => integer 8264032
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.907
        "start_memory" => integer 8308136
        "stop_time" => float 1406645168.9072
        "stop_memory" => integer 8308688
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9076
        "start_memory" => integer 8313624
        "stop_time" => float 1406645168.9077
        "stop_memory" => integer 8314208
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9179
        "start_memory" => integer 8415896
        "stop_time" => float 1406645168.918
        "stop_memory" => integer 8416424
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9186
        "start_memory" => integer 8421080
        "stop_time" => float 1406645168.9189
        "stop_memory" => integer 8421648
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9207
        "start_memory" => integer 8436576
        "stop_time" => float 1406645168.9208
        "stop_memory" => integer 8437128
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9212
        "start_memory" => integer 8441776
        "stop_time" => float 1406645168.9213
        "stop_memory" => integer 8442344
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9261
        "start_memory" => integer 8508784
        "stop_time" => float 1406645168.9263
        "stop_memory" => integer 8509344
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9274
        "start_memory" => integer 8514200
        "stop_time" => float 1406645168.9276
        "stop_memory" => integer 8514776
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9305
        "start_memory" => integer 8538216
        "stop_time" => float 1406645168.9308
        "stop_memory" => integer 8538824
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9317
        "start_memory" => integer 8543744
        "stop_time" => float 1406645168.9318
        "stop_memory" => integer 8544336
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9435
        "start_memory" => integer 8615336
        "stop_time" => float 1406645168.9436
        "stop_memory" => integer 8615872
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9444
        "start_memory" => integer 8620744
        "stop_time" => float 1406645168.9445
        "stop_memory" => integer 8621296
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9459
        "start_memory" => integer 8649000
        "stop_time" => float 1406645168.946
        "stop_memory" => integer 8649536
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9463
        "start_memory" => integer 8654192
        "stop_time" => float 1406645168.9464
        "stop_memory" => integer 8654760
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9493
        "start_memory" => integer 8775984
        "stop_time" => float 1406645168.9494
        "stop_memory" => integer 8776528
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9501
        "start_memory" => integer 8781200
        "stop_time" => float 1406645168.9503
        "stop_memory" => integer 8781768
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9605
        "start_memory" => integer 8813152
        "stop_time" => float 1406645168.9608
        "stop_memory" => integer 8813696
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9615
        "start_memory" => integer 8818344
        "stop_time" => float 1406645168.9616
        "stop_memory" => integer 8818912
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9655
        "start_memory" => integer 8919200
        "stop_time" => float 1406645168.9656
        "stop_memory" => integer 8919760
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9754
        "start_memory" => integer 8924472
        "stop_time" => float 1406645168.9756
        "stop_memory" => integer 8925048
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9783
        "start_memory" => integer 9032792
        "stop_time" => float 1406645168.9784
        "stop_memory" => integer 9033360
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9802
        "start_memory" => integer 9038280
        "stop_time" => float 1406645168.9803
        "stop_memory" => integer 9038864
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9822
        "start_memory" => integer 9060056
        "stop_time" => float 1406645168.9823
        "stop_memory" => integer 9060632
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9829
        "start_memory" => integer 9025104
        "stop_time" => float 1406645168.9829
        "stop_memory" => integer 9027040
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9874
        "start_memory" => integer 9097760
        "stop_time" => float 1406645168.9876
        "stop_memory" => integer 9099488
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406645168.9876
        "start_memory" => integer 9099248
        "stop_time" => float 1406645168.9877
        "stop_memory" => integer 9100976
    )
)

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