Modules

Kohana_Profiler

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

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

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

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1419298393.4623
        "start_memory" => integer 1989128
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4623
        "start_memory" => integer 1991464
        "stop_time" => float 1419298393.4624
        "stop_memory" => integer 1992056
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4628
        "start_memory" => integer 1997008
        "stop_time" => float 1419298393.4628
        "stop_memory" => integer 1997600
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4638
        "start_memory" => integer 2123120
        "stop_time" => float 1419298393.4638
        "stop_memory" => integer 2123672
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4641
        "start_memory" => integer 2128608
        "stop_time" => float 1419298393.4641
        "stop_memory" => integer 2129192
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4644
        "start_memory" => integer 2140280
        "stop_time" => float 1419298393.4645
        "stop_memory" => integer 2140824
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4647
        "start_memory" => integer 2145536
        "stop_time" => float 1419298393.4648
        "stop_memory" => integer 2146112
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4652
        "start_memory" => integer 2155392
        "stop_time" => float 1419298393.4653
        "stop_memory" => integer 2155928
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4655
        "start_memory" => integer 2160592
        "stop_time" => float 1419298393.4656
        "stop_memory" => integer 2161224
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.467
        "start_memory" => integer 2321976
        "stop_time" => float 1419298393.4672
        "stop_memory" => integer 2322536
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4675
        "start_memory" => integer 2327384
        "stop_time" => float 1419298393.4676
        "stop_memory" => integer 2327960
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.468
        "start_memory" => integer 2341432
        "stop_time" => float 1419298393.4681
        "stop_memory" => integer 2341984
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4685
        "start_memory" => integer 2346616
        "stop_time" => float 1419298393.4686
        "stop_memory" => integer 2347184
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4697
        "start_memory" => integer 2401992
        "stop_time" => float 1419298393.4698
        "stop_memory" => integer 2402584
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4699
        "start_memory" => integer 2403744
        "stop_time" => float 1419298393.4699
        "stop_memory" => integer 2404320
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4702
        "start_memory" => integer 2409192
        "stop_time" => float 1419298393.4703
        "stop_memory" => integer 2409768
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4728
        "start_memory" => integer 2475232
        "stop_time" => float 1419298393.4729
        "stop_memory" => integer 2475848
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4729
        "start_memory" => integer 2476632
        "stop_time" => float 1419298393.4729
        "stop_memory" => integer 2477208
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4807
        "start_memory" => integer 3145928
        "stop_time" => float 1419298393.4808
        "stop_memory" => integer 3146456
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4812
        "start_memory" => integer 3152152
        "stop_time" => float 1419298393.4813
        "stop_memory" => integer 3152720
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4823
        "start_memory" => integer 3185472
        "stop_time" => float 1419298393.4823
        "stop_memory" => integer 3186016
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4827
        "start_memory" => integer 3190656
        "stop_time" => float 1419298393.4827
        "stop_memory" => integer 3191224
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4845
        "start_memory" => integer 3352888
        "stop_time" => float 1419298393.4845
        "stop_memory" => integer 3353464
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4848
        "start_memory" => integer 3358344
        "stop_time" => float 1419298393.485
        "stop_memory" => integer 3358928
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4854
        "start_memory" => integer 3361616
        "stop_time" => float 1419298393.4854
        "stop_memory" => integer 3362176
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.486
        "start_memory" => integer 3367048
        "stop_time" => float 1419298393.4861
        "stop_memory" => integer 3367632
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4869
        "start_memory" => integer 3417304
        "stop_time" => float 1419298393.487
        "stop_memory" => integer 3417848
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4873
        "start_memory" => integer 3422520
        "stop_time" => float 1419298393.4873
        "stop_memory" => integer 3423096
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4883
        "start_memory" => integer 3520688
        "stop_time" => float 1419298393.4884
        "stop_memory" => integer 3521224
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4888
        "start_memory" => integer 3525864
        "stop_time" => float 1419298393.4889
        "stop_memory" => integer 3526432
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.4916
        "start_memory" => integer 3611520
        "stop_time" => float 1419298393.4916
        "stop_memory" => integer 3612112
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5932
        "start_memory" => integer 3654248
        "stop_time" => float 1419298393.5933
        "stop_memory" => integer 3654816
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5936
        "start_memory" => integer 3659480
        "stop_time" => float 1419298393.5936
        "stop_memory" => integer 3660312
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5945
        "start_memory" => integer 3700928
        "stop_time" => float 1419298393.5945
        "stop_memory" => integer 3701480
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5949
        "start_memory" => integer 3706312
        "stop_time" => float 1419298393.595
        "stop_memory" => integer 3706888
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5964
        "start_memory" => integer 3730600
        "stop_time" => float 1419298393.5965
        "stop_memory" => integer 3731152
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5968
        "start_memory" => integer 3735832
        "stop_time" => float 1419298393.5968
        "stop_memory" => integer 3736408
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5982
        "start_memory" => integer 3803576
        "stop_time" => float 1419298393.5982
        "stop_memory" => integer 3804160
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5985
        "start_memory" => integer 3822152
        "stop_time" => float 1419298393.5987
        "stop_memory" => integer 3822712
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5989
        "start_memory" => integer 3827576
        "stop_time" => float 1419298393.5989
        "stop_memory" => integer 3828160
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.5997
        "start_memory" => integer 3893288
        "stop_time" => float 1419298393.5998
        "stop_memory" => integer 3893864
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6002
        "start_memory" => integer 3913288
        "stop_time" => float 1419298393.6002
        "stop_memory" => integer 3913864
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6012
        "start_memory" => integer 3961912
        "stop_time" => float 1419298393.6013
        "stop_memory" => integer 3962488
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6018
        "start_memory" => integer 3973144
        "stop_time" => float 1419298393.6018
        "stop_memory" => integer 3973720
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6022
        "start_memory" => integer 3991736
        "stop_time" => float 1419298393.6022
        "stop_memory" => integer 3992312
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6027
        "start_memory" => integer 4002008
        "stop_time" => float 1419298393.6027
        "stop_memory" => integer 4002584
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6033
        "start_memory" => integer 4022688
        "stop_time" => float 1419298393.6033
        "stop_memory" => integer 4023264
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6046
        "start_memory" => integer 4043768
        "stop_time" => float 1419298393.6046
        "stop_memory" => integer 4044360
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6053
        "start_memory" => integer 4057584
        "stop_time" => float 1419298393.6053
        "stop_memory" => integer 4058152
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.606
        "start_memory" => integer 4070360
        "stop_time" => float 1419298393.6061
        "stop_memory" => integer 4070936
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6068
        "start_memory" => integer 4119200
        "stop_time" => float 1419298393.6068
        "stop_memory" => integer 4119760
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6073
        "start_memory" => integer 4158232
        "stop_time" => float 1419298393.6073
        "stop_memory" => integer 4158816
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6077
        "start_memory" => integer 4178216
        "stop_time" => float 1419298393.6078
        "stop_memory" => integer 4178792
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6084
        "start_memory" => integer 4209952
        "stop_time" => float 1419298393.6084
        "stop_memory" => integer 4210528
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6089
        "start_memory" => integer 4229240
        "stop_time" => float 1419298393.6089
        "stop_memory" => integer 4229784
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6092
        "start_memory" => integer 4234456
        "stop_time" => float 1419298393.6093
        "stop_memory" => integer 4235032
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6097
        "start_memory" => integer 4265880
        "stop_time" => float 1419298393.6098
        "stop_memory" => integer 4266416
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.61
        "start_memory" => integer 4271080
        "stop_time" => float 1419298393.6101
        "stop_memory" => integer 4271648
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6128
        "start_memory" => integer 4413224
        "stop_time" => float 1419298393.6129
        "stop_memory" => integer 4413800
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6212
        "start_memory" => integer 4466592
        "stop_time" => float 1419298393.6213
        "stop_memory" => integer 4467144
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6216
        "start_memory" => integer 4471976
        "stop_time" => float 1419298393.6216
        "stop_memory" => integer 4472552
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6264
        "start_memory" => integer 4498016
        "stop_time" => float 1419298393.6264
        "stop_memory" => integer 4498600
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6267
        "start_memory" => integer 4503536
        "stop_time" => float 1419298393.6267
        "stop_memory" => integer 4504112
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6313
        "start_memory" => integer 4529744
        "stop_time" => float 1419298393.6314
        "stop_memory" => integer 4530304
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6316
        "start_memory" => integer 4535160
        "stop_time" => float 1419298393.6316
        "stop_memory" => integer 4536240
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6323
        "start_memory" => integer 4624968
        "stop_time" => float 1419298393.6324
        "stop_memory" => integer 4625568
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6374
        "start_memory" => integer 4632488
        "stop_time" => float 1419298393.6375
        "stop_memory" => integer 4633040
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6378
        "start_memory" => integer 4637920
        "stop_time" => float 1419298393.6378
        "stop_memory" => integer 4638504
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6551
        "start_memory" => integer 4695448
        "stop_time" => float 1419298393.6551
        "stop_memory" => integer 4696008
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6556
        "start_memory" => integer 4700928
        "stop_time" => float 1419298393.6556
        "stop_memory" => integer 4701512
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.656
        "start_memory" => integer 4725320
        "stop_time" => float 1419298393.656
        "stop_memory" => integer 4725896
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.657
        "start_memory" => integer 4735008
        "stop_time" => float 1419298393.657
        "stop_memory" => integer 4735568
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6573
        "start_memory" => integer 4740432
        "stop_time" => float 1419298393.6573
        "stop_memory" => integer 4741016
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6586
        "start_memory" => integer 4820464
        "stop_time" => float 1419298393.6586
        "stop_memory" => integer 4821024
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6588
        "start_memory" => integer 4825928
        "stop_time" => float 1419298393.6588
        "stop_memory" => integer 4826512
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.664
        "start_memory" => integer 4852192
        "stop_time" => float 1419298393.6641
        "stop_memory" => integer 4852752
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6643
        "start_memory" => integer 4857616
        "stop_time" => float 1419298393.6644
        "stop_memory" => integer 4858200
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6653
        "start_memory" => integer 4879624
        "stop_time" => float 1419298393.6653
        "stop_memory" => integer 4880152
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6656
        "start_memory" => integer 4884800
        "stop_time" => float 1419298393.6657
        "stop_memory" => integer 4885368
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6675
        "start_memory" => integer 4896224
        "stop_time" => float 1419298393.6676
        "stop_memory" => integer 4896816
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6678
        "start_memory" => integer 4901704
        "stop_time" => float 1419298393.6678
        "stop_memory" => integer 4902280
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6715
        "start_memory" => integer 4947232
        "stop_time" => float 1419298393.6716
        "stop_memory" => integer 4947808
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6723
        "start_memory" => integer 4958944
        "stop_time" => float 1419298393.6723
        "stop_memory" => integer 4959488
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6726
        "start_memory" => integer 4964344
        "stop_time" => float 1419298393.6727
        "stop_memory" => integer 4964920
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6766
        "start_memory" => integer 4987440
        "stop_time" => float 1419298393.6766
        "stop_memory" => integer 4988024
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.679
        "start_memory" => integer 4993592
        "stop_time" => float 1419298393.6791
        "stop_memory" => integer 4994160
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6793
        "start_memory" => integer 4999008
        "stop_time" => float 1419298393.6794
        "stop_memory" => integer 4999592
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6824
        "start_memory" => integer 5133320
        "stop_time" => float 1419298393.6824
        "stop_memory" => integer 5133896
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6828
        "start_memory" => integer 5138848
        "stop_time" => float 1419298393.6828
        "stop_memory" => integer 5139440
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6837
        "start_memory" => integer 5154288
        "stop_time" => float 1419298393.6837
        "stop_memory" => integer 5154856
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.684
        "start_memory" => integer 5159816
        "stop_time" => float 1419298393.6841
        "stop_memory" => integer 5160408
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.686
        "start_memory" => integer 5166344
        "stop_time" => float 1419298393.686
        "stop_memory" => integer 5166896
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6863
        "start_memory" => integer 5171768
        "stop_time" => float 1419298393.6863
        "stop_memory" => integer 5172344
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.688
        "start_memory" => integer 5316952
        "stop_time" => float 1419298393.6881
        "stop_memory" => integer 5317528
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6883
        "start_memory" => integer 5322488
        "stop_time" => float 1419298393.6883
        "stop_memory" => integer 5323080
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6887
        "start_memory" => integer 5343760
        "stop_time" => float 1419298393.6888
        "stop_memory" => integer 5344328
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.689
        "start_memory" => integer 5349216
        "stop_time" => float 1419298393.689
        "stop_memory" => integer 5349792
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6906
        "start_memory" => integer 5412136
        "stop_time" => float 1419298393.6907
        "stop_memory" => integer 5412696
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.691
        "start_memory" => integer 5417568
        "stop_time" => float 1419298393.691
        "stop_memory" => integer 5418152
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6923
        "start_memory" => integer 5483656
        "stop_time" => float 1419298393.6923
        "stop_memory" => integer 5484216
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6925
        "start_memory" => integer 5489080
        "stop_time" => float 1419298393.6927
        "stop_memory" => integer 5489664
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.694
        "start_memory" => integer 5532320
        "stop_time" => float 1419298393.694
        "stop_memory" => integer 5532896
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6942
        "start_memory" => integer 5537864
        "stop_time" => float 1419298393.6943
        "stop_memory" => integer 5538456
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6957
        "start_memory" => integer 5597296
        "stop_time" => float 1419298393.6958
        "stop_memory" => integer 5597880
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6961
        "start_memory" => integer 5602944
        "stop_time" => float 1419298393.6962
        "stop_memory" => integer 5603544
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6966
        "start_memory" => integer 5623216
        "stop_time" => float 1419298393.6967
        "stop_memory" => integer 5623792
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6969
        "start_memory" => integer 5628856
        "stop_time" => float 1419298393.6969
        "stop_memory" => integer 5629456
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6983
        "start_memory" => integer 5693912
        "stop_time" => float 1419298393.6984
        "stop_memory" => integer 5694488
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.6986
        "start_memory" => integer 5699552
        "stop_time" => float 1419298393.6987
        "stop_memory" => integer 5700152
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7
        "start_memory" => integer 5748480
        "stop_time" => float 1419298393.7001
        "stop_memory" => integer 5749056
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7004
        "start_memory" => integer 5754112
        "stop_time" => float 1419298393.7004
        "stop_memory" => integer 5754712
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7016
        "start_memory" => integer 5796016
        "stop_time" => float 1419298393.7016
        "stop_memory" => integer 5796592
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7019
        "start_memory" => integer 5801656
        "stop_time" => float 1419298393.7019
        "stop_memory" => integer 5802256
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7033
        "start_memory" => integer 5915184
        "stop_time" => float 1419298393.7033
        "stop_memory" => integer 5915760
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7035
        "start_memory" => integer 5920824
        "stop_time" => float 1419298393.7036
        "stop_memory" => integer 5921424
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7059
        "start_memory" => integer 5970088
        "stop_time" => float 1419298393.7059
        "stop_memory" => integer 5970648
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7062
        "start_memory" => integer 5975616
        "stop_time" => float 1419298393.7062
        "stop_memory" => integer 5976208
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7074
        "start_memory" => integer 5999336
        "stop_time" => float 1419298393.7075
        "stop_memory" => integer 5999856
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7077
        "start_memory" => integer 6004496
        "stop_time" => float 1419298393.7078
        "stop_memory" => integer 6005064
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7094
        "start_memory" => integer 6119720
        "stop_time" => float 1419298393.7095
        "stop_memory" => integer 6120280
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7097
        "start_memory" => integer 6124952
        "stop_time" => float 1419298393.7098
        "stop_memory" => integer 6125544
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7175
        "start_memory" => integer 6145864
        "stop_time" => float 1419298393.7175
        "stop_memory" => integer 6146400
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.718
        "start_memory" => integer 6151064
        "stop_time" => float 1419298393.718
        "stop_memory" => integer 6151632
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7211
        "start_memory" => integer 6188288
        "stop_time" => float 1419298393.7212
        "stop_memory" => integer 6188832
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7216
        "start_memory" => integer 6193472
        "stop_time" => float 1419298393.7217
        "stop_memory" => integer 6194040
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7227
        "start_memory" => integer 6236448
        "stop_time" => float 1419298393.7227
        "stop_memory" => integer 6236992
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.723
        "start_memory" => integer 6241632
        "stop_time" => float 1419298393.723
        "stop_memory" => integer 6242200
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7239
        "start_memory" => integer 6286400
        "stop_time" => float 1419298393.7239
        "stop_memory" => integer 6286944
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7242
        "start_memory" => integer 6291584
        "stop_time" => float 1419298393.7242
        "stop_memory" => integer 6293176
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7257
        "start_memory" => integer 6368736
        "stop_time" => float 1419298393.7257
        "stop_memory" => integer 6369280
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.726
        "start_memory" => integer 6373952
        "stop_time" => float 1419298393.726
        "stop_memory" => integer 6374520
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7283
        "start_memory" => integer 6396720
        "stop_time" => float 1419298393.7283
        "stop_memory" => integer 6397280
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7285
        "start_memory" => integer 6401920
        "stop_time" => float 1419298393.7286
        "stop_memory" => integer 6402488
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7301
        "start_memory" => integer 6431632
        "stop_time" => float 1419298393.7302
        "stop_memory" => integer 6432192
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7304
        "start_memory" => integer 6437040
        "stop_time" => float 1419298393.7305
        "stop_memory" => integer 6437616
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7313
        "start_memory" => integer 6457904
        "stop_time" => float 1419298393.7314
        "stop_memory" => integer 6458472
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7317
        "start_memory" => integer 6463408
        "stop_time" => float 1419298393.7317
        "stop_memory" => integer 6463992
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7324
        "start_memory" => integer 6479032
        "stop_time" => float 1419298393.7325
        "stop_memory" => integer 6479592
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7327
        "start_memory" => integer 6484528
        "stop_time" => float 1419298393.7328
        "stop_memory" => integer 6485112
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7336
        "start_memory" => integer 6500160
        "stop_time" => float 1419298393.7337
        "stop_memory" => integer 6500720
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7339
        "start_memory" => integer 6505656
        "stop_time" => float 1419298393.7339
        "stop_memory" => integer 6506240
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7347
        "start_memory" => integer 6521288
        "stop_time" => float 1419298393.7347
        "stop_memory" => integer 6521848
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7351
        "start_memory" => integer 6526784
        "stop_time" => float 1419298393.7351
        "stop_memory" => integer 6527368
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7361
        "start_memory" => integer 6542392
        "stop_time" => float 1419298393.7361
        "stop_memory" => integer 6542952
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7363
        "start_memory" => integer 6547888
        "stop_time" => float 1419298393.7364
        "stop_memory" => integer 6548472
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7373
        "start_memory" => integer 6563496
        "stop_time" => float 1419298393.7373
        "stop_memory" => integer 6564056
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7375
        "start_memory" => integer 6568992
        "stop_time" => float 1419298393.7375
        "stop_memory" => integer 6569576
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7386
        "start_memory" => integer 6584632
        "stop_time" => float 1419298393.7386
        "stop_memory" => integer 6585192
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7388
        "start_memory" => integer 6590128
        "stop_time" => float 1419298393.7388
        "stop_memory" => integer 6590712
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7396
        "start_memory" => integer 6605736
        "stop_time" => float 1419298393.7396
        "stop_memory" => integer 6606296
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7398
        "start_memory" => integer 6611232
        "stop_time" => float 1419298393.7399
        "stop_memory" => integer 6611816
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7408
        "start_memory" => integer 6626952
        "stop_time" => float 1419298393.7408
        "stop_memory" => integer 6627512
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7411
        "start_memory" => integer 6632448
        "stop_time" => float 1419298393.7412
        "stop_memory" => integer 6633032
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.742
        "start_memory" => integer 6648064
        "stop_time" => float 1419298393.7421
        "stop_memory" => integer 6648624
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7424
        "start_memory" => integer 6653560
        "stop_time" => float 1419298393.7424
        "stop_memory" => integer 6654144
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7433
        "start_memory" => integer 6669184
        "stop_time" => float 1419298393.7433
        "stop_memory" => integer 6669744
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7437
        "start_memory" => integer 6674680
        "stop_time" => float 1419298393.7438
        "stop_memory" => integer 6675264
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7447
        "start_memory" => integer 6690272
        "stop_time" => float 1419298393.7448
        "stop_memory" => integer 6690832
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.745
        "start_memory" => integer 6695768
        "stop_time" => float 1419298393.745
        "stop_memory" => integer 6696352
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7458
        "start_memory" => integer 6711376
        "stop_time" => float 1419298393.7459
        "stop_memory" => integer 6711936
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7461
        "start_memory" => integer 6716872
        "stop_time" => float 1419298393.7462
        "stop_memory" => integer 6717456
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.747
        "start_memory" => integer 6732504
        "stop_time" => float 1419298393.7471
        "stop_memory" => integer 6733064
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7473
        "start_memory" => integer 6738000
        "stop_time" => float 1419298393.7474
        "stop_memory" => integer 6738584
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7482
        "start_memory" => integer 6753640
        "stop_time" => float 1419298393.7482
        "stop_memory" => integer 6754200
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7484
        "start_memory" => integer 6759136
        "stop_time" => float 1419298393.7485
        "stop_memory" => integer 6759720
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7493
        "start_memory" => integer 6774768
        "stop_time" => float 1419298393.7493
        "stop_memory" => integer 6775328
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7496
        "start_memory" => integer 6780264
        "stop_time" => float 1419298393.7497
        "stop_memory" => integer 6780848
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7505
        "start_memory" => integer 6796032
        "stop_time" => float 1419298393.7506
        "stop_memory" => integer 6796592
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7508
        "start_memory" => integer 6801528
        "stop_time" => float 1419298393.7508
        "stop_memory" => integer 6802112
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7519
        "start_memory" => integer 6817184
        "stop_time" => float 1419298393.7519
        "stop_memory" => integer 6817744
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7521
        "start_memory" => integer 6822680
        "stop_time" => float 1419298393.7522
        "stop_memory" => integer 6823264
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7531
        "start_memory" => integer 6838320
        "stop_time" => float 1419298393.7532
        "stop_memory" => integer 6838880
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7534
        "start_memory" => integer 6843816
        "stop_time" => float 1419298393.7534
        "stop_memory" => integer 6844400
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7541
        "start_memory" => integer 6859448
        "stop_time" => float 1419298393.7541
        "stop_memory" => integer 6860008
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7544
        "start_memory" => integer 6864944
        "stop_time" => float 1419298393.7544
        "stop_memory" => integer 6865528
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7552
        "start_memory" => integer 6880552
        "stop_time" => float 1419298393.7553
        "stop_memory" => integer 6881112
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7555
        "start_memory" => integer 6886048
        "stop_time" => float 1419298393.7556
        "stop_memory" => integer 6886632
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7563
        "start_memory" => integer 6901656
        "stop_time" => float 1419298393.7564
        "stop_memory" => integer 6902216
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7569
        "start_memory" => integer 6907152
        "stop_time" => float 1419298393.757
        "stop_memory" => integer 6907736
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7578
        "start_memory" => integer 6922792
        "stop_time" => float 1419298393.7578
        "stop_memory" => integer 6923352
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.758
        "start_memory" => integer 6928288
        "stop_time" => float 1419298393.7581
        "stop_memory" => integer 6928872
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7588
        "start_memory" => integer 6943912
        "stop_time" => float 1419298393.7589
        "stop_memory" => integer 6944472
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7591
        "start_memory" => integer 6949408
        "stop_time" => float 1419298393.7592
        "stop_memory" => integer 6949992
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.761
        "start_memory" => integer 6965256
        "stop_time" => float 1419298393.7611
        "stop_memory" => integer 6965816
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7616
        "start_memory" => integer 6970728
        "stop_time" => float 1419298393.7617
        "stop_memory" => integer 6971296
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7651
        "start_memory" => integer 7009320
        "stop_time" => float 1419298393.7651
        "stop_memory" => integer 7009872
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7656
        "start_memory" => integer 7014544
        "stop_time" => float 1419298393.7656
        "stop_memory" => integer 7015120
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7673
        "start_memory" => integer 7146192
        "stop_time" => float 1419298393.7673
        "stop_memory" => integer 7146744
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7676
        "start_memory" => integer 7151424
        "stop_time" => float 1419298393.7676
        "stop_memory" => integer 7152000
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7698
        "start_memory" => integer 7321200
        "stop_time" => float 1419298393.7699
        "stop_memory" => integer 7321752
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7708
        "start_memory" => integer 7326440
        "stop_time" => float 1419298393.7709
        "stop_memory" => integer 7327000
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.774
        "start_memory" => integer 7382664
        "stop_time" => float 1419298393.7741
        "stop_memory" => integer 7383240
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7743
        "start_memory" => integer 7388152
        "stop_time" => float 1419298393.7743
        "stop_memory" => integer 7388720
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7753
        "start_memory" => integer 7428744
        "stop_time" => float 1419298393.7753
        "stop_memory" => integer 7429320
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7756
        "start_memory" => integer 7434272
        "stop_time" => float 1419298393.7756
        "stop_memory" => integer 7434864
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.777
        "start_memory" => integer 7460808
        "stop_time" => float 1419298393.7771
        "stop_memory" => integer 7461376
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7773
        "start_memory" => integer 7466248
        "stop_time" => float 1419298393.7774
        "stop_memory" => integer 7466824
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7794
        "start_memory" => integer 7492880
        "stop_time" => float 1419298393.7794
        "stop_memory" => integer 7493456
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7833
        "start_memory" => integer 7504360
        "stop_time" => float 1419298393.7834
        "stop_memory" => integer 7504920
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7838
        "start_memory" => integer 7514784
        "stop_time" => float 1419298393.7838
        "stop_memory" => integer 7515352
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7865
        "start_memory" => integer 7525952
        "stop_time" => float 1419298393.7866
        "stop_memory" => integer 7526504
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7868
        "start_memory" => integer 7531232
        "stop_time" => float 1419298393.7869
        "stop_memory" => integer 7531808
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7875
        "start_memory" => integer 7537272
        "stop_time" => float 1419298393.7876
        "stop_memory" => integer 7537824
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7878
        "start_memory" => integer 7542552
        "stop_time" => float 1419298393.7878
        "stop_memory" => integer 7543128
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7885
        "start_memory" => integer 7548576
        "stop_time" => float 1419298393.7885
        "stop_memory" => integer 7549128
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7887
        "start_memory" => integer 7553880
        "stop_time" => float 1419298393.7888
        "stop_memory" => integer 7554456
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7899
        "start_memory" => integer 7566464
        "stop_time" => float 1419298393.79
        "stop_memory" => integer 7567000
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7902
        "start_memory" => integer 7571664
        "stop_time" => float 1419298393.7902
        "stop_memory" => integer 7572232
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7909
        "start_memory" => integer 7575280
        "stop_time" => float 1419298393.791
        "stop_memory" => integer 7575856
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7912
        "start_memory" => integer 7585128
        "stop_time" => float 1419298393.7913
        "stop_memory" => integer 7585664
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7915
        "start_memory" => integer 7590312
        "stop_time" => float 1419298393.7915
        "stop_memory" => integer 7590880
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7953
        "start_memory" => integer 7966240
        "stop_time" => float 1419298393.7955
        "stop_memory" => integer 7966816
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7965
        "start_memory" => integer 8045392
        "stop_time" => float 1419298393.7966
        "stop_memory" => integer 8045976
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7973
        "start_memory" => integer 8091200
        "stop_time" => float 1419298393.7974
        "stop_memory" => integer 8091760
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7976
        "start_memory" => integer 8096624
        "stop_time" => float 1419298393.7977
        "stop_memory" => integer 8097208
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7985
        "start_memory" => integer 8106168
        "stop_time" => float 1419298393.7985
        "stop_memory" => integer 8106712
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7992
        "start_memory" => integer 8138176
        "stop_time" => float 1419298393.7993
        "stop_memory" => integer 8138736
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.7999
        "start_memory" => integer 8173144
        "stop_time" => float 1419298393.8
        "stop_memory" => integer 8173720
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8006
        "start_memory" => integer 8205832
        "stop_time" => float 1419298393.8007
        "stop_memory" => integer 8206368
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8009
        "start_memory" => integer 8211024
        "stop_time" => float 1419298393.8009
        "stop_memory" => integer 8211592
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8033
        "start_memory" => integer 8253400
        "stop_time" => float 1419298393.8034
        "stop_memory" => integer 8253992
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8036
        "start_memory" => integer 8259176
        "stop_time" => float 1419298393.8036
        "stop_memory" => integer 8259768
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8067
        "start_memory" => integer 8303864
        "stop_time" => float 1419298393.8068
        "stop_memory" => integer 8304416
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8073
        "start_memory" => integer 8309352
        "stop_time" => float 1419298393.8074
        "stop_memory" => integer 8309936
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8141
        "start_memory" => integer 8411624
        "stop_time" => float 1419298393.8141
        "stop_memory" => integer 8412152
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8144
        "start_memory" => integer 8416808
        "stop_time" => float 1419298393.8145
        "stop_memory" => integer 8417376
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8173
        "start_memory" => integer 8432304
        "stop_time" => float 1419298393.8174
        "stop_memory" => integer 8432856
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8176
        "start_memory" => integer 8437504
        "stop_time" => float 1419298393.8179
        "stop_memory" => integer 8438072
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8194
        "start_memory" => integer 8504504
        "stop_time" => float 1419298393.8194
        "stop_memory" => integer 8505064
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8196
        "start_memory" => integer 8509920
        "stop_time" => float 1419298393.8197
        "stop_memory" => integer 8510496
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8204
        "start_memory" => integer 8533936
        "stop_time" => float 1419298393.8205
        "stop_memory" => integer 8534544
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8207
        "start_memory" => integer 8539464
        "stop_time" => float 1419298393.8207
        "stop_memory" => integer 8540056
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8223
        "start_memory" => integer 8611008
        "stop_time" => float 1419298393.8224
        "stop_memory" => integer 8611544
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8249
        "start_memory" => integer 8616416
        "stop_time" => float 1419298393.825
        "stop_memory" => integer 8616968
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.826
        "start_memory" => integer 8644672
        "stop_time" => float 1419298393.826
        "stop_memory" => integer 8645208
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8263
        "start_memory" => integer 8649864
        "stop_time" => float 1419298393.8264
        "stop_memory" => integer 8650432
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8282
        "start_memory" => integer 8771656
        "stop_time" => float 1419298393.8282
        "stop_memory" => integer 8772200
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8288
        "start_memory" => integer 8776872
        "stop_time" => float 1419298393.8289
        "stop_memory" => integer 8777440
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8352
        "start_memory" => integer 8808824
        "stop_time" => float 1419298393.8352
        "stop_memory" => integer 8809368
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8356
        "start_memory" => integer 8814016
        "stop_time" => float 1419298393.8356
        "stop_memory" => integer 8814584
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8368
        "start_memory" => integer 8914888
        "stop_time" => float 1419298393.8369
        "stop_memory" => integer 8915448
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8372
        "start_memory" => integer 8920160
        "stop_time" => float 1419298393.8372
        "stop_memory" => integer 8920736
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8384
        "start_memory" => integer 9028480
        "stop_time" => float 1419298393.8384
        "stop_memory" => integer 9029048
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8386
        "start_memory" => integer 9033968
        "stop_time" => float 1419298393.8386
        "stop_memory" => integer 9034552
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8407
        "start_memory" => integer 9055744
        "stop_time" => float 1419298393.8407
        "stop_memory" => integer 9056320
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8411
        "start_memory" => integer 9020808
        "stop_time" => float 1419298393.8411
        "stop_memory" => integer 9022744
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8421
        "start_memory" => integer 9093464
        "stop_time" => float 1419298393.8422
        "stop_memory" => integer 9095192
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419298393.8422
        "start_memory" => integer 9094952
        "stop_time" => float 1419298393.8422
        "stop_memory" => integer 9096680
    )
)

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