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 1410939077.6153
        "start_memory" => integer 1985616
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6154
        "start_memory" => integer 1987952
        "stop_time" => float 1410939077.6154
        "stop_memory" => integer 1988544
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6156
        "start_memory" => integer 1993496
        "stop_time" => float 1410939077.6157
        "stop_memory" => integer 1994088
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6168
        "start_memory" => integer 2119608
        "stop_time" => float 1410939077.6169
        "stop_memory" => integer 2120160
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6171
        "start_memory" => integer 2125080
        "stop_time" => float 1410939077.6172
        "stop_memory" => integer 2125664
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6174
        "start_memory" => integer 2136752
        "stop_time" => float 1410939077.6175
        "stop_memory" => integer 2137296
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6176
        "start_memory" => integer 2142024
        "stop_time" => float 1410939077.6177
        "stop_memory" => integer 2142600
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.618
        "start_memory" => integer 2151872
        "stop_time" => float 1410939077.6181
        "stop_memory" => integer 2152408
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6183
        "start_memory" => integer 2157080
        "stop_time" => float 1410939077.6183
        "stop_memory" => integer 2157712
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6198
        "start_memory" => integer 2318648
        "stop_time" => float 1410939077.6202
        "stop_memory" => integer 2319208
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6203
        "start_memory" => integer 2324056
        "stop_time" => float 1410939077.6204
        "stop_memory" => integer 2324632
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6208
        "start_memory" => integer 2338088
        "stop_time" => float 1410939077.6209
        "stop_memory" => integer 2338632
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.621
        "start_memory" => integer 2343280
        "stop_time" => float 1410939077.6211
        "stop_memory" => integer 2343848
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6214
        "start_memory" => integer 2398640
        "stop_time" => float 1410939077.6215
        "stop_memory" => integer 2399232
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6215
        "start_memory" => integer 2400392
        "stop_time" => float 1410939077.6216
        "stop_memory" => integer 2400968
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6217
        "start_memory" => integer 2405840
        "stop_time" => float 1410939077.6217
        "stop_memory" => integer 2406416
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6223
        "start_memory" => integer 2471880
        "stop_time" => float 1410939077.6224
        "stop_memory" => integer 2472496
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6224
        "start_memory" => integer 2473280
        "stop_time" => float 1410939077.6224
        "stop_memory" => integer 2473856
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6266
        "start_memory" => integer 3142552
        "stop_time" => float 1410939077.6266
        "stop_memory" => integer 3143080
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6267
        "start_memory" => integer 3148776
        "stop_time" => float 1410939077.6268
        "stop_memory" => integer 3149344
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6272
        "start_memory" => integer 3182096
        "stop_time" => float 1410939077.6272
        "stop_memory" => integer 3182640
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6273
        "start_memory" => integer 3187280
        "stop_time" => float 1410939077.6273
        "stop_memory" => integer 3187848
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6285
        "start_memory" => integer 3350688
        "stop_time" => float 1410939077.6286
        "stop_memory" => integer 3351264
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6287
        "start_memory" => integer 3356144
        "stop_time" => float 1410939077.6288
        "stop_memory" => integer 3356728
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6291
        "start_memory" => integer 3359416
        "stop_time" => float 1410939077.6292
        "stop_memory" => integer 3359976
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6293
        "start_memory" => integer 3364848
        "stop_time" => float 1410939077.6294
        "stop_memory" => integer 3365432
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6298
        "start_memory" => integer 3415104
        "stop_time" => float 1410939077.6299
        "stop_memory" => integer 3415648
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.63
        "start_memory" => integer 3420304
        "stop_time" => float 1410939077.63
        "stop_memory" => integer 3420880
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.631
        "start_memory" => integer 3518456
        "stop_time" => float 1410939077.6311
        "stop_memory" => integer 3518992
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6311
        "start_memory" => integer 3523632
        "stop_time" => float 1410939077.6312
        "stop_memory" => integer 3524200
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.6344
        "start_memory" => integer 3611264
        "stop_time" => float 1410939077.6345
        "stop_memory" => integer 3611856
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7164
        "start_memory" => integer 3653976
        "stop_time" => float 1410939077.7164
        "stop_memory" => integer 3654544
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7166
        "start_memory" => integer 3659208
        "stop_time" => float 1410939077.7166
        "stop_memory" => integer 3660040
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7177
        "start_memory" => integer 3700656
        "stop_time" => float 1410939077.7178
        "stop_memory" => integer 3701208
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.718
        "start_memory" => integer 3706040
        "stop_time" => float 1410939077.718
        "stop_memory" => integer 3706616
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7188
        "start_memory" => integer 3730328
        "stop_time" => float 1410939077.7189
        "stop_memory" => integer 3730880
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7191
        "start_memory" => integer 3735560
        "stop_time" => float 1410939077.7192
        "stop_memory" => integer 3736136
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7201
        "start_memory" => integer 3803312
        "stop_time" => float 1410939077.7202
        "stop_memory" => integer 3803896
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7203
        "start_memory" => integer 3821904
        "stop_time" => float 1410939077.7204
        "stop_memory" => integer 3822448
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7205
        "start_memory" => integer 3827312
        "stop_time" => float 1410939077.7205
        "stop_memory" => integer 3827896
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7217
        "start_memory" => integer 3893024
        "stop_time" => float 1410939077.7217
        "stop_memory" => integer 3893600
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7221
        "start_memory" => integer 3913000
        "stop_time" => float 1410939077.7222
        "stop_memory" => integer 3913576
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7227
        "start_memory" => integer 3961616
        "stop_time" => float 1410939077.7227
        "stop_memory" => integer 3962192
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.723
        "start_memory" => integer 3972848
        "stop_time" => float 1410939077.7231
        "stop_memory" => integer 3973424
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7233
        "start_memory" => integer 3991432
        "stop_time" => float 1410939077.7234
        "stop_memory" => integer 3992008
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7237
        "start_memory" => integer 4001672
        "stop_time" => float 1410939077.7237
        "stop_memory" => integer 4002248
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7241
        "start_memory" => integer 4022352
        "stop_time" => float 1410939077.7241
        "stop_memory" => integer 4022928
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7244
        "start_memory" => integer 4043408
        "stop_time" => float 1410939077.7245
        "stop_memory" => integer 4044000
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7248
        "start_memory" => integer 4057224
        "stop_time" => float 1410939077.7249
        "stop_memory" => integer 4057792
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7252
        "start_memory" => integer 4070000
        "stop_time" => float 1410939077.7253
        "stop_memory" => integer 4070576
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7257
        "start_memory" => integer 4118864
        "stop_time" => float 1410939077.7257
        "stop_memory" => integer 4119424
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7264
        "start_memory" => integer 4157896
        "stop_time" => float 1410939077.7265
        "stop_memory" => integer 4158480
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7269
        "start_memory" => integer 4177880
        "stop_time" => float 1410939077.727
        "stop_memory" => integer 4178456
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7274
        "start_memory" => integer 4209616
        "stop_time" => float 1410939077.7274
        "stop_memory" => integer 4210192
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7278
        "start_memory" => integer 4228904
        "stop_time" => float 1410939077.7278
        "stop_memory" => integer 4229448
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.728
        "start_memory" => integer 4234120
        "stop_time" => float 1410939077.728
        "stop_memory" => integer 4234696
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7284
        "start_memory" => integer 4265560
        "stop_time" => float 1410939077.7284
        "stop_memory" => integer 4266096
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7285
        "start_memory" => integer 4270744
        "stop_time" => float 1410939077.7286
        "stop_memory" => integer 4271312
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7316
        "start_memory" => integer 4412880
        "stop_time" => float 1410939077.7316
        "stop_memory" => integer 4413456
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7417
        "start_memory" => integer 4466272
        "stop_time" => float 1410939077.7418
        "stop_memory" => integer 4466824
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7419
        "start_memory" => integer 4471656
        "stop_time" => float 1410939077.742
        "stop_memory" => integer 4472232
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7479
        "start_memory" => integer 4497696
        "stop_time" => float 1410939077.748
        "stop_memory" => integer 4498280
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7481
        "start_memory" => integer 4503232
        "stop_time" => float 1410939077.7482
        "stop_memory" => integer 4503808
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7533
        "start_memory" => integer 4529392
        "stop_time" => float 1410939077.7534
        "stop_memory" => integer 4529952
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7534
        "start_memory" => integer 4534808
        "stop_time" => float 1410939077.7535
        "stop_memory" => integer 4535888
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7543
        "start_memory" => integer 4624616
        "stop_time" => float 1410939077.7543
        "stop_memory" => integer 4625216
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7598
        "start_memory" => integer 4632136
        "stop_time" => float 1410939077.7598
        "stop_memory" => integer 4632688
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7599
        "start_memory" => integer 4637568
        "stop_time" => float 1410939077.7599
        "stop_memory" => integer 4638152
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7778
        "start_memory" => integer 4695040
        "stop_time" => float 1410939077.7779
        "stop_memory" => integer 4695600
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7781
        "start_memory" => integer 4700520
        "stop_time" => float 1410939077.7781
        "stop_memory" => integer 4701104
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7783
        "start_memory" => integer 4724912
        "stop_time" => float 1410939077.7783
        "stop_memory" => integer 4725488
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7793
        "start_memory" => integer 4734568
        "stop_time" => float 1410939077.7793
        "stop_memory" => integer 4735128
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7794
        "start_memory" => integer 4739992
        "stop_time" => float 1410939077.7795
        "stop_memory" => integer 4740576
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7808
        "start_memory" => integer 4820056
        "stop_time" => float 1410939077.7808
        "stop_memory" => integer 4820616
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.781
        "start_memory" => integer 4825496
        "stop_time" => float 1410939077.781
        "stop_memory" => integer 4826080
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7867
        "start_memory" => integer 4851776
        "stop_time" => float 1410939077.7868
        "stop_memory" => integer 4852336
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7869
        "start_memory" => integer 4857200
        "stop_time" => float 1410939077.7869
        "stop_memory" => integer 4857784
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7878
        "start_memory" => integer 4879176
        "stop_time" => float 1410939077.7879
        "stop_memory" => integer 4879704
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.788
        "start_memory" => integer 4884352
        "stop_time" => float 1410939077.7881
        "stop_memory" => integer 4884928
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.79
        "start_memory" => integer 4895784
        "stop_time" => float 1410939077.79
        "stop_memory" => integer 4896376
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7902
        "start_memory" => integer 4901264
        "stop_time" => float 1410939077.7902
        "stop_memory" => integer 4901840
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7942
        "start_memory" => integer 4946816
        "stop_time" => float 1410939077.7943
        "stop_memory" => integer 4947392
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7948
        "start_memory" => integer 4958528
        "stop_time" => float 1410939077.7949
        "stop_memory" => integer 4959072
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.795
        "start_memory" => integer 4964968
        "stop_time" => float 1410939077.7951
        "stop_memory" => integer 4965544
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.7989
        "start_memory" => integer 4987000
        "stop_time" => float 1410939077.7989
        "stop_memory" => integer 4987584
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8007
        "start_memory" => integer 4993152
        "stop_time" => float 1410939077.8008
        "stop_memory" => integer 4993720
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8009
        "start_memory" => integer 4998568
        "stop_time" => float 1410939077.801
        "stop_memory" => integer 4999152
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.804
        "start_memory" => integer 5132936
        "stop_time" => float 1410939077.8041
        "stop_memory" => integer 5133512
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8042
        "start_memory" => integer 5138464
        "stop_time" => float 1410939077.8042
        "stop_memory" => integer 5139056
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.805
        "start_memory" => integer 5153912
        "stop_time" => float 1410939077.805
        "stop_memory" => integer 5154480
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8051
        "start_memory" => integer 5159440
        "stop_time" => float 1410939077.8052
        "stop_memory" => integer 5160032
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.807
        "start_memory" => integer 5165992
        "stop_time" => float 1410939077.8071
        "stop_memory" => integer 5166544
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8072
        "start_memory" => integer 5171416
        "stop_time" => float 1410939077.8072
        "stop_memory" => integer 5171992
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8086
        "start_memory" => integer 5316584
        "stop_time" => float 1410939077.8086
        "stop_memory" => integer 5317160
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8087
        "start_memory" => integer 5322120
        "stop_time" => float 1410939077.8088
        "stop_memory" => integer 5322712
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8091
        "start_memory" => integer 5343392
        "stop_time" => float 1410939077.8091
        "stop_memory" => integer 5343960
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8092
        "start_memory" => integer 5348848
        "stop_time" => float 1410939077.8092
        "stop_memory" => integer 5349424
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8105
        "start_memory" => integer 5411720
        "stop_time" => float 1410939077.8106
        "stop_memory" => integer 5412280
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8107
        "start_memory" => integer 5417152
        "stop_time" => float 1410939077.8107
        "stop_memory" => integer 5417736
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8122
        "start_memory" => integer 5483240
        "stop_time" => float 1410939077.8122
        "stop_memory" => integer 5483800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8123
        "start_memory" => integer 5488664
        "stop_time" => float 1410939077.8124
        "stop_memory" => integer 5489248
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8136
        "start_memory" => integer 5531904
        "stop_time" => float 1410939077.8137
        "stop_memory" => integer 5532480
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8138
        "start_memory" => integer 5537448
        "stop_time" => float 1410939077.8138
        "stop_memory" => integer 5538040
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8152
        "start_memory" => integer 5596872
        "stop_time" => float 1410939077.8153
        "stop_memory" => integer 5597456
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8154
        "start_memory" => integer 5602520
        "stop_time" => float 1410939077.8155
        "stop_memory" => integer 5603120
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8157
        "start_memory" => integer 5622792
        "stop_time" => float 1410939077.8157
        "stop_memory" => integer 5623368
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8158
        "start_memory" => integer 5628432
        "stop_time" => float 1410939077.8159
        "stop_memory" => integer 5629032
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8175
        "start_memory" => integer 5693496
        "stop_time" => float 1410939077.8175
        "stop_memory" => integer 5694072
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8176
        "start_memory" => integer 5699136
        "stop_time" => float 1410939077.8176
        "stop_memory" => integer 5699736
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8189
        "start_memory" => integer 5748064
        "stop_time" => float 1410939077.8189
        "stop_memory" => integer 5748640
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8191
        "start_memory" => integer 5753696
        "stop_time" => float 1410939077.8192
        "stop_memory" => integer 5754296
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8205
        "start_memory" => integer 5795600
        "stop_time" => float 1410939077.8205
        "stop_memory" => integer 5796176
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8207
        "start_memory" => integer 5801240
        "stop_time" => float 1410939077.8207
        "stop_memory" => integer 5801840
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8225
        "start_memory" => integer 5914768
        "stop_time" => float 1410939077.8226
        "stop_memory" => integer 5915344
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8227
        "start_memory" => integer 5920408
        "stop_time" => float 1410939077.8228
        "stop_memory" => integer 5921008
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8261
        "start_memory" => integer 5969648
        "stop_time" => float 1410939077.8261
        "stop_memory" => integer 5970208
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8264
        "start_memory" => integer 5975176
        "stop_time" => float 1410939077.8264
        "stop_memory" => integer 5975768
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8275
        "start_memory" => integer 5998880
        "stop_time" => float 1410939077.8276
        "stop_memory" => integer 5999400
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8277
        "start_memory" => integer 6004040
        "stop_time" => float 1410939077.8277
        "stop_memory" => integer 6004608
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8289
        "start_memory" => integer 6122256
        "stop_time" => float 1410939077.829
        "stop_memory" => integer 6122800
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8297
        "start_memory" => integer 6123856
        "stop_time" => float 1410939077.8297
        "stop_memory" => integer 6124424
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8298
        "start_memory" => integer 6129096
        "stop_time" => float 1410939077.8298
        "stop_memory" => integer 6129680
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8355
        "start_memory" => integer 6150000
        "stop_time" => float 1410939077.8356
        "stop_memory" => integer 6150536
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8357
        "start_memory" => integer 6155184
        "stop_time" => float 1410939077.8358
        "stop_memory" => integer 6155752
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8393
        "start_memory" => integer 6193256
        "stop_time" => float 1410939077.8394
        "stop_memory" => integer 6193800
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8395
        "start_memory" => integer 6198440
        "stop_time" => float 1410939077.8396
        "stop_memory" => integer 6199008
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8405
        "start_memory" => integer 6241464
        "stop_time" => float 1410939077.8406
        "stop_memory" => integer 6242008
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8407
        "start_memory" => integer 6246648
        "stop_time" => float 1410939077.8409
        "stop_memory" => integer 6247216
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8419
        "start_memory" => integer 6291424
        "stop_time" => float 1410939077.842
        "stop_memory" => integer 6292992
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8421
        "start_memory" => integer 6297648
        "stop_time" => float 1410939077.8422
        "stop_memory" => integer 6298216
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.844
        "start_memory" => integer 6373728
        "stop_time" => float 1410939077.8441
        "stop_memory" => integer 6374288
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8443
        "start_memory" => integer 6378944
        "stop_time" => float 1410939077.8444
        "stop_memory" => integer 6379512
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8478
        "start_memory" => integer 6401712
        "stop_time" => float 1410939077.8479
        "stop_memory" => integer 6402256
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8481
        "start_memory" => integer 6406896
        "stop_time" => float 1410939077.8482
        "stop_memory" => integer 6407464
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8504
        "start_memory" => integer 6436944
        "stop_time" => float 1410939077.8505
        "stop_memory" => integer 6437504
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8506
        "start_memory" => integer 6442352
        "stop_time" => float 1410939077.8507
        "stop_memory" => integer 6442928
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8519
        "start_memory" => integer 6463224
        "stop_time" => float 1410939077.852
        "stop_memory" => integer 6463792
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8521
        "start_memory" => integer 6468728
        "stop_time" => float 1410939077.8523
        "stop_memory" => integer 6469312
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8533
        "start_memory" => integer 6484336
        "stop_time" => float 1410939077.8533
        "stop_memory" => integer 6484896
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8534
        "start_memory" => integer 6489832
        "stop_time" => float 1410939077.8535
        "stop_memory" => integer 6490416
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8543
        "start_memory" => integer 6505456
        "stop_time" => float 1410939077.8544
        "stop_memory" => integer 6506016
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8545
        "start_memory" => integer 6510952
        "stop_time" => float 1410939077.8546
        "stop_memory" => integer 6511536
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8555
        "start_memory" => integer 6526584
        "stop_time" => float 1410939077.8555
        "stop_memory" => integer 6527144
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8556
        "start_memory" => integer 6532080
        "stop_time" => float 1410939077.8557
        "stop_memory" => integer 6532664
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8566
        "start_memory" => integer 6547688
        "stop_time" => float 1410939077.8566
        "stop_memory" => integer 6548248
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8568
        "start_memory" => integer 6553184
        "stop_time" => float 1410939077.8569
        "stop_memory" => integer 6553768
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8577
        "start_memory" => integer 6568792
        "stop_time" => float 1410939077.8577
        "stop_memory" => integer 6569352
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8579
        "start_memory" => integer 6574288
        "stop_time" => float 1410939077.8579
        "stop_memory" => integer 6574872
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8589
        "start_memory" => integer 6589928
        "stop_time" => float 1410939077.859
        "stop_memory" => integer 6590488
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8591
        "start_memory" => integer 6595424
        "stop_time" => float 1410939077.8592
        "stop_memory" => integer 6596008
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8601
        "start_memory" => integer 6611032
        "stop_time" => float 1410939077.8602
        "stop_memory" => integer 6611592
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8603
        "start_memory" => integer 6616528
        "stop_time" => float 1410939077.8603
        "stop_memory" => integer 6617112
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8611
        "start_memory" => integer 6632248
        "stop_time" => float 1410939077.8612
        "stop_memory" => integer 6632808
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8613
        "start_memory" => integer 6637744
        "stop_time" => float 1410939077.8613
        "stop_memory" => integer 6638328
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8623
        "start_memory" => integer 6653360
        "stop_time" => float 1410939077.8623
        "stop_memory" => integer 6653920
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8625
        "start_memory" => integer 6658856
        "stop_time" => float 1410939077.8625
        "stop_memory" => integer 6659440
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8635
        "start_memory" => integer 6674480
        "stop_time" => float 1410939077.8636
        "stop_memory" => integer 6675040
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8637
        "start_memory" => integer 6679976
        "stop_time" => float 1410939077.8637
        "stop_memory" => integer 6680560
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8647
        "start_memory" => integer 6695568
        "stop_time" => float 1410939077.8647
        "stop_memory" => integer 6696128
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8649
        "start_memory" => integer 6701064
        "stop_time" => float 1410939077.8649
        "stop_memory" => integer 6701648
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8658
        "start_memory" => integer 6716672
        "stop_time" => float 1410939077.8658
        "stop_memory" => integer 6717232
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.866
        "start_memory" => integer 6722168
        "stop_time" => float 1410939077.8661
        "stop_memory" => integer 6722752
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8669
        "start_memory" => integer 6737808
        "stop_time" => float 1410939077.867
        "stop_memory" => integer 6738368
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8671
        "start_memory" => integer 6743304
        "stop_time" => float 1410939077.8672
        "stop_memory" => integer 6743888
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8681
        "start_memory" => integer 6758944
        "stop_time" => float 1410939077.8682
        "stop_memory" => integer 6759504
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8684
        "start_memory" => integer 6764440
        "stop_time" => float 1410939077.8684
        "stop_memory" => integer 6765024
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8693
        "start_memory" => integer 6780072
        "stop_time" => float 1410939077.8694
        "stop_memory" => integer 6780632
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8695
        "start_memory" => integer 6785568
        "stop_time" => float 1410939077.8696
        "stop_memory" => integer 6786152
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8705
        "start_memory" => integer 6801336
        "stop_time" => float 1410939077.8706
        "stop_memory" => integer 6801896
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8707
        "start_memory" => integer 6806832
        "stop_time" => float 1410939077.8707
        "stop_memory" => integer 6807416
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8716
        "start_memory" => integer 6822488
        "stop_time" => float 1410939077.8717
        "stop_memory" => integer 6823048
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8718
        "start_memory" => integer 6827984
        "stop_time" => float 1410939077.8719
        "stop_memory" => integer 6828568
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8728
        "start_memory" => integer 6843624
        "stop_time" => float 1410939077.8729
        "stop_memory" => integer 6844184
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.873
        "start_memory" => integer 6849120
        "stop_time" => float 1410939077.8731
        "stop_memory" => integer 6849704
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8739
        "start_memory" => integer 6864752
        "stop_time" => float 1410939077.874
        "stop_memory" => integer 6865312
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8741
        "start_memory" => integer 6870248
        "stop_time" => float 1410939077.8742
        "stop_memory" => integer 6870832
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8748
        "start_memory" => integer 6885856
        "stop_time" => float 1410939077.8748
        "stop_memory" => integer 6886416
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8749
        "start_memory" => integer 6891352
        "stop_time" => float 1410939077.875
        "stop_memory" => integer 6891936
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8757
        "start_memory" => integer 6906960
        "stop_time" => float 1410939077.8758
        "stop_memory" => integer 6907520
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8759
        "start_memory" => integer 6912456
        "stop_time" => float 1410939077.876
        "stop_memory" => integer 6913040
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8768
        "start_memory" => integer 6928096
        "stop_time" => float 1410939077.8769
        "stop_memory" => integer 6928656
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.877
        "start_memory" => integer 6933592
        "stop_time" => float 1410939077.877
        "stop_memory" => integer 6934176
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8779
        "start_memory" => integer 6949216
        "stop_time" => float 1410939077.8779
        "stop_memory" => integer 6949776
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.878
        "start_memory" => integer 6954712
        "stop_time" => float 1410939077.8782
        "stop_memory" => integer 6955296
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8803
        "start_memory" => integer 6970560
        "stop_time" => float 1410939077.8804
        "stop_memory" => integer 6971120
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8805
        "start_memory" => integer 6976032
        "stop_time" => float 1410939077.8805
        "stop_memory" => integer 6976600
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.884
        "start_memory" => integer 7014648
        "stop_time" => float 1410939077.884
        "stop_memory" => integer 7015200
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8841
        "start_memory" => integer 7019872
        "stop_time" => float 1410939077.8842
        "stop_memory" => integer 7020448
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.886
        "start_memory" => integer 7151552
        "stop_time" => float 1410939077.8861
        "stop_memory" => integer 7152104
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8863
        "start_memory" => integer 7156784
        "stop_time" => float 1410939077.8864
        "stop_memory" => integer 7157360
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8889
        "start_memory" => integer 7326520
        "stop_time" => float 1410939077.889
        "stop_memory" => integer 7327072
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8891
        "start_memory" => integer 7331760
        "stop_time" => float 1410939077.8892
        "stop_memory" => integer 7332320
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8917
        "start_memory" => integer 7387984
        "stop_time" => float 1410939077.8918
        "stop_memory" => integer 7388560
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8918
        "start_memory" => integer 7393456
        "stop_time" => float 1410939077.8919
        "stop_memory" => integer 7394040
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8928
        "start_memory" => integer 7434088
        "stop_time" => float 1410939077.8928
        "stop_memory" => integer 7434664
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8929
        "start_memory" => integer 7439616
        "stop_time" => float 1410939077.893
        "stop_memory" => integer 7440208
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8945
        "start_memory" => integer 7466136
        "stop_time" => float 1410939077.8946
        "stop_memory" => integer 7466704
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.8947
        "start_memory" => integer 7471576
        "stop_time" => float 1410939077.8947
        "stop_memory" => integer 7472152
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.897
        "start_memory" => integer 7498208
        "stop_time" => float 1410939077.8971
        "stop_memory" => integer 7498784
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9009
        "start_memory" => integer 7509704
        "stop_time" => float 1410939077.9009
        "stop_memory" => integer 7510264
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9014
        "start_memory" => integer 7520136
        "stop_time" => float 1410939077.9014
        "stop_memory" => integer 7520704
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9033
        "start_memory" => integer 7531352
        "stop_time" => float 1410939077.9034
        "stop_memory" => integer 7531904
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9035
        "start_memory" => integer 7536640
        "stop_time" => float 1410939077.9036
        "stop_memory" => integer 7537216
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9042
        "start_memory" => integer 7542664
        "stop_time" => float 1410939077.9043
        "stop_memory" => integer 7543216
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9044
        "start_memory" => integer 7547960
        "stop_time" => float 1410939077.9045
        "stop_memory" => integer 7548536
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9051
        "start_memory" => integer 7553984
        "stop_time" => float 1410939077.9052
        "stop_memory" => integer 7554536
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9053
        "start_memory" => integer 7559272
        "stop_time" => float 1410939077.9054
        "stop_memory" => integer 7559848
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9067
        "start_memory" => integer 7571856
        "stop_time" => float 1410939077.9067
        "stop_memory" => integer 7572392
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9068
        "start_memory" => integer 7577048
        "stop_time" => float 1410939077.907
        "stop_memory" => integer 7577608
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9077
        "start_memory" => integer 7580672
        "stop_time" => float 1410939077.9078
        "stop_memory" => integer 7581248
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.908
        "start_memory" => integer 7590512
        "stop_time" => float 1410939077.908
        "stop_memory" => integer 7591048
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9082
        "start_memory" => integer 7597768
        "stop_time" => float 1410939077.9082
        "stop_memory" => integer 7598336
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9108
        "start_memory" => integer 7975720
        "stop_time" => float 1410939077.9109
        "stop_memory" => integer 7976296
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9121
        "start_memory" => integer 8050792
        "stop_time" => float 1410939077.9122
        "stop_memory" => integer 8051376
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9131
        "start_memory" => integer 8096608
        "stop_time" => float 1410939077.9132
        "stop_memory" => integer 8097168
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9133
        "start_memory" => integer 8102032
        "stop_time" => float 1410939077.9134
        "stop_memory" => integer 8102616
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9144
        "start_memory" => integer 8111576
        "stop_time" => float 1410939077.9145
        "stop_memory" => integer 8112120
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9153
        "start_memory" => integer 8143584
        "stop_time" => float 1410939077.9153
        "stop_memory" => integer 8144144
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9161
        "start_memory" => integer 8178576
        "stop_time" => float 1410939077.9162
        "stop_memory" => integer 8179152
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.917
        "start_memory" => integer 8211264
        "stop_time" => float 1410939077.9171
        "stop_memory" => integer 8211800
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9172
        "start_memory" => integer 8216456
        "stop_time" => float 1410939077.9173
        "stop_memory" => integer 8217024
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9203
        "start_memory" => integer 8258832
        "stop_time" => float 1410939077.9204
        "stop_memory" => integer 8259424
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9205
        "start_memory" => integer 8264608
        "stop_time" => float 1410939077.9206
        "stop_memory" => integer 8265200
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9244
        "start_memory" => integer 8309320
        "stop_time" => float 1410939077.9245
        "stop_memory" => integer 8309872
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9246
        "start_memory" => integer 8314808
        "stop_time" => float 1410939077.9246
        "stop_memory" => integer 8315392
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9298
        "start_memory" => integer 8417080
        "stop_time" => float 1410939077.93
        "stop_memory" => integer 8417608
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9301
        "start_memory" => integer 8422264
        "stop_time" => float 1410939077.9303
        "stop_memory" => integer 8422832
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9309
        "start_memory" => integer 8437760
        "stop_time" => float 1410939077.931
        "stop_memory" => integer 8438312
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9311
        "start_memory" => integer 8442960
        "stop_time" => float 1410939077.9311
        "stop_memory" => integer 8443528
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9323
        "start_memory" => integer 8509960
        "stop_time" => float 1410939077.9323
        "stop_memory" => integer 8510520
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9325
        "start_memory" => integer 8515376
        "stop_time" => float 1410939077.9326
        "stop_memory" => integer 8515952
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9333
        "start_memory" => integer 8539392
        "stop_time" => float 1410939077.9333
        "stop_memory" => integer 8540000
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9334
        "start_memory" => integer 8544920
        "stop_time" => float 1410939077.9335
        "stop_memory" => integer 8545512
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9351
        "start_memory" => integer 8616496
        "stop_time" => float 1410939077.9352
        "stop_memory" => integer 8617032
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9354
        "start_memory" => integer 8621904
        "stop_time" => float 1410939077.9354
        "stop_memory" => integer 8622456
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9363
        "start_memory" => integer 8650160
        "stop_time" => float 1410939077.9363
        "stop_memory" => integer 8650696
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9364
        "start_memory" => integer 8655352
        "stop_time" => float 1410939077.9365
        "stop_memory" => integer 8655920
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9383
        "start_memory" => integer 8777144
        "stop_time" => float 1410939077.9383
        "stop_memory" => integer 8777688
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9384
        "start_memory" => integer 8782360
        "stop_time" => float 1410939077.9385
        "stop_memory" => integer 8782928
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9451
        "start_memory" => integer 8814312
        "stop_time" => float 1410939077.9452
        "stop_memory" => integer 8814856
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9454
        "start_memory" => integer 8819504
        "stop_time" => float 1410939077.9455
        "stop_memory" => integer 8820072
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9468
        "start_memory" => integer 8920360
        "stop_time" => float 1410939077.947
        "stop_memory" => integer 8920920
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9471
        "start_memory" => integer 8925632
        "stop_time" => float 1410939077.9472
        "stop_memory" => integer 8926208
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.949
        "start_memory" => integer 9033952
        "stop_time" => float 1410939077.9491
        "stop_memory" => integer 9034520
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9493
        "start_memory" => integer 9039440
        "stop_time" => float 1410939077.9494
        "stop_memory" => integer 9040024
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9509
        "start_memory" => integer 9061208
        "stop_time" => float 1410939077.951
        "stop_memory" => integer 9061784
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9515
        "start_memory" => integer 9026288
        "stop_time" => float 1410939077.9516
        "stop_memory" => integer 9028224
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9526
        "start_memory" => integer 9098944
        "stop_time" => float 1410939077.9527
        "stop_memory" => integer 9100672
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1410939077.9528
        "start_memory" => integer 9100432
        "stop_time" => float 1410939077.9529
        "stop_memory" => integer 9102160
    )
)

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