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 1441034272.3292
        "start_memory" => integer 1116232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3292
        "start_memory" => integer 1118488
        "stop_time" => float 1441034272.3293
        "stop_memory" => integer 1119176
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3294
        "start_memory" => integer 1122720
        "stop_time" => float 1441034272.3295
        "stop_memory" => integer 1123328
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3304
        "start_memory" => integer 1199792
        "stop_time" => float 1441034272.3305
        "stop_memory" => integer 1200344
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3306
        "start_memory" => integer 1203848
        "stop_time" => float 1441034272.3307
        "stop_memory" => integer 1204440
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3309
        "start_memory" => integer 1212408
        "stop_time" => float 1441034272.331
        "stop_memory" => integer 1212960
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.331
        "start_memory" => integer 1216424
        "stop_time" => float 1441034272.3311
        "stop_memory" => integer 1217008
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3313
        "start_memory" => integer 1225864
        "stop_time" => float 1441034272.3314
        "stop_memory" => integer 1226424
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3315
        "start_memory" => integer 1229864
        "stop_time" => float 1441034272.3316
        "stop_memory" => integer 1230520
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3328
        "start_memory" => integer 1325368
        "stop_time" => float 1441034272.3329
        "stop_memory" => integer 1325968
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.333
        "start_memory" => integer 1329448
        "stop_time" => float 1441034272.3331
        "stop_memory" => integer 1330040
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3333
        "start_memory" => integer 1341824
        "stop_time" => float 1441034272.3334
        "stop_memory" => integer 1342376
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3335
        "start_memory" => integer 1345800
        "stop_time" => float 1441034272.3336
        "stop_memory" => integer 1346368
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.334
        "start_memory" => integer 1380760
        "stop_time" => float 1441034272.3341
        "stop_memory" => integer 1381360
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3341
        "start_memory" => integer 1382432
        "stop_time" => float 1441034272.3342
        "stop_memory" => integer 1382968
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3343
        "start_memory" => integer 1386376
        "stop_time" => float 1441034272.3344
        "stop_memory" => integer 1386952
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3347
        "start_memory" => integer 1406200
        "stop_time" => float 1441034272.3348
        "stop_memory" => integer 1406904
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3349
        "start_memory" => integer 1410328
        "stop_time" => float 1441034272.335
        "stop_memory" => integer 1410896
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.336
        "start_memory" => integer 1506504
        "stop_time" => float 1441034272.3361
        "stop_memory" => integer 1507104
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3362
        "start_memory" => integer 1510608
        "stop_time" => float 1441034272.3362
        "stop_memory" => integer 1511208
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3368
        "start_memory" => integer 1550488
        "stop_time" => float 1441034272.3369
        "stop_memory" => integer 1550992
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3369
        "start_memory" => integer 1551632
        "stop_time" => float 1441034272.3369
        "stop_memory" => integer 1552208
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3415
        "start_memory" => integer 1951384
        "stop_time" => float 1441034272.3416
        "stop_memory" => integer 1951968
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3417
        "start_memory" => integer 1955472
        "stop_time" => float 1441034272.3418
        "stop_memory" => integer 1956072
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.342
        "start_memory" => integer 1957704
        "stop_time" => float 1441034272.3421
        "stop_memory" => integer 1958304
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3422
        "start_memory" => integer 1961816
        "stop_time" => float 1441034272.3422
        "stop_memory" => integer 1962392
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3427
        "start_memory" => integer 1992040
        "stop_time" => float 1441034272.3427
        "stop_memory" => integer 1992600
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3428
        "start_memory" => integer 1996104
        "stop_time" => float 1441034272.3429
        "stop_memory" => integer 1996704
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3438
        "start_memory" => integer 2059016
        "stop_time" => float 1441034272.3439
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.344
        "start_memory" => integer 2063000
        "stop_time" => float 1441034272.344
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.3457
        "start_memory" => integer 2122480
        "stop_time" => float 1441034272.3458
        "stop_memory" => integer 2123096
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4192
        "start_memory" => integer 2163984
        "stop_time" => float 1441034272.4192
        "stop_memory" => integer 2164560
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4194
        "start_memory" => integer 2167984
        "stop_time" => float 1441034272.4194
        "stop_memory" => integer 2168824
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4204
        "start_memory" => integer 2195072
        "stop_time" => float 1441034272.4204
        "stop_memory" => integer 2195648
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4205
        "start_memory" => integer 2199128
        "stop_time" => float 1441034272.4205
        "stop_memory" => integer 2199720
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4212
        "start_memory" => integer 2217016
        "stop_time" => float 1441034272.4213
        "stop_memory" => integer 2217584
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4214
        "start_memory" => integer 2221048
        "stop_time" => float 1441034272.4215
        "stop_memory" => integer 2221640
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4222
        "start_memory" => integer 2265096
        "stop_time" => float 1441034272.4222
        "stop_memory" => integer 2265696
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4224
        "start_memory" => integer 2277232
        "stop_time" => float 1441034272.4225
        "stop_memory" => integer 2277808
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4226
        "start_memory" => integer 2281320
        "stop_time" => float 1441034272.4226
        "stop_memory" => integer 2281904
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4233
        "start_memory" => integer 2319920
        "stop_time" => float 1441034272.4234
        "stop_memory" => integer 2320520
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4237
        "start_memory" => integer 2332640
        "stop_time" => float 1441034272.4237
        "stop_memory" => integer 2333216
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4243
        "start_memory" => integer 2360232
        "stop_time" => float 1441034272.4243
        "stop_memory" => integer 2360832
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4246
        "start_memory" => integer 2368648
        "stop_time" => float 1441034272.4247
        "stop_memory" => integer 2369224
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.425
        "start_memory" => integer 2382376
        "stop_time" => float 1441034272.425
        "stop_memory" => integer 2382976
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4253
        "start_memory" => integer 2389992
        "stop_time" => float 1441034272.4254
        "stop_memory" => integer 2390584
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4257
        "start_memory" => integer 2403888
        "stop_time" => float 1441034272.4257
        "stop_memory" => integer 2404480
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.426
        "start_memory" => integer 2418112
        "stop_time" => float 1441034272.4261
        "stop_memory" => integer 2418704
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4264
        "start_memory" => integer 2428184
        "stop_time" => float 1441034272.4264
        "stop_memory" => integer 2428776
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4267
        "start_memory" => integer 2437448
        "stop_time" => float 1441034272.4267
        "stop_memory" => integer 2438040
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4271
        "start_memory" => integer 2483376
        "stop_time" => float 1441034272.4272
        "stop_memory" => integer 2483952
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4276
        "start_memory" => integer 2506880
        "stop_time" => float 1441034272.4277
        "stop_memory" => integer 2507480
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.428
        "start_memory" => integer 2520776
        "stop_time" => float 1441034272.4281
        "stop_memory" => integer 2521352
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4285
        "start_memory" => integer 2540552
        "stop_time" => float 1441034272.4285
        "stop_memory" => integer 2541136
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4288
        "start_memory" => integer 2554792
        "stop_time" => float 1441034272.4289
        "stop_memory" => integer 2555360
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.429
        "start_memory" => integer 2558816
        "stop_time" => float 1441034272.429
        "stop_memory" => integer 2559400
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4293
        "start_memory" => integer 2581600
        "stop_time" => float 1441034272.4294
        "stop_memory" => integer 2582160
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4295
        "start_memory" => integer 2585592
        "stop_time" => float 1441034272.4296
        "stop_memory" => integer 2586176
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4329
        "start_memory" => integer 2680104
        "stop_time" => float 1441034272.4331
        "stop_memory" => integer 2680680
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4432
        "start_memory" => integer 2711256
        "stop_time" => float 1441034272.4432
        "stop_memory" => integer 2711832
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4434
        "start_memory" => integer 2715312
        "stop_time" => float 1441034272.4434
        "stop_memory" => integer 2715904
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4492
        "start_memory" => integer 2735016
        "stop_time" => float 1441034272.4493
        "stop_memory" => integer 2735600
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4495
        "start_memory" => integer 2739152
        "stop_time" => float 1441034272.4495
        "stop_memory" => integer 2739752
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4554
        "start_memory" => integer 2758936
        "stop_time" => float 1441034272.4555
        "stop_memory" => integer 2759496
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4556
        "start_memory" => integer 2763000
        "stop_time" => float 1441034272.4557
        "stop_memory" => integer 2764104
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4565
        "start_memory" => integer 2818624
        "stop_time" => float 1441034272.4566
        "stop_memory" => integer 2819224
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4624
        "start_memory" => integer 2826536
        "stop_time" => float 1441034272.4624
        "stop_memory" => integer 2827112
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4625
        "start_memory" => integer 2830640
        "stop_time" => float 1441034272.4626
        "stop_memory" => integer 2831240
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4735
        "start_memory" => integer 2870904
        "stop_time" => float 1441034272.4735
        "stop_memory" => integer 2871480
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4736
        "start_memory" => integer 2875008
        "stop_time" => float 1441034272.4737
        "stop_memory" => integer 2875608
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4739
        "start_memory" => integer 2891576
        "stop_time" => float 1441034272.4739
        "stop_memory" => integer 2892152
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4744
        "start_memory" => integer 2899456
        "stop_time" => float 1441034272.4744
        "stop_memory" => integer 2900024
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4745
        "start_memory" => integer 2903496
        "stop_time" => float 1441034272.4745
        "stop_memory" => integer 2904088
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4753
        "start_memory" => integer 2953528
        "stop_time" => float 1441034272.4753
        "stop_memory" => integer 2954112
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4754
        "start_memory" => integer 2957616
        "stop_time" => float 1441034272.4754
        "stop_memory" => integer 2958216
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4794
        "start_memory" => integer 2977616
        "stop_time" => float 1441034272.4794
        "stop_memory" => integer 2978176
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4795
        "start_memory" => integer 2981672
        "stop_time" => float 1441034272.4796
        "stop_memory" => integer 2982264
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4802
        "start_memory" => integer 2997416
        "stop_time" => float 1441034272.4803
        "stop_memory" => integer 2997952
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4803
        "start_memory" => integer 3001360
        "stop_time" => float 1441034272.4804
        "stop_memory" => integer 3001936
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4816
        "start_memory" => integer 3008608
        "stop_time" => float 1441034272.4816
        "stop_memory" => integer 3009208
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4817
        "start_memory" => integer 3012720
        "stop_time" => float 1441034272.4817
        "stop_memory" => integer 3013320
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4849
        "start_memory" => integer 3048368
        "stop_time" => float 1441034272.485
        "stop_memory" => integer 3048960
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4858
        "start_memory" => integer 3056656
        "stop_time" => float 1441034272.4859
        "stop_memory" => integer 3057216
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.486
        "start_memory" => integer 3060704
        "stop_time" => float 1441034272.4861
        "stop_memory" => integer 3061296
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4905
        "start_memory" => integer 3078936
        "stop_time" => float 1441034272.4906
        "stop_memory" => integer 3079520
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.493
        "start_memory" => integer 3084120
        "stop_time" => float 1441034272.4931
        "stop_memory" => integer 3084688
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4932
        "start_memory" => integer 3088152
        "stop_time" => float 1441034272.4933
        "stop_memory" => integer 3088744
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4963
        "start_memory" => integer 3182800
        "stop_time" => float 1441034272.4964
        "stop_memory" => integer 3183400
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4965
        "start_memory" => integer 3186952
        "stop_time" => float 1441034272.4966
        "stop_memory" => integer 3187544
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4972
        "start_memory" => integer 3200432
        "stop_time" => float 1441034272.4973
        "stop_memory" => integer 3201024
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4974
        "start_memory" => integer 3204576
        "stop_time" => float 1441034272.4974
        "stop_memory" => integer 3205184
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4993
        "start_memory" => integer 3210216
        "stop_time" => float 1441034272.4994
        "stop_memory" => integer 3210784
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.4995
        "start_memory" => integer 3214288
        "stop_time" => float 1441034272.4996
        "stop_memory" => integer 3214888
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5012
        "start_memory" => integer 3309656
        "stop_time" => float 1441034272.5013
        "stop_memory" => integer 3310248
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5014
        "start_memory" => integer 3313800
        "stop_time" => float 1441034272.5015
        "stop_memory" => integer 3314408
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5017
        "start_memory" => integer 3326448
        "stop_time" => float 1441034272.5018
        "stop_memory" => integer 3327016
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5019
        "start_memory" => integer 3330520
        "stop_time" => float 1441034272.502
        "stop_memory" => integer 3331144
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5032
        "start_memory" => integer 3374776
        "stop_time" => float 1441034272.5033
        "stop_memory" => integer 3375352
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5034
        "start_memory" => integer 3378872
        "stop_time" => float 1441034272.5035
        "stop_memory" => integer 3379472
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5046
        "start_memory" => integer 3424104
        "stop_time" => float 1441034272.5047
        "stop_memory" => integer 3424680
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5048
        "start_memory" => integer 3428184
        "stop_time" => float 1441034272.5049
        "stop_memory" => integer 3428784
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5061
        "start_memory" => integer 3456096
        "stop_time" => float 1441034272.5062
        "stop_memory" => integer 3456688
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5063
        "start_memory" => integer 3460248
        "stop_time" => float 1441034272.5064
        "stop_memory" => integer 3460856
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5077
        "start_memory" => integer 3497072
        "stop_time" => float 1441034272.5078
        "stop_memory" => integer 3497672
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5079
        "start_memory" => integer 3501304
        "stop_time" => float 1441034272.508
        "stop_memory" => integer 3501920
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5082
        "start_memory" => integer 3514064
        "stop_time" => float 1441034272.5083
        "stop_memory" => integer 3514656
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5084
        "start_memory" => integer 3518280
        "stop_time" => float 1441034272.5084
        "stop_memory" => integer 3518896
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5097
        "start_memory" => integer 3571016
        "stop_time" => float 1441034272.5097
        "stop_memory" => integer 3571608
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5098
        "start_memory" => integer 3575216
        "stop_time" => float 1441034272.5099
        "stop_memory" => integer 3575832
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5112
        "start_memory" => integer 3608424
        "stop_time" => float 1441034272.5112
        "stop_memory" => integer 3609016
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5114
        "start_memory" => integer 3612640
        "stop_time" => float 1441034272.5114
        "stop_memory" => integer 3613256
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5126
        "start_memory" => integer 3641880
        "stop_time" => float 1441034272.5127
        "stop_memory" => integer 3642472
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5128
        "start_memory" => integer 3646080
        "stop_time" => float 1441034272.5129
        "stop_memory" => integer 3646696
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5145
        "start_memory" => integer 3722616
        "stop_time" => float 1441034272.5146
        "stop_memory" => integer 3723208
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5147
        "start_memory" => integer 3726816
        "stop_time" => float 1441034272.5148
        "stop_memory" => integer 3727432
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5176
        "start_memory" => integer 3763944
        "stop_time" => float 1441034272.5177
        "stop_memory" => integer 3764520
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5179
        "start_memory" => integer 3768080
        "stop_time" => float 1441034272.518
        "stop_memory" => integer 3768688
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5191
        "start_memory" => integer 3787016
        "stop_time" => float 1441034272.5192
        "stop_memory" => integer 3787552
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5193
        "start_memory" => integer 3791000
        "stop_time" => float 1441034272.5194
        "stop_memory" => integer 3791568
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5209
        "start_memory" => integer 3861128
        "stop_time" => float 1441034272.521
        "stop_memory" => integer 3861712
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5211
        "start_memory" => integer 3865168
        "stop_time" => float 1441034272.5212
        "stop_memory" => integer 3865744
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5261
        "start_memory" => integer 3879944
        "stop_time" => float 1441034272.5262
        "stop_memory" => integer 3880504
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5263
        "start_memory" => integer 3883936
        "stop_time" => float 1441034272.5264
        "stop_memory" => integer 3884520
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5285
        "start_memory" => integer 3906360
        "stop_time" => float 1441034272.5286
        "stop_memory" => integer 3906920
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5287
        "start_memory" => integer 3910344
        "stop_time" => float 1441034272.5287
        "stop_memory" => integer 3910912
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5295
        "start_memory" => integer 3934056
        "stop_time" => float 1441034272.5295
        "stop_memory" => integer 3934624
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5296
        "start_memory" => integer 3938056
        "stop_time" => float 1441034272.5297
        "stop_memory" => integer 3938624
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5303
        "start_memory" => integer 3964576
        "stop_time" => float 1441034272.5304
        "stop_memory" => integer 3965144
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5305
        "start_memory" => integer 3968568
        "stop_time" => float 1441034272.5306
        "stop_memory" => integer 3970160
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5317
        "start_memory" => integer 4017304
        "stop_time" => float 1441034272.5318
        "stop_memory" => integer 4017872
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5319
        "start_memory" => integer 4021312
        "stop_time" => float 1441034272.532
        "stop_memory" => integer 4021896
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5336
        "start_memory" => integer 4036440
        "stop_time" => float 1441034272.5337
        "stop_memory" => integer 4037000
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5338
        "start_memory" => integer 4040448
        "stop_time" => float 1441034272.5338
        "stop_memory" => integer 4041016
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5348
        "start_memory" => integer 4057648
        "stop_time" => float 1441034272.5349
        "stop_memory" => integer 4058232
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.535
        "start_memory" => integer 4061712
        "stop_time" => float 1441034272.535
        "stop_memory" => integer 4062304
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5355
        "start_memory" => integer 4078080
        "stop_time" => float 1441034272.5356
        "stop_memory" => integer 4078648
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5356
        "start_memory" => integer 4082152
        "stop_time" => float 1441034272.5357
        "stop_memory" => integer 4082744
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5362
        "start_memory" => integer 4095640
        "stop_time" => float 1441034272.5362
        "stop_memory" => integer 4096208
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5363
        "start_memory" => integer 4099712
        "stop_time" => float 1441034272.5363
        "stop_memory" => integer 4100304
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5369
        "start_memory" => integer 4113216
        "stop_time" => float 1441034272.537
        "stop_memory" => integer 4113784
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.537
        "start_memory" => integer 4117288
        "stop_time" => float 1441034272.5371
        "stop_memory" => integer 4117880
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5375
        "start_memory" => integer 4130792
        "stop_time" => float 1441034272.5376
        "stop_memory" => integer 4131360
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5377
        "start_memory" => integer 4134864
        "stop_time" => float 1441034272.5377
        "stop_memory" => integer 4135456
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5382
        "start_memory" => integer 4148352
        "stop_time" => float 1441034272.5382
        "stop_memory" => integer 4148920
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5383
        "start_memory" => integer 4152424
        "stop_time" => float 1441034272.5384
        "stop_memory" => integer 4153016
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5388
        "start_memory" => integer 4165912
        "stop_time" => float 1441034272.5389
        "stop_memory" => integer 4166480
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5389
        "start_memory" => integer 4169984
        "stop_time" => float 1441034272.539
        "stop_memory" => integer 4170576
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5394
        "start_memory" => integer 4183488
        "stop_time" => float 1441034272.5395
        "stop_memory" => integer 4184056
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5396
        "start_memory" => integer 4187560
        "stop_time" => float 1441034272.5396
        "stop_memory" => integer 4188152
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5401
        "start_memory" => integer 4201048
        "stop_time" => float 1441034272.5401
        "stop_memory" => integer 4201616
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5402
        "start_memory" => integer 4205120
        "stop_time" => float 1441034272.5403
        "stop_memory" => integer 4205712
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5407
        "start_memory" => integer 4218704
        "stop_time" => float 1441034272.5408
        "stop_memory" => integer 4219272
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5409
        "start_memory" => integer 4222776
        "stop_time" => float 1441034272.5409
        "stop_memory" => integer 4223368
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5414
        "start_memory" => integer 4236264
        "stop_time" => float 1441034272.5414
        "stop_memory" => integer 4236832
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5415
        "start_memory" => integer 4240336
        "stop_time" => float 1441034272.5415
        "stop_memory" => integer 4240928
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.542
        "start_memory" => integer 4253824
        "stop_time" => float 1441034272.542
        "stop_memory" => integer 4254392
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5421
        "start_memory" => integer 4257896
        "stop_time" => float 1441034272.5422
        "stop_memory" => integer 4258488
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5426
        "start_memory" => integer 4271368
        "stop_time" => float 1441034272.5427
        "stop_memory" => integer 4271936
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5427
        "start_memory" => integer 4275440
        "stop_time" => float 1441034272.5428
        "stop_memory" => integer 4276032
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5432
        "start_memory" => integer 4288928
        "stop_time" => float 1441034272.5433
        "stop_memory" => integer 4289496
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5433
        "start_memory" => integer 4293000
        "stop_time" => float 1441034272.5434
        "stop_memory" => integer 4293592
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5439
        "start_memory" => integer 4306504
        "stop_time" => float 1441034272.5439
        "stop_memory" => integer 4307072
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.544
        "start_memory" => integer 4310576
        "stop_time" => float 1441034272.544
        "stop_memory" => integer 4311168
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5445
        "start_memory" => integer 4324096
        "stop_time" => float 1441034272.5445
        "stop_memory" => integer 4324664
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5446
        "start_memory" => integer 4328168
        "stop_time" => float 1441034272.5447
        "stop_memory" => integer 4328760
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5451
        "start_memory" => integer 4341672
        "stop_time" => float 1441034272.5452
        "stop_memory" => integer 4342240
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5452
        "start_memory" => integer 4345744
        "stop_time" => float 1441034272.5453
        "stop_memory" => integer 4346336
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5459
        "start_memory" => integer 4359376
        "stop_time" => float 1441034272.546
        "stop_memory" => integer 4359944
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5461
        "start_memory" => integer 4363448
        "stop_time" => float 1441034272.5461
        "stop_memory" => integer 4364040
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5466
        "start_memory" => integer 4376968
        "stop_time" => float 1441034272.5466
        "stop_memory" => integer 4377536
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5467
        "start_memory" => integer 4381040
        "stop_time" => float 1441034272.5468
        "stop_memory" => integer 4381632
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5473
        "start_memory" => integer 4394544
        "stop_time" => float 1441034272.5473
        "stop_memory" => integer 4395112
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5474
        "start_memory" => integer 4398616
        "stop_time" => float 1441034272.5474
        "stop_memory" => integer 4399208
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5479
        "start_memory" => integer 4412120
        "stop_time" => float 1441034272.548
        "stop_memory" => integer 4412688
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5481
        "start_memory" => integer 4416192
        "stop_time" => float 1441034272.5481
        "stop_memory" => integer 4416784
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5486
        "start_memory" => integer 4429680
        "stop_time" => float 1441034272.5487
        "stop_memory" => integer 4430248
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5487
        "start_memory" => integer 4433752
        "stop_time" => float 1441034272.5488
        "stop_memory" => integer 4434344
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5493
        "start_memory" => integer 4447240
        "stop_time" => float 1441034272.5494
        "stop_memory" => integer 4447808
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5494
        "start_memory" => integer 4451312
        "stop_time" => float 1441034272.5495
        "stop_memory" => integer 4451904
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.55
        "start_memory" => integer 4464816
        "stop_time" => float 1441034272.5501
        "stop_memory" => integer 4465384
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5503
        "start_memory" => integer 4468888
        "stop_time" => float 1441034272.5504
        "stop_memory" => integer 4469480
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5509
        "start_memory" => integer 4482376
        "stop_time" => float 1441034272.551
        "stop_memory" => integer 4482944
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.551
        "start_memory" => integer 4486448
        "stop_time" => float 1441034272.5511
        "stop_memory" => integer 4487040
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5522
        "start_memory" => integer 4500176
        "stop_time" => float 1441034272.5523
        "stop_memory" => integer 4500744
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5523
        "start_memory" => integer 4504248
        "stop_time" => float 1441034272.5524
        "stop_memory" => integer 4504840
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5543
        "start_memory" => integer 4527760
        "stop_time" => float 1441034272.5544
        "stop_memory" => integer 4528328
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5545
        "start_memory" => integer 4531792
        "stop_time" => float 1441034272.5545
        "stop_memory" => integer 4532368
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5555
        "start_memory" => integer 4613528
        "stop_time" => float 1441034272.5555
        "stop_memory" => integer 4614104
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5556
        "start_memory" => integer 4617568
        "stop_time" => float 1441034272.5557
        "stop_memory" => integer 4618160
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5568
        "start_memory" => integer 4719336
        "stop_time" => float 1441034272.5569
        "stop_memory" => integer 4719888
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5569
        "start_memory" => integer 4723368
        "stop_time" => float 1441034272.557
        "stop_memory" => integer 4723952
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5587
        "start_memory" => integer 4756952
        "stop_time" => float 1441034272.5588
        "stop_memory" => integer 4757544
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5589
        "start_memory" => integer 4761040
        "stop_time" => float 1441034272.5589
        "stop_memory" => integer 4761640
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5595
        "start_memory" => integer 4787208
        "stop_time" => float 1441034272.5595
        "stop_memory" => integer 4787800
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5596
        "start_memory" => integer 4791376
        "stop_time" => float 1441034272.5597
        "stop_memory" => integer 4791984
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5606
        "start_memory" => integer 4810688
        "stop_time" => float 1441034272.5607
        "stop_memory" => integer 4811256
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5608
        "start_memory" => integer 4814784
        "stop_time" => float 1441034272.5608
        "stop_memory" => integer 4815384
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5623
        "start_memory" => integer 4833936
        "stop_time" => float 1441034272.5623
        "stop_memory" => integer 4834528
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5648
        "start_memory" => integer 4843848
        "stop_time" => float 1441034272.5649
        "stop_memory" => integer 4844424
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5651
        "start_memory" => integer 4852704
        "stop_time" => float 1441034272.5651
        "stop_memory" => integer 4853288
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5662
        "start_memory" => integer 4862376
        "stop_time" => float 1441034272.5662
        "stop_memory" => integer 4862928
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5663
        "start_memory" => integer 4866384
        "stop_time" => float 1441034272.5664
        "stop_memory" => integer 4866968
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5668
        "start_memory" => integer 4871024
        "stop_time" => float 1441034272.5669
        "stop_memory" => integer 4871584
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.567
        "start_memory" => integer 4875048
        "stop_time" => float 1441034272.567
        "stop_memory" => integer 4875648
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5674
        "start_memory" => integer 4879576
        "stop_time" => float 1441034272.5675
        "stop_memory" => integer 4880136
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5676
        "start_memory" => integer 4883688
        "stop_time" => float 1441034272.5677
        "stop_memory" => integer 4884272
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5685
        "start_memory" => integer 4893280
        "stop_time" => float 1441034272.5685
        "stop_memory" => integer 4893840
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5686
        "start_memory" => integer 4897360
        "stop_time" => float 1441034272.5687
        "stop_memory" => integer 4897968
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5693
        "start_memory" => integer 4900064
        "stop_time" => float 1441034272.5694
        "stop_memory" => integer 4900712
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5695
        "start_memory" => integer 4907432
        "stop_time" => float 1441034272.5696
        "stop_memory" => integer 4907984
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5696
        "start_memory" => integer 4911432
        "stop_time" => float 1441034272.5697
        "stop_memory" => integer 4912016
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5718
        "start_memory" => integer 5143616
        "stop_time" => float 1441034272.5719
        "stop_memory" => integer 5144208
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5725
        "start_memory" => integer 5200976
        "stop_time" => float 1441034272.5725
        "stop_memory" => integer 5201560
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.573
        "start_memory" => integer 5235952
        "stop_time" => float 1441034272.573
        "stop_memory" => integer 5236536
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5731
        "start_memory" => integer 5240088
        "stop_time" => float 1441034272.5731
        "stop_memory" => integer 5240688
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5736
        "start_memory" => integer 5246664
        "stop_time" => float 1441034272.5736
        "stop_memory" => integer 5247224
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5741
        "start_memory" => integer 5273288
        "stop_time" => float 1441034272.5741
        "stop_memory" => integer 5273864
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5745
        "start_memory" => integer 5302808
        "stop_time" => float 1441034272.5746
        "stop_memory" => integer 5303400
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5749
        "start_memory" => integer 5330080
        "stop_time" => float 1441034272.575
        "stop_memory" => integer 5330616
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5751
        "start_memory" => integer 5334040
        "stop_time" => float 1441034272.5751
        "stop_memory" => integer 5334616
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5769
        "start_memory" => integer 5361840
        "stop_time" => float 1441034272.577
        "stop_memory" => integer 5362472
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5771
        "start_memory" => integer 5366288
        "stop_time" => float 1441034272.5771
        "stop_memory" => integer 5366928
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5793
        "start_memory" => integer 5397984
        "stop_time" => float 1441034272.5794
        "stop_memory" => integer 5398552
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5795
        "start_memory" => integer 5402216
        "stop_time" => float 1441034272.5796
        "stop_memory" => integer 5402848
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5833
        "start_memory" => integer 5467600
        "stop_time" => float 1441034272.5834
        "stop_memory" => integer 5468168
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5835
        "start_memory" => integer 5471664
        "stop_time" => float 1441034272.5836
        "stop_memory" => integer 5472256
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.584
        "start_memory" => integer 5482336
        "stop_time" => float 1441034272.5841
        "stop_memory" => integer 5482968
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5841
        "start_memory" => integer 5486400
        "stop_time" => float 1441034272.5842
        "stop_memory" => integer 5487008
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5848
        "start_memory" => integer 5531536
        "stop_time" => float 1441034272.5849
        "stop_memory" => integer 5532120
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.585
        "start_memory" => integer 5535656
        "stop_time" => float 1441034272.5851
        "stop_memory" => integer 5536248
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5857
        "start_memory" => integer 5556568
        "stop_time" => float 1441034272.5858
        "stop_memory" => integer 5557184
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5859
        "start_memory" => integer 5560704
        "stop_time" => float 1441034272.586
        "stop_memory" => integer 5561328
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5872
        "start_memory" => integer 5609912
        "stop_time" => float 1441034272.5872
        "stop_memory" => integer 5610472
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5873
        "start_memory" => integer 5613992
        "stop_time" => float 1441034272.5874
        "stop_memory" => integer 5614600
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5879
        "start_memory" => integer 5636912
        "stop_time" => float 1441034272.588
        "stop_memory" => integer 5637496
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.588
        "start_memory" => integer 5641000
        "stop_time" => float 1441034272.5881
        "stop_memory" => integer 5641568
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.589
        "start_memory" => integer 5714096
        "stop_time" => float 1441034272.5891
        "stop_memory" => integer 5714712
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5891
        "start_memory" => integer 5718240
        "stop_time" => float 1441034272.5892
        "stop_memory" => integer 5718824
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5947
        "start_memory" => integer 5737936
        "stop_time" => float 1441034272.5948
        "stop_memory" => integer 5738496
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.595
        "start_memory" => integer 5741952
        "stop_time" => float 1441034272.5951
        "stop_memory" => integer 5742536
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5962
        "start_memory" => integer 5802304
        "stop_time" => float 1441034272.5962
        "stop_memory" => integer 5802872
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5963
        "start_memory" => integer 5806400
        "stop_time" => float 1441034272.5964
        "stop_memory" => integer 5807000
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5975
        "start_memory" => integer 5876112
        "stop_time" => float 1441034272.5976
        "stop_memory" => integer 5876736
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5977
        "start_memory" => integer 5880336
        "stop_time" => float 1441034272.5978
        "stop_memory" => integer 5880888
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5988
        "start_memory" => integer 5898272
        "stop_time" => float 1441034272.5989
        "stop_memory" => integer 5898856
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.5992
        "start_memory" => integer 5864752
        "stop_time" => float 1441034272.5993
        "stop_memory" => integer 5867072
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.6
        "start_memory" => integer 5903256
        "stop_time" => float 1441034272.6001
        "stop_memory" => integer 5904920
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441034272.6001
        "start_memory" => integer 5904552
        "stop_time" => float 1441034272.6001
        "stop_memory" => integer 5906224
    )
)

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