Modules

Profiler
extends Kohana_Profiler

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

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

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

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1416673748.521
        "start_memory" => integer 1988816
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.521
        "start_memory" => integer 1991160
        "stop_time" => float 1416673748.5211
        "stop_memory" => integer 1991752
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5211
        "start_memory" => integer 1996704
        "stop_time" => float 1416673748.5212
        "stop_memory" => integer 1997296
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5217
        "start_memory" => integer 2122840
        "stop_time" => float 1416673748.5217
        "stop_memory" => integer 2123392
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5218
        "start_memory" => integer 2128312
        "stop_time" => float 1416673748.5218
        "stop_memory" => integer 2128920
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5219
        "start_memory" => integer 2140008
        "stop_time" => float 1416673748.522
        "stop_memory" => integer 2140552
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5221
        "start_memory" => integer 2145264
        "stop_time" => float 1416673748.5222
        "stop_memory" => integer 2145840
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5223
        "start_memory" => integer 2155120
        "stop_time" => float 1416673748.5224
        "stop_memory" => integer 2155656
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5225
        "start_memory" => integer 2160312
        "stop_time" => float 1416673748.5225
        "stop_memory" => integer 2160960
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5232
        "start_memory" => integer 2321712
        "stop_time" => float 1416673748.5232
        "stop_memory" => integer 2322272
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5233
        "start_memory" => integer 2327120
        "stop_time" => float 1416673748.5233
        "stop_memory" => integer 2327696
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5235
        "start_memory" => integer 2341168
        "stop_time" => float 1416673748.5235
        "stop_memory" => integer 2341720
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5236
        "start_memory" => integer 2346352
        "stop_time" => float 1416673748.5236
        "stop_memory" => integer 2346920
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5239
        "start_memory" => integer 2401744
        "stop_time" => float 1416673748.524
        "stop_memory" => integer 2402336
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.524
        "start_memory" => integer 2403496
        "stop_time" => float 1416673748.524
        "stop_memory" => integer 2404072
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5241
        "start_memory" => integer 2408944
        "stop_time" => float 1416673748.5242
        "stop_memory" => integer 2409520
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5244
        "start_memory" => integer 2474968
        "stop_time" => float 1416673748.5245
        "stop_memory" => integer 2475584
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5245
        "start_memory" => integer 2476368
        "stop_time" => float 1416673748.5245
        "stop_memory" => integer 2476944
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5272
        "start_memory" => integer 3145592
        "stop_time" => float 1416673748.5272
        "stop_memory" => integer 3146120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5273
        "start_memory" => integer 3151800
        "stop_time" => float 1416673748.5273
        "stop_memory" => integer 3152368
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5276
        "start_memory" => integer 3185112
        "stop_time" => float 1416673748.5276
        "stop_memory" => integer 3185656
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5277
        "start_memory" => integer 3190296
        "stop_time" => float 1416673748.5277
        "stop_memory" => integer 3190864
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5284
        "start_memory" => integer 3352496
        "stop_time" => float 1416673748.5285
        "stop_memory" => integer 3353072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5285
        "start_memory" => integer 3357952
        "stop_time" => float 1416673748.5286
        "stop_memory" => integer 3358536
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5288
        "start_memory" => integer 3361224
        "stop_time" => float 1416673748.5288
        "stop_memory" => integer 3361784
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5289
        "start_memory" => integer 3366656
        "stop_time" => float 1416673748.5289
        "stop_memory" => integer 3367240
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5292
        "start_memory" => integer 3416904
        "stop_time" => float 1416673748.5292
        "stop_memory" => integer 3417448
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5293
        "start_memory" => integer 3422120
        "stop_time" => float 1416673748.5293
        "stop_memory" => integer 3422696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5297
        "start_memory" => integer 3520768
        "stop_time" => float 1416673748.5298
        "stop_memory" => integer 3521304
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5299
        "start_memory" => integer 3525944
        "stop_time" => float 1416673748.53
        "stop_memory" => integer 3526512
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.531
        "start_memory" => integer 3611128
        "stop_time" => float 1416673748.531
        "stop_memory" => integer 3611720
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5866
        "start_memory" => integer 3653872
        "stop_time" => float 1416673748.5866
        "stop_memory" => integer 3654432
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5868
        "start_memory" => integer 3659096
        "stop_time" => float 1416673748.5868
        "stop_memory" => integer 3659928
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5876
        "start_memory" => integer 3700528
        "stop_time" => float 1416673748.5876
        "stop_memory" => integer 3701080
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5877
        "start_memory" => integer 3705912
        "stop_time" => float 1416673748.5877
        "stop_memory" => integer 3706488
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5883
        "start_memory" => integer 3730184
        "stop_time" => float 1416673748.5884
        "stop_memory" => integer 3730736
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5885
        "start_memory" => integer 3735440
        "stop_time" => float 1416673748.5885
        "stop_memory" => integer 3736016
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5892
        "start_memory" => integer 3803168
        "stop_time" => float 1416673748.5893
        "stop_memory" => integer 3803752
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5894
        "start_memory" => integer 3821744
        "stop_time" => float 1416673748.5894
        "stop_memory" => integer 3822304
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5895
        "start_memory" => integer 3827168
        "stop_time" => float 1416673748.5895
        "stop_memory" => integer 3827752
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.59
        "start_memory" => integer 3892880
        "stop_time" => float 1416673748.59
        "stop_memory" => integer 3893456
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5903
        "start_memory" => integer 3912880
        "stop_time" => float 1416673748.5903
        "stop_memory" => integer 3913456
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5907
        "start_memory" => integer 3961528
        "stop_time" => float 1416673748.5907
        "stop_memory" => integer 3962104
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.591
        "start_memory" => integer 3972768
        "stop_time" => float 1416673748.591
        "stop_memory" => integer 3973344
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5913
        "start_memory" => integer 3991352
        "stop_time" => float 1416673748.5913
        "stop_memory" => integer 3991928
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5915
        "start_memory" => integer 4001624
        "stop_time" => float 1416673748.5915
        "stop_memory" => integer 4002200
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.592
        "start_memory" => integer 4022328
        "stop_time" => float 1416673748.592
        "stop_memory" => integer 4022904
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5923
        "start_memory" => integer 4043384
        "stop_time" => float 1416673748.5923
        "stop_memory" => integer 4043976
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5925
        "start_memory" => integer 4057216
        "stop_time" => float 1416673748.5925
        "stop_memory" => integer 4057784
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5928
        "start_memory" => integer 4070024
        "stop_time" => float 1416673748.5928
        "stop_memory" => integer 4070600
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.593
        "start_memory" => integer 4118896
        "stop_time" => float 1416673748.5931
        "stop_memory" => integer 4119456
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5934
        "start_memory" => integer 4157928
        "stop_time" => float 1416673748.5934
        "stop_memory" => integer 4158512
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5937
        "start_memory" => integer 4177912
        "stop_time" => float 1416673748.5938
        "stop_memory" => integer 4178488
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.594
        "start_memory" => integer 4209648
        "stop_time" => float 1416673748.594
        "stop_memory" => integer 4210224
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5943
        "start_memory" => integer 4228936
        "stop_time" => float 1416673748.5943
        "stop_memory" => integer 4229480
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5944
        "start_memory" => integer 4234152
        "stop_time" => float 1416673748.5944
        "stop_memory" => integer 4234728
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5946
        "start_memory" => integer 4265568
        "stop_time" => float 1416673748.5946
        "stop_memory" => integer 4266104
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5947
        "start_memory" => integer 4270768
        "stop_time" => float 1416673748.5948
        "stop_memory" => integer 4271336
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.5969
        "start_memory" => integer 4412896
        "stop_time" => float 1416673748.597
        "stop_memory" => integer 4413472
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6032
        "start_memory" => integer 4466272
        "stop_time" => float 1416673748.6032
        "stop_memory" => integer 4466824
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6033
        "start_memory" => integer 4471656
        "stop_time" => float 1416673748.6033
        "stop_memory" => integer 4472232
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.607
        "start_memory" => integer 4497744
        "stop_time" => float 1416673748.607
        "stop_memory" => integer 4498328
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6071
        "start_memory" => integer 4503280
        "stop_time" => float 1416673748.6072
        "stop_memory" => integer 4503856
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6122
        "start_memory" => integer 4529472
        "stop_time" => float 1416673748.6122
        "stop_memory" => integer 4530032
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6123
        "start_memory" => integer 4534888
        "stop_time" => float 1416673748.6124
        "stop_memory" => integer 4535968
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6128
        "start_memory" => integer 4624688
        "stop_time" => float 1416673748.6129
        "stop_memory" => integer 4625288
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6173
        "start_memory" => integer 4632208
        "stop_time" => float 1416673748.6173
        "stop_memory" => integer 4632760
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6174
        "start_memory" => integer 4637640
        "stop_time" => float 1416673748.6174
        "stop_memory" => integer 4638224
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.63
        "start_memory" => integer 4695088
        "stop_time" => float 1416673748.6301
        "stop_memory" => integer 4695648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6302
        "start_memory" => integer 4700568
        "stop_time" => float 1416673748.6302
        "stop_memory" => integer 4701152
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6304
        "start_memory" => integer 4724960
        "stop_time" => float 1416673748.6304
        "stop_memory" => integer 4725536
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.631
        "start_memory" => integer 4734616
        "stop_time" => float 1416673748.631
        "stop_memory" => integer 4735176
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6311
        "start_memory" => integer 4740040
        "stop_time" => float 1416673748.6311
        "stop_memory" => integer 4740624
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.632
        "start_memory" => integer 4820128
        "stop_time" => float 1416673748.6321
        "stop_memory" => integer 4820688
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6322
        "start_memory" => integer 4825600
        "stop_time" => float 1416673748.6322
        "stop_memory" => integer 4826176
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6367
        "start_memory" => integer 4851864
        "stop_time" => float 1416673748.6367
        "stop_memory" => integer 4852424
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6368
        "start_memory" => integer 4857288
        "stop_time" => float 1416673748.6368
        "stop_memory" => integer 4857872
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6374
        "start_memory" => integer 4879280
        "stop_time" => float 1416673748.6374
        "stop_memory" => integer 4879808
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6375
        "start_memory" => integer 4884456
        "stop_time" => float 1416673748.6376
        "stop_memory" => integer 4885032
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6389
        "start_memory" => integer 4895888
        "stop_time" => float 1416673748.639
        "stop_memory" => integer 4896480
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.639
        "start_memory" => integer 4901368
        "stop_time" => float 1416673748.6391
        "stop_memory" => integer 4901944
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6422
        "start_memory" => integer 4946880
        "stop_time" => float 1416673748.6422
        "stop_memory" => integer 4947456
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6428
        "start_memory" => integer 4958592
        "stop_time" => float 1416673748.6428
        "stop_memory" => integer 4959136
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6429
        "start_memory" => integer 4963992
        "stop_time" => float 1416673748.6429
        "stop_memory" => integer 4964568
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6458
        "start_memory" => integer 4987064
        "stop_time" => float 1416673748.6458
        "stop_memory" => integer 4987632
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6474
        "start_memory" => integer 4993200
        "stop_time" => float 1416673748.6474
        "stop_memory" => integer 4993768
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6476
        "start_memory" => integer 4998616
        "stop_time" => float 1416673748.6476
        "stop_memory" => integer 4999200
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6498
        "start_memory" => integer 5132928
        "stop_time" => float 1416673748.6499
        "stop_memory" => integer 5133504
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.65
        "start_memory" => integer 5138456
        "stop_time" => float 1416673748.65
        "stop_memory" => integer 5139048
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6504
        "start_memory" => integer 5153912
        "stop_time" => float 1416673748.6504
        "stop_memory" => integer 5154480
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6506
        "start_memory" => integer 5159456
        "stop_time" => float 1416673748.6506
        "stop_memory" => integer 5160048
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6519
        "start_memory" => integer 5165968
        "stop_time" => float 1416673748.6519
        "stop_memory" => integer 5166520
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.652
        "start_memory" => integer 5171384
        "stop_time" => float 1416673748.652
        "stop_memory" => integer 5171968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6531
        "start_memory" => integer 5316576
        "stop_time" => float 1416673748.6531
        "stop_memory" => integer 5317152
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6532
        "start_memory" => integer 5322112
        "stop_time" => float 1416673748.6532
        "stop_memory" => integer 5322704
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6534
        "start_memory" => integer 5343384
        "stop_time" => float 1416673748.6534
        "stop_memory" => integer 5343952
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6535
        "start_memory" => integer 5348840
        "stop_time" => float 1416673748.6535
        "stop_memory" => integer 5349416
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6544
        "start_memory" => integer 5411720
        "stop_time" => float 1416673748.6545
        "stop_memory" => integer 5412280
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6545
        "start_memory" => integer 5417152
        "stop_time" => float 1416673748.6546
        "stop_memory" => integer 5417736
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6552
        "start_memory" => integer 5483240
        "stop_time" => float 1416673748.6553
        "stop_memory" => integer 5483800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6554
        "start_memory" => integer 5488664
        "stop_time" => float 1416673748.6555
        "stop_memory" => integer 5489248
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6563
        "start_memory" => integer 5531904
        "stop_time" => float 1416673748.6563
        "stop_memory" => integer 5532480
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6564
        "start_memory" => integer 5537448
        "stop_time" => float 1416673748.6564
        "stop_memory" => integer 5538040
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6573
        "start_memory" => integer 5596880
        "stop_time" => float 1416673748.6573
        "stop_memory" => integer 5597464
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6574
        "start_memory" => integer 5602528
        "stop_time" => float 1416673748.6574
        "stop_memory" => integer 5603128
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6576
        "start_memory" => integer 5622800
        "stop_time" => float 1416673748.6576
        "stop_memory" => integer 5623376
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6577
        "start_memory" => integer 5628440
        "stop_time" => float 1416673748.6577
        "stop_memory" => integer 5629040
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6586
        "start_memory" => integer 5693440
        "stop_time" => float 1416673748.6586
        "stop_memory" => integer 5694016
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6587
        "start_memory" => integer 5699080
        "stop_time" => float 1416673748.6588
        "stop_memory" => integer 5699680
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6596
        "start_memory" => integer 5748008
        "stop_time" => float 1416673748.6596
        "stop_memory" => integer 5748584
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6597
        "start_memory" => integer 5753640
        "stop_time" => float 1416673748.6597
        "stop_memory" => integer 5754240
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6605
        "start_memory" => integer 5795544
        "stop_time" => float 1416673748.6606
        "stop_memory" => integer 5796120
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6607
        "start_memory" => integer 5801184
        "stop_time" => float 1416673748.6607
        "stop_memory" => integer 5801784
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6618
        "start_memory" => integer 5914712
        "stop_time" => float 1416673748.6618
        "stop_memory" => integer 5915288
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6619
        "start_memory" => integer 5920352
        "stop_time" => float 1416673748.6619
        "stop_memory" => integer 5920952
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6638
        "start_memory" => integer 5969600
        "stop_time" => float 1416673748.6638
        "stop_memory" => integer 5970160
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6639
        "start_memory" => integer 5975128
        "stop_time" => float 1416673748.6639
        "stop_memory" => integer 5975720
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6646
        "start_memory" => integer 5998848
        "stop_time" => float 1416673748.6646
        "stop_memory" => integer 5999368
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6647
        "start_memory" => integer 6004008
        "stop_time" => float 1416673748.6648
        "stop_memory" => integer 6004576
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6658
        "start_memory" => integer 6119248
        "stop_time" => float 1416673748.6658
        "stop_memory" => integer 6119808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6659
        "start_memory" => integer 6124480
        "stop_time" => float 1416673748.6659
        "stop_memory" => integer 6125072
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6699
        "start_memory" => integer 6145392
        "stop_time" => float 1416673748.6699
        "stop_memory" => integer 6145928
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.67
        "start_memory" => integer 6150576
        "stop_time" => float 1416673748.67
        "stop_memory" => integer 6151144
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6723
        "start_memory" => integer 6187824
        "stop_time" => float 1416673748.6723
        "stop_memory" => integer 6188368
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6724
        "start_memory" => integer 6193008
        "stop_time" => float 1416673748.6724
        "stop_memory" => integer 6193576
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6731
        "start_memory" => integer 6235968
        "stop_time" => float 1416673748.6732
        "stop_memory" => integer 6236512
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6733
        "start_memory" => integer 6241152
        "stop_time" => float 1416673748.6733
        "stop_memory" => integer 6241720
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6739
        "start_memory" => integer 6285912
        "stop_time" => float 1416673748.674
        "stop_memory" => integer 6286456
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.674
        "start_memory" => integer 6291104
        "stop_time" => float 1416673748.6741
        "stop_memory" => integer 6292696
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6752
        "start_memory" => integer 6368200
        "stop_time" => float 1416673748.6753
        "stop_memory" => integer 6368744
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6754
        "start_memory" => integer 6373400
        "stop_time" => float 1416673748.6754
        "stop_memory" => integer 6373968
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6773
        "start_memory" => integer 6396152
        "stop_time" => float 1416673748.6773
        "stop_memory" => integer 6396712
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6774
        "start_memory" => integer 6401352
        "stop_time" => float 1416673748.6774
        "stop_memory" => integer 6401920
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6786
        "start_memory" => integer 6431064
        "stop_time" => float 1416673748.6787
        "stop_memory" => integer 6431624
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6787
        "start_memory" => integer 6436472
        "stop_time" => float 1416673748.6788
        "stop_memory" => integer 6437048
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6794
        "start_memory" => integer 6457360
        "stop_time" => float 1416673748.6794
        "stop_memory" => integer 6457928
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6796
        "start_memory" => integer 6462864
        "stop_time" => float 1416673748.6796
        "stop_memory" => integer 6463448
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6802
        "start_memory" => integer 6478472
        "stop_time" => float 1416673748.6803
        "stop_memory" => integer 6479032
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6803
        "start_memory" => integer 6483968
        "stop_time" => float 1416673748.6804
        "stop_memory" => integer 6484552
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.681
        "start_memory" => integer 6499592
        "stop_time" => float 1416673748.681
        "stop_memory" => integer 6500152
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6811
        "start_memory" => integer 6505088
        "stop_time" => float 1416673748.6811
        "stop_memory" => integer 6505672
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6818
        "start_memory" => integer 6520720
        "stop_time" => float 1416673748.6818
        "stop_memory" => integer 6521280
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6819
        "start_memory" => integer 6526216
        "stop_time" => float 1416673748.6819
        "stop_memory" => integer 6526800
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6825
        "start_memory" => integer 6541824
        "stop_time" => float 1416673748.6825
        "stop_memory" => integer 6542384
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6826
        "start_memory" => integer 6547320
        "stop_time" => float 1416673748.6826
        "stop_memory" => integer 6547904
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6832
        "start_memory" => integer 6562928
        "stop_time" => float 1416673748.6833
        "stop_memory" => integer 6563488
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6834
        "start_memory" => integer 6568424
        "stop_time" => float 1416673748.6834
        "stop_memory" => integer 6569008
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.684
        "start_memory" => integer 6584064
        "stop_time" => float 1416673748.684
        "stop_memory" => integer 6584624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6841
        "start_memory" => integer 6589560
        "stop_time" => float 1416673748.6842
        "stop_memory" => integer 6590144
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6848
        "start_memory" => integer 6605168
        "stop_time" => float 1416673748.6848
        "stop_memory" => integer 6605728
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6849
        "start_memory" => integer 6610664
        "stop_time" => float 1416673748.685
        "stop_memory" => integer 6611248
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6856
        "start_memory" => integer 6626384
        "stop_time" => float 1416673748.6856
        "stop_memory" => integer 6626944
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6857
        "start_memory" => integer 6631880
        "stop_time" => float 1416673748.6858
        "stop_memory" => integer 6632464
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6864
        "start_memory" => integer 6647496
        "stop_time" => float 1416673748.6865
        "stop_memory" => integer 6648056
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6866
        "start_memory" => integer 6652992
        "stop_time" => float 1416673748.6866
        "stop_memory" => integer 6653576
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6872
        "start_memory" => integer 6668616
        "stop_time" => float 1416673748.6872
        "stop_memory" => integer 6669176
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6873
        "start_memory" => integer 6674112
        "stop_time" => float 1416673748.6873
        "stop_memory" => integer 6674696
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6879
        "start_memory" => integer 6689704
        "stop_time" => float 1416673748.688
        "stop_memory" => integer 6690264
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6881
        "start_memory" => integer 6695200
        "stop_time" => float 1416673748.6881
        "stop_memory" => integer 6695784
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6887
        "start_memory" => integer 6710808
        "stop_time" => float 1416673748.6888
        "stop_memory" => integer 6711368
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6889
        "start_memory" => integer 6716304
        "stop_time" => float 1416673748.6889
        "stop_memory" => integer 6716888
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6895
        "start_memory" => integer 6731912
        "stop_time" => float 1416673748.6895
        "stop_memory" => integer 6732472
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6896
        "start_memory" => integer 6737408
        "stop_time" => float 1416673748.6897
        "stop_memory" => integer 6737992
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6902
        "start_memory" => integer 6753056
        "stop_time" => float 1416673748.6903
        "stop_memory" => integer 6753616
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6903
        "start_memory" => integer 6758552
        "stop_time" => float 1416673748.6904
        "stop_memory" => integer 6759136
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.691
        "start_memory" => integer 6774192
        "stop_time" => float 1416673748.6911
        "stop_memory" => integer 6774752
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6912
        "start_memory" => integer 6779688
        "stop_time" => float 1416673748.6912
        "stop_memory" => integer 6780272
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6918
        "start_memory" => integer 6795448
        "stop_time" => float 1416673748.6918
        "stop_memory" => integer 6796008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6919
        "start_memory" => integer 6800944
        "stop_time" => float 1416673748.692
        "stop_memory" => integer 6801528
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6925
        "start_memory" => integer 6816584
        "stop_time" => float 1416673748.6925
        "stop_memory" => integer 6817144
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6926
        "start_memory" => integer 6822080
        "stop_time" => float 1416673748.6926
        "stop_memory" => integer 6822664
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6933
        "start_memory" => integer 6837720
        "stop_time" => float 1416673748.6933
        "stop_memory" => integer 6838280
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6934
        "start_memory" => integer 6843216
        "stop_time" => float 1416673748.6934
        "stop_memory" => integer 6843800
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.694
        "start_memory" => integer 6858848
        "stop_time" => float 1416673748.6941
        "stop_memory" => integer 6859408
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6941
        "start_memory" => integer 6864344
        "stop_time" => float 1416673748.6942
        "stop_memory" => integer 6864928
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6949
        "start_memory" => integer 6879952
        "stop_time" => float 1416673748.695
        "stop_memory" => integer 6880512
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6951
        "start_memory" => integer 6885448
        "stop_time" => float 1416673748.6952
        "stop_memory" => integer 6886032
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6962
        "start_memory" => integer 6901056
        "stop_time" => float 1416673748.6963
        "stop_memory" => integer 6901616
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6964
        "start_memory" => integer 6906552
        "stop_time" => float 1416673748.6965
        "stop_memory" => integer 6907136
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6974
        "start_memory" => integer 6922192
        "stop_time" => float 1416673748.6974
        "stop_memory" => integer 6922752
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6976
        "start_memory" => integer 6927688
        "stop_time" => float 1416673748.6977
        "stop_memory" => integer 6928272
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6986
        "start_memory" => integer 6943312
        "stop_time" => float 1416673748.6987
        "stop_memory" => integer 6943872
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.6988
        "start_memory" => integer 6948808
        "stop_time" => float 1416673748.6989
        "stop_memory" => integer 6949392
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7013
        "start_memory" => integer 6964656
        "stop_time" => float 1416673748.7014
        "stop_memory" => integer 6965216
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7015
        "start_memory" => integer 6970128
        "stop_time" => float 1416673748.7016
        "stop_memory" => integer 6970696
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7056
        "start_memory" => integer 7008720
        "stop_time" => float 1416673748.7058
        "stop_memory" => integer 7009272
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7059
        "start_memory" => integer 7013944
        "stop_time" => float 1416673748.7059
        "stop_memory" => integer 7014520
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7078
        "start_memory" => integer 7145584
        "stop_time" => float 1416673748.7078
        "stop_memory" => integer 7146136
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.708
        "start_memory" => integer 7150816
        "stop_time" => float 1416673748.708
        "stop_memory" => integer 7151392
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7103
        "start_memory" => integer 7320576
        "stop_time" => float 1416673748.7104
        "stop_memory" => integer 7321128
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7106
        "start_memory" => integer 7325816
        "stop_time" => float 1416673748.7106
        "stop_memory" => integer 7326376
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7134
        "start_memory" => integer 7382040
        "stop_time" => float 1416673748.7135
        "stop_memory" => integer 7382616
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7136
        "start_memory" => integer 7387528
        "stop_time" => float 1416673748.7137
        "stop_memory" => integer 7388096
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7146
        "start_memory" => integer 7428128
        "stop_time" => float 1416673748.7147
        "stop_memory" => integer 7428704
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7148
        "start_memory" => integer 7433656
        "stop_time" => float 1416673748.7148
        "stop_memory" => integer 7434248
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.717
        "start_memory" => integer 7460192
        "stop_time" => float 1416673748.717
        "stop_memory" => integer 7460760
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7171
        "start_memory" => integer 7465632
        "stop_time" => float 1416673748.7172
        "stop_memory" => integer 7466208
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.719
        "start_memory" => integer 7492264
        "stop_time" => float 1416673748.719
        "stop_memory" => integer 7492840
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.722
        "start_memory" => integer 7503744
        "stop_time" => float 1416673748.7221
        "stop_memory" => integer 7504304
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7223
        "start_memory" => integer 7514168
        "stop_time" => float 1416673748.7223
        "stop_memory" => integer 7514736
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7237
        "start_memory" => integer 7525336
        "stop_time" => float 1416673748.7237
        "stop_memory" => integer 7525888
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7238
        "start_memory" => integer 7530616
        "stop_time" => float 1416673748.7238
        "stop_memory" => integer 7531192
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7244
        "start_memory" => integer 7536656
        "stop_time" => float 1416673748.7244
        "stop_memory" => integer 7537208
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7245
        "start_memory" => integer 7541936
        "stop_time" => float 1416673748.7245
        "stop_memory" => integer 7542512
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.725
        "start_memory" => integer 7547960
        "stop_time" => float 1416673748.7251
        "stop_memory" => integer 7548512
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7251
        "start_memory" => integer 7553264
        "stop_time" => float 1416673748.7252
        "stop_memory" => integer 7553840
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7262
        "start_memory" => integer 7565848
        "stop_time" => float 1416673748.7263
        "stop_memory" => integer 7566384
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7264
        "start_memory" => integer 7571048
        "stop_time" => float 1416673748.7264
        "stop_memory" => integer 7571616
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7269
        "start_memory" => integer 7574664
        "stop_time" => float 1416673748.727
        "stop_memory" => integer 7575240
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7271
        "start_memory" => integer 7584512
        "stop_time" => float 1416673748.7271
        "stop_memory" => integer 7585048
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7272
        "start_memory" => integer 7589696
        "stop_time" => float 1416673748.7272
        "stop_memory" => integer 7590264
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7294
        "start_memory" => integer 7965664
        "stop_time" => float 1416673748.7295
        "stop_memory" => integer 7966240
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7303
        "start_memory" => integer 8044808
        "stop_time" => float 1416673748.7303
        "stop_memory" => integer 8045392
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7309
        "start_memory" => integer 8090616
        "stop_time" => float 1416673748.731
        "stop_memory" => integer 8091176
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.731
        "start_memory" => integer 8096040
        "stop_time" => float 1416673748.7311
        "stop_memory" => integer 8096624
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7316
        "start_memory" => integer 8105584
        "stop_time" => float 1416673748.7316
        "stop_memory" => integer 8106128
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7322
        "start_memory" => integer 8137592
        "stop_time" => float 1416673748.7323
        "stop_memory" => integer 8138152
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7328
        "start_memory" => integer 8172576
        "stop_time" => float 1416673748.7328
        "stop_memory" => integer 8173152
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7333
        "start_memory" => integer 8205248
        "stop_time" => float 1416673748.7334
        "stop_memory" => integer 8205784
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7334
        "start_memory" => integer 8210440
        "stop_time" => float 1416673748.7335
        "stop_memory" => integer 8211008
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7356
        "start_memory" => integer 8252816
        "stop_time" => float 1416673748.7357
        "stop_memory" => integer 8253408
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7359
        "start_memory" => integer 8258592
        "stop_time" => float 1416673748.7359
        "stop_memory" => integer 8259184
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7401
        "start_memory" => integer 8303280
        "stop_time" => float 1416673748.7401
        "stop_memory" => integer 8303832
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7403
        "start_memory" => integer 8308768
        "stop_time" => float 1416673748.7404
        "stop_memory" => integer 8309352
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7448
        "start_memory" => integer 8411040
        "stop_time" => float 1416673748.7449
        "stop_memory" => integer 8411568
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.745
        "start_memory" => integer 8416224
        "stop_time" => float 1416673748.745
        "stop_memory" => integer 8416792
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7456
        "start_memory" => integer 8431720
        "stop_time" => float 1416673748.7456
        "stop_memory" => integer 8432272
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7457
        "start_memory" => integer 8436920
        "stop_time" => float 1416673748.7458
        "stop_memory" => integer 8437488
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7465
        "start_memory" => integer 8503920
        "stop_time" => float 1416673748.7466
        "stop_memory" => integer 8504480
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7466
        "start_memory" => integer 8509336
        "stop_time" => float 1416673748.7467
        "stop_memory" => integer 8509912
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7473
        "start_memory" => integer 8533352
        "stop_time" => float 1416673748.7473
        "stop_memory" => integer 8533960
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7474
        "start_memory" => integer 8538880
        "stop_time" => float 1416673748.7474
        "stop_memory" => integer 8539472
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7486
        "start_memory" => integer 8610480
        "stop_time" => float 1416673748.7487
        "stop_memory" => integer 8611016
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7488
        "start_memory" => integer 8615888
        "stop_time" => float 1416673748.7489
        "stop_memory" => integer 8616440
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7495
        "start_memory" => integer 8644144
        "stop_time" => float 1416673748.7496
        "stop_memory" => integer 8644680
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7496
        "start_memory" => integer 8649336
        "stop_time" => float 1416673748.7498
        "stop_memory" => integer 8649904
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.751
        "start_memory" => integer 8771128
        "stop_time" => float 1416673748.751
        "stop_memory" => integer 8771672
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7511
        "start_memory" => integer 8776344
        "stop_time" => float 1416673748.7512
        "stop_memory" => integer 8776912
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.756
        "start_memory" => integer 8808296
        "stop_time" => float 1416673748.7561
        "stop_memory" => integer 8808840
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7562
        "start_memory" => integer 8813488
        "stop_time" => float 1416673748.7562
        "stop_memory" => integer 8814056
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7571
        "start_memory" => integer 8914344
        "stop_time" => float 1416673748.7571
        "stop_memory" => integer 8914904
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7572
        "start_memory" => integer 8919616
        "stop_time" => float 1416673748.7572
        "stop_memory" => integer 8920192
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7582
        "start_memory" => integer 9027936
        "stop_time" => float 1416673748.7582
        "stop_memory" => integer 9028504
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7583
        "start_memory" => integer 9033424
        "stop_time" => float 1416673748.7583
        "stop_memory" => integer 9034008
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7592
        "start_memory" => integer 9055192
        "stop_time" => float 1416673748.7592
        "stop_memory" => integer 9055768
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7595
        "start_memory" => integer 9020248
        "stop_time" => float 1416673748.7595
        "stop_memory" => integer 9022184
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7604
        "start_memory" => integer 9092904
        "stop_time" => float 1416673748.7604
        "stop_memory" => integer 9094632
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416673748.7605
        "start_memory" => integer 9094392
        "stop_time" => float 1416673748.7605
        "stop_memory" => integer 9096120
    )
)

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