Modules

Kohana_Profiler

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

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

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

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1398009034.2799
        "start_memory" => integer 1985056
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2799
        "start_memory" => integer 1987392
        "stop_time" => float 1398009034.28
        "stop_memory" => integer 1987984
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2801
        "start_memory" => integer 1992936
        "stop_time" => float 1398009034.2802
        "stop_memory" => integer 1993528
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2809
        "start_memory" => integer 2119048
        "stop_time" => float 1398009034.281
        "stop_memory" => integer 2119600
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2811
        "start_memory" => integer 2124536
        "stop_time" => float 1398009034.2811
        "stop_memory" => integer 2125120
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2812
        "start_memory" => integer 2136208
        "stop_time" => float 1398009034.2813
        "stop_memory" => integer 2136752
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2814
        "start_memory" => integer 2141464
        "stop_time" => float 1398009034.2815
        "stop_memory" => integer 2142040
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2817
        "start_memory" => integer 2151296
        "stop_time" => float 1398009034.2818
        "stop_memory" => integer 2151832
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2819
        "start_memory" => integer 2156512
        "stop_time" => float 1398009034.282
        "stop_memory" => integer 2157144
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2831
        "start_memory" => integer 2318080
        "stop_time" => float 1398009034.2832
        "stop_memory" => integer 2318640
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2833
        "start_memory" => integer 2323488
        "stop_time" => float 1398009034.2834
        "stop_memory" => integer 2324064
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2835
        "start_memory" => integer 2337512
        "stop_time" => float 1398009034.2836
        "stop_memory" => integer 2338056
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2838
        "start_memory" => integer 2342704
        "stop_time" => float 1398009034.2838
        "stop_memory" => integer 2343272
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2842
        "start_memory" => integer 2398056
        "stop_time" => float 1398009034.2843
        "stop_memory" => integer 2398648
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2843
        "start_memory" => integer 2399808
        "stop_time" => float 1398009034.2843
        "stop_memory" => integer 2400384
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2844
        "start_memory" => integer 2405264
        "stop_time" => float 1398009034.2845
        "stop_memory" => integer 2405840
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.285
        "start_memory" => integer 2471304
        "stop_time" => float 1398009034.2851
        "stop_memory" => integer 2471920
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2851
        "start_memory" => integer 2472704
        "stop_time" => float 1398009034.2851
        "stop_memory" => integer 2473280
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2894
        "start_memory" => integer 3141928
        "stop_time" => float 1398009034.2895
        "stop_memory" => integer 3142480
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2897
        "start_memory" => integer 3148128
        "stop_time" => float 1398009034.2899
        "stop_memory" => integer 3148696
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2903
        "start_memory" => integer 3181440
        "stop_time" => float 1398009034.2904
        "stop_memory" => integer 3181984
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2905
        "start_memory" => integer 3186624
        "stop_time" => float 1398009034.2906
        "stop_memory" => integer 3187192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.292
        "start_memory" => integer 3350032
        "stop_time" => float 1398009034.2921
        "stop_memory" => integer 3350608
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2922
        "start_memory" => integer 3355488
        "stop_time" => float 1398009034.2923
        "stop_memory" => integer 3356072
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2924
        "start_memory" => integer 3358760
        "stop_time" => float 1398009034.2925
        "stop_memory" => integer 3359320
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2926
        "start_memory" => integer 3364192
        "stop_time" => float 1398009034.2927
        "stop_memory" => integer 3364776
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2931
        "start_memory" => integer 3414432
        "stop_time" => float 1398009034.2932
        "stop_memory" => integer 3414976
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2933
        "start_memory" => integer 3419648
        "stop_time" => float 1398009034.2933
        "stop_memory" => integer 3420224
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2943
        "start_memory" => integer 3517816
        "stop_time" => float 1398009034.2944
        "stop_memory" => integer 3518352
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2945
        "start_memory" => integer 3522992
        "stop_time" => float 1398009034.2946
        "stop_memory" => integer 3523560
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.2971
        "start_memory" => integer 3610624
        "stop_time" => float 1398009034.2971
        "stop_memory" => integer 3611216
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.359
        "start_memory" => integer 3653360
        "stop_time" => float 1398009034.3591
        "stop_memory" => integer 3653928
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3592
        "start_memory" => integer 3658592
        "stop_time" => float 1398009034.3592
        "stop_memory" => integer 3659424
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3601
        "start_memory" => integer 3700024
        "stop_time" => float 1398009034.3602
        "stop_memory" => integer 3700576
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3602
        "start_memory" => integer 3705408
        "stop_time" => float 1398009034.3603
        "stop_memory" => integer 3705984
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3611
        "start_memory" => integer 3729696
        "stop_time" => float 1398009034.3612
        "stop_memory" => integer 3730248
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3613
        "start_memory" => integer 3734928
        "stop_time" => float 1398009034.3613
        "stop_memory" => integer 3735504
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3622
        "start_memory" => integer 3802696
        "stop_time" => float 1398009034.3623
        "stop_memory" => integer 3803280
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3624
        "start_memory" => integer 3821272
        "stop_time" => float 1398009034.3624
        "stop_memory" => integer 3821832
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3625
        "start_memory" => integer 3826696
        "stop_time" => float 1398009034.3625
        "stop_memory" => integer 3827280
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3638
        "start_memory" => integer 3892408
        "stop_time" => float 1398009034.3639
        "stop_memory" => integer 3892984
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3643
        "start_memory" => integer 3912400
        "stop_time" => float 1398009034.3643
        "stop_memory" => integer 3912976
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3649
        "start_memory" => integer 3961032
        "stop_time" => float 1398009034.365
        "stop_memory" => integer 3961608
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3654
        "start_memory" => integer 3972264
        "stop_time" => float 1398009034.3655
        "stop_memory" => integer 3972840
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3659
        "start_memory" => integer 3990848
        "stop_time" => float 1398009034.366
        "stop_memory" => integer 3991424
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3663
        "start_memory" => integer 4001088
        "stop_time" => float 1398009034.3663
        "stop_memory" => integer 4001664
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3668
        "start_memory" => integer 4021768
        "stop_time" => float 1398009034.3669
        "stop_memory" => integer 4022352
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3673
        "start_memory" => integer 4042832
        "stop_time" => float 1398009034.3673
        "stop_memory" => integer 4043424
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3678
        "start_memory" => integer 4056648
        "stop_time" => float 1398009034.3678
        "stop_memory" => integer 4057216
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3681
        "start_memory" => integer 4069440
        "stop_time" => float 1398009034.3682
        "stop_memory" => integer 4070016
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3687
        "start_memory" => integer 4118304
        "stop_time" => float 1398009034.3687
        "stop_memory" => integer 4118864
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3692
        "start_memory" => integer 4157336
        "stop_time" => float 1398009034.3692
        "stop_memory" => integer 4157920
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3695
        "start_memory" => integer 4177320
        "stop_time" => float 1398009034.3696
        "stop_memory" => integer 4177896
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3699
        "start_memory" => integer 4209056
        "stop_time" => float 1398009034.37
        "stop_memory" => integer 4209632
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3704
        "start_memory" => integer 4228344
        "stop_time" => float 1398009034.3704
        "stop_memory" => integer 4228888
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3705
        "start_memory" => integer 4233560
        "stop_time" => float 1398009034.3706
        "stop_memory" => integer 4234136
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3709
        "start_memory" => integer 4264984
        "stop_time" => float 1398009034.371
        "stop_memory" => integer 4265520
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3711
        "start_memory" => integer 4270184
        "stop_time" => float 1398009034.3711
        "stop_memory" => integer 4270752
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.374
        "start_memory" => integer 4412320
        "stop_time" => float 1398009034.374
        "stop_memory" => integer 4412896
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3834
        "start_memory" => integer 4465680
        "stop_time" => float 1398009034.3835
        "stop_memory" => integer 4466232
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3836
        "start_memory" => integer 4471064
        "stop_time" => float 1398009034.3836
        "stop_memory" => integer 4471640
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3889
        "start_memory" => integer 4497104
        "stop_time" => float 1398009034.389
        "stop_memory" => integer 4497688
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3891
        "start_memory" => integer 4502624
        "stop_time" => float 1398009034.3891
        "stop_memory" => integer 4503200
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3955
        "start_memory" => integer 4528808
        "stop_time" => float 1398009034.3956
        "stop_memory" => integer 4529368
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3958
        "start_memory" => integer 4534224
        "stop_time" => float 1398009034.3958
        "stop_memory" => integer 4535304
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.3967
        "start_memory" => integer 4624008
        "stop_time" => float 1398009034.3968
        "stop_memory" => integer 4624608
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4033
        "start_memory" => integer 4631528
        "stop_time" => float 1398009034.4034
        "stop_memory" => integer 4632080
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4037
        "start_memory" => integer 4636960
        "stop_time" => float 1398009034.4037
        "stop_memory" => integer 4637544
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4214
        "start_memory" => integer 4694416
        "stop_time" => float 1398009034.4215
        "stop_memory" => integer 4694976
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4216
        "start_memory" => integer 4699896
        "stop_time" => float 1398009034.4217
        "stop_memory" => integer 4700480
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4218
        "start_memory" => integer 4724320
        "stop_time" => float 1398009034.4219
        "stop_memory" => integer 4724896
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4227
        "start_memory" => integer 4733960
        "stop_time" => float 1398009034.4227
        "stop_memory" => integer 4734520
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4228
        "start_memory" => integer 4739384
        "stop_time" => float 1398009034.4228
        "stop_memory" => integer 4739968
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.424
        "start_memory" => integer 4819416
        "stop_time" => float 1398009034.424
        "stop_memory" => integer 4819976
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4242
        "start_memory" => integer 4824880
        "stop_time" => float 1398009034.4242
        "stop_memory" => integer 4825440
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4297
        "start_memory" => integer 4851168
        "stop_time" => float 1398009034.4297
        "stop_memory" => integer 4851728
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.43
        "start_memory" => integer 4856592
        "stop_time" => float 1398009034.43
        "stop_memory" => integer 4857176
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4308
        "start_memory" => integer 4878568
        "stop_time" => float 1398009034.4309
        "stop_memory" => integer 4879096
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4309
        "start_memory" => integer 4883744
        "stop_time" => float 1398009034.431
        "stop_memory" => integer 4884312
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4326
        "start_memory" => integer 4895168
        "stop_time" => float 1398009034.4327
        "stop_memory" => integer 4895760
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4328
        "start_memory" => integer 4900648
        "stop_time" => float 1398009034.4328
        "stop_memory" => integer 4901224
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4381
        "start_memory" => integer 4946184
        "stop_time" => float 1398009034.4382
        "stop_memory" => integer 4946760
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.439
        "start_memory" => integer 4957896
        "stop_time" => float 1398009034.4391
        "stop_memory" => integer 4958440
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4393
        "start_memory" => integer 4964336
        "stop_time" => float 1398009034.4393
        "stop_memory" => integer 4964912
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4434
        "start_memory" => integer 4986368
        "stop_time" => float 1398009034.4434
        "stop_memory" => integer 4986936
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4454
        "start_memory" => integer 4992488
        "stop_time" => float 1398009034.4455
        "stop_memory" => integer 4993056
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4457
        "start_memory" => integer 4997904
        "stop_time" => float 1398009034.4457
        "stop_memory" => integer 4998488
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4489
        "start_memory" => integer 5132232
        "stop_time" => float 1398009034.4489
        "stop_memory" => integer 5132808
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4491
        "start_memory" => integer 5137760
        "stop_time" => float 1398009034.4491
        "stop_memory" => integer 5138352
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.45
        "start_memory" => integer 5153216
        "stop_time" => float 1398009034.4501
        "stop_memory" => integer 5153784
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4502
        "start_memory" => integer 5158744
        "stop_time" => float 1398009034.4502
        "stop_memory" => integer 5159360
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4524
        "start_memory" => integer 5165296
        "stop_time" => float 1398009034.4526
        "stop_memory" => integer 5165848
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4527
        "start_memory" => integer 5170712
        "stop_time" => float 1398009034.4528
        "stop_memory" => integer 5171296
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4544
        "start_memory" => integer 5315896
        "stop_time" => float 1398009034.4546
        "stop_memory" => integer 5316472
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4547
        "start_memory" => integer 5321432
        "stop_time" => float 1398009034.4547
        "stop_memory" => integer 5322024
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4551
        "start_memory" => integer 5342704
        "stop_time" => float 1398009034.4551
        "stop_memory" => integer 5343272
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4552
        "start_memory" => integer 5348160
        "stop_time" => float 1398009034.4553
        "stop_memory" => integer 5348736
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4563
        "start_memory" => integer 5411040
        "stop_time" => float 1398009034.4563
        "stop_memory" => integer 5411600
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4564
        "start_memory" => integer 5416472
        "stop_time" => float 1398009034.4566
        "stop_memory" => integer 5417056
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4575
        "start_memory" => integer 5482560
        "stop_time" => float 1398009034.4575
        "stop_memory" => integer 5483120
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4576
        "start_memory" => integer 5487984
        "stop_time" => float 1398009034.4576
        "stop_memory" => integer 5488568
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4587
        "start_memory" => integer 5531224
        "stop_time" => float 1398009034.4589
        "stop_memory" => integer 5531800
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.459
        "start_memory" => integer 5536768
        "stop_time" => float 1398009034.459
        "stop_memory" => integer 5537360
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4603
        "start_memory" => integer 5596192
        "stop_time" => float 1398009034.4603
        "stop_memory" => integer 5596776
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4604
        "start_memory" => integer 5601840
        "stop_time" => float 1398009034.4605
        "stop_memory" => integer 5602440
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4607
        "start_memory" => integer 5622112
        "stop_time" => float 1398009034.4608
        "stop_memory" => integer 5622688
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.461
        "start_memory" => integer 5627752
        "stop_time" => float 1398009034.461
        "stop_memory" => integer 5628352
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4622
        "start_memory" => integer 5692800
        "stop_time" => float 1398009034.4623
        "stop_memory" => integer 5693376
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4624
        "start_memory" => integer 5698440
        "stop_time" => float 1398009034.4624
        "stop_memory" => integer 5699040
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4635
        "start_memory" => integer 5747368
        "stop_time" => float 1398009034.4635
        "stop_memory" => integer 5747944
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4636
        "start_memory" => integer 5753000
        "stop_time" => float 1398009034.4638
        "stop_memory" => integer 5753600
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.465
        "start_memory" => integer 5794904
        "stop_time" => float 1398009034.465
        "stop_memory" => integer 5795480
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4651
        "start_memory" => integer 5800544
        "stop_time" => float 1398009034.4651
        "stop_memory" => integer 5801144
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4669
        "start_memory" => integer 5914072
        "stop_time" => float 1398009034.4669
        "stop_memory" => integer 5914648
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4671
        "start_memory" => integer 5919712
        "stop_time" => float 1398009034.4671
        "stop_memory" => integer 5920312
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4701
        "start_memory" => integer 5968968
        "stop_time" => float 1398009034.4702
        "stop_memory" => integer 5969528
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4704
        "start_memory" => integer 5974496
        "stop_time" => float 1398009034.4704
        "stop_memory" => integer 5975088
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4716
        "start_memory" => integer 5998216
        "stop_time" => float 1398009034.4718
        "stop_memory" => integer 5998736
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4719
        "start_memory" => integer 6003376
        "stop_time" => float 1398009034.4719
        "stop_memory" => integer 6003944
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4728
        "start_memory" => integer 6121592
        "stop_time" => float 1398009034.4729
        "stop_memory" => integer 6122136
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4736
        "start_memory" => integer 6123192
        "stop_time" => float 1398009034.4736
        "stop_memory" => integer 6123760
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4737
        "start_memory" => integer 6128432
        "stop_time" => float 1398009034.4737
        "stop_memory" => integer 6129016
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4801
        "start_memory" => integer 6149336
        "stop_time" => float 1398009034.4802
        "stop_memory" => integer 6149872
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4803
        "start_memory" => integer 6154520
        "stop_time" => float 1398009034.4804
        "stop_memory" => integer 6155088
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4848
        "start_memory" => integer 6192536
        "stop_time" => float 1398009034.485
        "stop_memory" => integer 6193080
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4851
        "start_memory" => integer 6197720
        "stop_time" => float 1398009034.4852
        "stop_memory" => integer 6198288
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4861
        "start_memory" => integer 6240712
        "stop_time" => float 1398009034.4862
        "stop_memory" => integer 6241256
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4863
        "start_memory" => integer 6245904
        "stop_time" => float 1398009034.4863
        "stop_memory" => integer 6246464
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4871
        "start_memory" => integer 6290664
        "stop_time" => float 1398009034.4872
        "stop_memory" => integer 6292232
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4873
        "start_memory" => integer 6296872
        "stop_time" => float 1398009034.4874
        "stop_memory" => integer 6297440
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4887
        "start_memory" => integer 6372952
        "stop_time" => float 1398009034.4888
        "stop_memory" => integer 6373496
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4889
        "start_memory" => integer 6378152
        "stop_time" => float 1398009034.489
        "stop_memory" => integer 6378720
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4914
        "start_memory" => integer 6400920
        "stop_time" => float 1398009034.4915
        "stop_memory" => integer 6401464
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4916
        "start_memory" => integer 6406104
        "stop_time" => float 1398009034.4916
        "stop_memory" => integer 6406672
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4932
        "start_memory" => integer 6436152
        "stop_time" => float 1398009034.4932
        "stop_memory" => integer 6436712
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4933
        "start_memory" => integer 6441560
        "stop_time" => float 1398009034.4933
        "stop_memory" => integer 6442136
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4943
        "start_memory" => integer 6462432
        "stop_time" => float 1398009034.4944
        "stop_memory" => integer 6463000
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4945
        "start_memory" => integer 6467936
        "stop_time" => float 1398009034.4946
        "stop_memory" => integer 6468520
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4955
        "start_memory" => integer 6483560
        "stop_time" => float 1398009034.4956
        "stop_memory" => integer 6484120
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4957
        "start_memory" => integer 6489056
        "stop_time" => float 1398009034.4958
        "stop_memory" => integer 6489640
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4968
        "start_memory" => integer 6504688
        "stop_time" => float 1398009034.4968
        "stop_memory" => integer 6505248
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.497
        "start_memory" => integer 6510184
        "stop_time" => float 1398009034.4971
        "stop_memory" => integer 6510768
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.498
        "start_memory" => integer 6525816
        "stop_time" => float 1398009034.498
        "stop_memory" => integer 6526376
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4981
        "start_memory" => integer 6531312
        "stop_time" => float 1398009034.4982
        "stop_memory" => integer 6531896
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.499
        "start_memory" => integer 6546920
        "stop_time" => float 1398009034.4991
        "stop_memory" => integer 6547480
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.4992
        "start_memory" => integer 6552416
        "stop_time" => float 1398009034.4993
        "stop_memory" => integer 6553000
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5002
        "start_memory" => integer 6568024
        "stop_time" => float 1398009034.5003
        "stop_memory" => integer 6568584
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5004
        "start_memory" => integer 6573520
        "stop_time" => float 1398009034.5005
        "stop_memory" => integer 6574104
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5014
        "start_memory" => integer 6589160
        "stop_time" => float 1398009034.5015
        "stop_memory" => integer 6589720
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5016
        "start_memory" => integer 6594656
        "stop_time" => float 1398009034.5017
        "stop_memory" => integer 6595240
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5028
        "start_memory" => integer 6610264
        "stop_time" => float 1398009034.503
        "stop_memory" => integer 6610824
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5031
        "start_memory" => integer 6615760
        "stop_time" => float 1398009034.5032
        "stop_memory" => integer 6616344
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5042
        "start_memory" => integer 6631480
        "stop_time" => float 1398009034.5043
        "stop_memory" => integer 6632040
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5044
        "start_memory" => integer 6636976
        "stop_time" => float 1398009034.5045
        "stop_memory" => integer 6637560
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5057
        "start_memory" => integer 6652592
        "stop_time" => float 1398009034.5058
        "stop_memory" => integer 6653152
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5059
        "start_memory" => integer 6658088
        "stop_time" => float 1398009034.506
        "stop_memory" => integer 6658672
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5071
        "start_memory" => integer 6673712
        "stop_time" => float 1398009034.5071
        "stop_memory" => integer 6674272
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5073
        "start_memory" => integer 6679208
        "stop_time" => float 1398009034.5074
        "stop_memory" => integer 6679792
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5083
        "start_memory" => integer 6694800
        "stop_time" => float 1398009034.5084
        "stop_memory" => integer 6695360
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5085
        "start_memory" => integer 6700296
        "stop_time" => float 1398009034.5085
        "stop_memory" => integer 6700880
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5093
        "start_memory" => integer 6715904
        "stop_time" => float 1398009034.5093
        "stop_memory" => integer 6716464
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5094
        "start_memory" => integer 6721400
        "stop_time" => float 1398009034.5095
        "stop_memory" => integer 6721984
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5103
        "start_memory" => integer 6737032
        "stop_time" => float 1398009034.5104
        "stop_memory" => integer 6737592
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5104
        "start_memory" => integer 6742528
        "stop_time" => float 1398009034.5105
        "stop_memory" => integer 6743112
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5112
        "start_memory" => integer 6758168
        "stop_time" => float 1398009034.5112
        "stop_memory" => integer 6758728
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5113
        "start_memory" => integer 6763664
        "stop_time" => float 1398009034.5114
        "stop_memory" => integer 6764248
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5121
        "start_memory" => integer 6779296
        "stop_time" => float 1398009034.5122
        "stop_memory" => integer 6779856
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5123
        "start_memory" => integer 6784792
        "stop_time" => float 1398009034.5123
        "stop_memory" => integer 6785376
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.513
        "start_memory" => integer 6800560
        "stop_time" => float 1398009034.5131
        "stop_memory" => integer 6801120
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5132
        "start_memory" => integer 6806056
        "stop_time" => float 1398009034.5132
        "stop_memory" => integer 6806640
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5139
        "start_memory" => integer 6821712
        "stop_time" => float 1398009034.514
        "stop_memory" => integer 6822272
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5141
        "start_memory" => integer 6827208
        "stop_time" => float 1398009034.5141
        "stop_memory" => integer 6827792
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.515
        "start_memory" => integer 6842848
        "stop_time" => float 1398009034.5151
        "stop_memory" => integer 6843408
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5152
        "start_memory" => integer 6848344
        "stop_time" => float 1398009034.5153
        "stop_memory" => integer 6848928
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.516
        "start_memory" => integer 6863976
        "stop_time" => float 1398009034.516
        "stop_memory" => integer 6864536
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5161
        "start_memory" => integer 6869472
        "stop_time" => float 1398009034.5162
        "stop_memory" => integer 6870056
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5169
        "start_memory" => integer 6885080
        "stop_time" => float 1398009034.517
        "stop_memory" => integer 6885640
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.517
        "start_memory" => integer 6890576
        "stop_time" => float 1398009034.5171
        "stop_memory" => integer 6891160
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5181
        "start_memory" => integer 6906184
        "stop_time" => float 1398009034.5182
        "stop_memory" => integer 6906744
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5183
        "start_memory" => integer 6911680
        "stop_time" => float 1398009034.5184
        "stop_memory" => integer 6912264
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5194
        "start_memory" => integer 6927320
        "stop_time" => float 1398009034.5195
        "stop_memory" => integer 6927880
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5196
        "start_memory" => integer 6932816
        "stop_time" => float 1398009034.5198
        "stop_memory" => integer 6933400
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5206
        "start_memory" => integer 6948440
        "stop_time" => float 1398009034.5207
        "stop_memory" => integer 6949000
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5208
        "start_memory" => integer 6953936
        "stop_time" => float 1398009034.5209
        "stop_memory" => integer 6954520
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5227
        "start_memory" => integer 6969784
        "stop_time" => float 1398009034.5229
        "stop_memory" => integer 6970344
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.523
        "start_memory" => integer 6975256
        "stop_time" => float 1398009034.523
        "stop_memory" => integer 6975824
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5262
        "start_memory" => integer 7013848
        "stop_time" => float 1398009034.5263
        "stop_memory" => integer 7014400
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5264
        "start_memory" => integer 7019072
        "stop_time" => float 1398009034.5265
        "stop_memory" => integer 7019648
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5283
        "start_memory" => integer 7150720
        "stop_time" => float 1398009034.5284
        "stop_memory" => integer 7151272
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5285
        "start_memory" => integer 7155952
        "stop_time" => float 1398009034.5286
        "stop_memory" => integer 7156528
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5312
        "start_memory" => integer 7325680
        "stop_time" => float 1398009034.5312
        "stop_memory" => integer 7326232
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5314
        "start_memory" => integer 7330920
        "stop_time" => float 1398009034.5315
        "stop_memory" => integer 7331480
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5349
        "start_memory" => integer 7387128
        "stop_time" => float 1398009034.535
        "stop_memory" => integer 7387704
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5351
        "start_memory" => integer 7392600
        "stop_time" => float 1398009034.5351
        "stop_memory" => integer 7393160
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5361
        "start_memory" => integer 7433208
        "stop_time" => float 1398009034.5361
        "stop_memory" => integer 7433784
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5362
        "start_memory" => integer 7438736
        "stop_time" => float 1398009034.5363
        "stop_memory" => integer 7439328
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5379
        "start_memory" => integer 7465264
        "stop_time" => float 1398009034.538
        "stop_memory" => integer 7465832
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5381
        "start_memory" => integer 7470704
        "stop_time" => float 1398009034.5381
        "stop_memory" => integer 7471280
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5403
        "start_memory" => integer 7497336
        "stop_time" => float 1398009034.5404
        "stop_memory" => integer 7497912
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5447
        "start_memory" => integer 7508816
        "stop_time" => float 1398009034.5448
        "stop_memory" => integer 7509376
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5451
        "start_memory" => integer 7519240
        "stop_time" => float 1398009034.5452
        "stop_memory" => integer 7519808
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.547
        "start_memory" => integer 7530408
        "stop_time" => float 1398009034.5471
        "stop_memory" => integer 7530960
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5472
        "start_memory" => integer 7535672
        "stop_time" => float 1398009034.5473
        "stop_memory" => integer 7536264
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5482
        "start_memory" => integer 7541728
        "stop_time" => float 1398009034.5483
        "stop_memory" => integer 7542280
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5485
        "start_memory" => integer 7547008
        "stop_time" => float 1398009034.5485
        "stop_memory" => integer 7547584
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5493
        "start_memory" => integer 7553032
        "stop_time" => float 1398009034.5493
        "stop_memory" => integer 7553584
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5494
        "start_memory" => integer 7558336
        "stop_time" => float 1398009034.5495
        "stop_memory" => integer 7558912
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.551
        "start_memory" => integer 7570920
        "stop_time" => float 1398009034.5511
        "stop_memory" => integer 7571456
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5512
        "start_memory" => integer 7576104
        "stop_time" => float 1398009034.5512
        "stop_memory" => integer 7576672
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5521
        "start_memory" => integer 7579736
        "stop_time" => float 1398009034.5522
        "stop_memory" => integer 7580312
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5523
        "start_memory" => integer 7589600
        "stop_time" => float 1398009034.5524
        "stop_memory" => integer 7590136
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5527
        "start_memory" => integer 7596856
        "stop_time" => float 1398009034.5528
        "stop_memory" => integer 7597424
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5561
        "start_memory" => integer 7974856
        "stop_time" => float 1398009034.5562
        "stop_memory" => integer 7975432
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5571
        "start_memory" => integer 8049912
        "stop_time" => float 1398009034.5572
        "stop_memory" => integer 8050496
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5581
        "start_memory" => integer 8095736
        "stop_time" => float 1398009034.5581
        "stop_memory" => integer 8096296
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5583
        "start_memory" => integer 8101160
        "stop_time" => float 1398009034.5583
        "stop_memory" => integer 8101744
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5592
        "start_memory" => integer 8110728
        "stop_time" => float 1398009034.5592
        "stop_memory" => integer 8111272
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.56
        "start_memory" => integer 8142712
        "stop_time" => float 1398009034.56
        "stop_memory" => integer 8143272
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5608
        "start_memory" => integer 8177680
        "stop_time" => float 1398009034.5609
        "stop_memory" => integer 8178256
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5616
        "start_memory" => integer 8210368
        "stop_time" => float 1398009034.5616
        "stop_memory" => integer 8210904
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5618
        "start_memory" => integer 8215560
        "stop_time" => float 1398009034.5618
        "stop_memory" => integer 8216128
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5646
        "start_memory" => integer 8257936
        "stop_time" => float 1398009034.5647
        "stop_memory" => integer 8258528
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5649
        "start_memory" => integer 8263712
        "stop_time" => float 1398009034.5649
        "stop_memory" => integer 8264304
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5679
        "start_memory" => integer 8308400
        "stop_time" => float 1398009034.568
        "stop_memory" => integer 8308952
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5681
        "start_memory" => integer 8313888
        "stop_time" => float 1398009034.5682
        "stop_memory" => integer 8314472
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5727
        "start_memory" => integer 8416160
        "stop_time" => float 1398009034.5727
        "stop_memory" => integer 8416688
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5728
        "start_memory" => integer 8421344
        "stop_time" => float 1398009034.5729
        "stop_memory" => integer 8421912
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5734
        "start_memory" => integer 8436840
        "stop_time" => float 1398009034.5735
        "stop_memory" => integer 8437392
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5736
        "start_memory" => integer 8442040
        "stop_time" => float 1398009034.5737
        "stop_memory" => integer 8442608
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5745
        "start_memory" => integer 8509040
        "stop_time" => float 1398009034.5745
        "stop_memory" => integer 8509600
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5746
        "start_memory" => integer 8514456
        "stop_time" => float 1398009034.5747
        "stop_memory" => integer 8515032
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5752
        "start_memory" => integer 8538472
        "stop_time" => float 1398009034.5752
        "stop_memory" => integer 8539080
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5753
        "start_memory" => integer 8544000
        "stop_time" => float 1398009034.5754
        "stop_memory" => integer 8544592
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5767
        "start_memory" => integer 8615576
        "stop_time" => float 1398009034.5767
        "stop_memory" => integer 8616112
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5768
        "start_memory" => integer 8620984
        "stop_time" => float 1398009034.5769
        "stop_memory" => integer 8621536
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5774
        "start_memory" => integer 8649272
        "stop_time" => float 1398009034.5775
        "stop_memory" => integer 8649808
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5776
        "start_memory" => integer 8654464
        "stop_time" => float 1398009034.5776
        "stop_memory" => integer 8655032
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5788
        "start_memory" => integer 8776256
        "stop_time" => float 1398009034.5788
        "stop_memory" => integer 8776800
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5789
        "start_memory" => integer 8781472
        "stop_time" => float 1398009034.579
        "stop_memory" => integer 8782040
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5844
        "start_memory" => integer 8813424
        "stop_time" => float 1398009034.5845
        "stop_memory" => integer 8813968
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5846
        "start_memory" => integer 8818616
        "stop_time" => float 1398009034.5847
        "stop_memory" => integer 8819184
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5861
        "start_memory" => integer 8919472
        "stop_time" => float 1398009034.5862
        "stop_memory" => integer 8920032
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5863
        "start_memory" => integer 8924744
        "stop_time" => float 1398009034.5864
        "stop_memory" => integer 8925320
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5876
        "start_memory" => integer 9033064
        "stop_time" => float 1398009034.5877
        "stop_memory" => integer 9033632
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5879
        "start_memory" => integer 9038552
        "stop_time" => float 1398009034.588
        "stop_memory" => integer 9039136
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5891
        "start_memory" => integer 9060320
        "stop_time" => float 1398009034.5891
        "stop_memory" => integer 9060896
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5895
        "start_memory" => integer 9025376
        "stop_time" => float 1398009034.5896
        "stop_memory" => integer 9027312
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5902
        "start_memory" => integer 9098032
        "stop_time" => float 1398009034.5902
        "stop_memory" => integer 9099760
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398009034.5902
        "start_memory" => integer 9099520
        "stop_time" => float 1398009034.5903
        "stop_memory" => integer 9101248
    )
)

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