Modules

Kohana_Profiler

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

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

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

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1427632019.3268
        "start_memory" => integer 1988448
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3268
        "start_memory" => integer 1990784
        "stop_time" => float 1427632019.3269
        "stop_memory" => integer 1991376
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3272
        "start_memory" => integer 1996328
        "stop_time" => float 1427632019.3273
        "stop_memory" => integer 1996920
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3281
        "start_memory" => integer 2122440
        "stop_time" => float 1427632019.3282
        "stop_memory" => integer 2122992
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3285
        "start_memory" => integer 2127912
        "stop_time" => float 1427632019.3285
        "stop_memory" => integer 2128496
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3288
        "start_memory" => integer 2139584
        "stop_time" => float 1427632019.3288
        "stop_memory" => integer 2140128
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3291
        "start_memory" => integer 2144840
        "stop_time" => float 1427632019.3292
        "stop_memory" => integer 2145416
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3295
        "start_memory" => integer 2154720
        "stop_time" => float 1427632019.3296
        "stop_memory" => integer 2155256
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3298
        "start_memory" => integer 2159920
        "stop_time" => float 1427632019.3298
        "stop_memory" => integer 2160552
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3312
        "start_memory" => integer 2321304
        "stop_time" => float 1427632019.3314
        "stop_memory" => integer 2321864
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3316
        "start_memory" => integer 2326712
        "stop_time" => float 1427632019.3317
        "stop_memory" => integer 2327288
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.332
        "start_memory" => integer 2340752
        "stop_time" => float 1427632019.3321
        "stop_memory" => integer 2341304
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3324
        "start_memory" => integer 2345944
        "stop_time" => float 1427632019.3324
        "stop_memory" => integer 2346512
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.333
        "start_memory" => integer 2401336
        "stop_time" => float 1427632019.333
        "stop_memory" => integer 2401928
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3331
        "start_memory" => integer 2403088
        "stop_time" => float 1427632019.3331
        "stop_memory" => integer 2403664
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3334
        "start_memory" => integer 2408536
        "stop_time" => float 1427632019.3335
        "stop_memory" => integer 2409112
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3341
        "start_memory" => integer 2474576
        "stop_time" => float 1427632019.3342
        "stop_memory" => integer 2475192
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3342
        "start_memory" => integer 2475976
        "stop_time" => float 1427632019.3342
        "stop_memory" => integer 2476552
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3384
        "start_memory" => integer 3145240
        "stop_time" => float 1427632019.3385
        "stop_memory" => integer 3145768
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3388
        "start_memory" => integer 3151440
        "stop_time" => float 1427632019.3388
        "stop_memory" => integer 3152008
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3393
        "start_memory" => integer 3184760
        "stop_time" => float 1427632019.3393
        "stop_memory" => integer 3185304
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3396
        "start_memory" => integer 3189968
        "stop_time" => float 1427632019.3396
        "stop_memory" => integer 3190536
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3408
        "start_memory" => integer 3352176
        "stop_time" => float 1427632019.3408
        "stop_memory" => integer 3352752
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3411
        "start_memory" => integer 3357632
        "stop_time" => float 1427632019.3412
        "stop_memory" => integer 3358216
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3415
        "start_memory" => integer 3360904
        "stop_time" => float 1427632019.3415
        "stop_memory" => integer 3361464
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3417
        "start_memory" => integer 3366336
        "stop_time" => float 1427632019.3418
        "stop_memory" => integer 3366920
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3423
        "start_memory" => integer 3416592
        "stop_time" => float 1427632019.3423
        "stop_memory" => integer 3417136
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3425
        "start_memory" => integer 3421832
        "stop_time" => float 1427632019.3426
        "stop_memory" => integer 3422408
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3434
        "start_memory" => integer 3519952
        "stop_time" => float 1427632019.3435
        "stop_memory" => integer 3520488
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3438
        "start_memory" => integer 3525128
        "stop_time" => float 1427632019.3439
        "stop_memory" => integer 3525696
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.3455
        "start_memory" => integer 3610784
        "stop_time" => float 1427632019.3455
        "stop_memory" => integer 3611376
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4286
        "start_memory" => integer 3653520
        "stop_time" => float 1427632019.4286
        "stop_memory" => integer 3654088
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4302
        "start_memory" => integer 3658752
        "stop_time" => float 1427632019.4302
        "stop_memory" => integer 3659584
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4319
        "start_memory" => integer 3700208
        "stop_time" => float 1427632019.432
        "stop_memory" => integer 3700760
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4324
        "start_memory" => integer 3705592
        "stop_time" => float 1427632019.4324
        "stop_memory" => integer 3706168
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4334
        "start_memory" => integer 3729864
        "stop_time" => float 1427632019.4334
        "stop_memory" => integer 3730416
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4336
        "start_memory" => integer 3735120
        "stop_time" => float 1427632019.4337
        "stop_memory" => integer 3735696
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4347
        "start_memory" => integer 3802856
        "stop_time" => float 1427632019.4348
        "stop_memory" => integer 3803440
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4351
        "start_memory" => integer 3821432
        "stop_time" => float 1427632019.4351
        "stop_memory" => integer 3821992
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4354
        "start_memory" => integer 3826856
        "stop_time" => float 1427632019.4354
        "stop_memory" => integer 3827440
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4361
        "start_memory" => integer 3892568
        "stop_time" => float 1427632019.4362
        "stop_memory" => integer 3893144
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4366
        "start_memory" => integer 3912568
        "stop_time" => float 1427632019.4366
        "stop_memory" => integer 3913144
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4372
        "start_memory" => integer 3961216
        "stop_time" => float 1427632019.4372
        "stop_memory" => integer 3961792
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4377
        "start_memory" => integer 3972456
        "stop_time" => float 1427632019.4378
        "stop_memory" => integer 3973032
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4382
        "start_memory" => integer 3991040
        "stop_time" => float 1427632019.4382
        "stop_memory" => integer 3991616
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4386
        "start_memory" => integer 4001312
        "stop_time" => float 1427632019.4387
        "stop_memory" => integer 4001888
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4391
        "start_memory" => integer 4022016
        "stop_time" => float 1427632019.4391
        "stop_memory" => integer 4022592
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4396
        "start_memory" => integer 4043072
        "stop_time" => float 1427632019.4396
        "stop_memory" => integer 4043664
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.44
        "start_memory" => integer 4056904
        "stop_time" => float 1427632019.4401
        "stop_memory" => integer 4057472
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4406
        "start_memory" => integer 4069688
        "stop_time" => float 1427632019.4406
        "stop_memory" => integer 4070264
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4411
        "start_memory" => integer 4118576
        "stop_time" => float 1427632019.4411
        "stop_memory" => integer 4119136
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4417
        "start_memory" => integer 4157608
        "stop_time" => float 1427632019.4417
        "stop_memory" => integer 4158192
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4422
        "start_memory" => integer 4177592
        "stop_time" => float 1427632019.4422
        "stop_memory" => integer 4178168
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4427
        "start_memory" => integer 4209328
        "stop_time" => float 1427632019.4428
        "stop_memory" => integer 4209904
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4433
        "start_memory" => integer 4228624
        "stop_time" => float 1427632019.4434
        "stop_memory" => integer 4229168
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4436
        "start_memory" => integer 4233840
        "stop_time" => float 1427632019.4436
        "stop_memory" => integer 4234416
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4446
        "start_memory" => integer 4265256
        "stop_time" => float 1427632019.4446
        "stop_memory" => integer 4265792
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4449
        "start_memory" => integer 4270440
        "stop_time" => float 1427632019.4453
        "stop_memory" => integer 4271008
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4483
        "start_memory" => integer 4412584
        "stop_time" => float 1427632019.4484
        "stop_memory" => integer 4413160
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.457
        "start_memory" => integer 4465944
        "stop_time" => float 1427632019.4571
        "stop_memory" => integer 4466496
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4575
        "start_memory" => integer 4471328
        "stop_time" => float 1427632019.4576
        "stop_memory" => integer 4471904
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4645
        "start_memory" => integer 4497416
        "stop_time" => float 1427632019.4646
        "stop_memory" => integer 4498000
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.465
        "start_memory" => integer 4502936
        "stop_time" => float 1427632019.4651
        "stop_memory" => integer 4503512
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.472
        "start_memory" => integer 4529160
        "stop_time" => float 1427632019.4721
        "stop_memory" => integer 4529720
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4724
        "start_memory" => integer 4534576
        "stop_time" => float 1427632019.4724
        "stop_memory" => integer 4535656
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4735
        "start_memory" => integer 4624424
        "stop_time" => float 1427632019.4735
        "stop_memory" => integer 4625024
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4795
        "start_memory" => integer 4631944
        "stop_time" => float 1427632019.4795
        "stop_memory" => integer 4632496
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4799
        "start_memory" => integer 4637376
        "stop_time" => float 1427632019.4799
        "stop_memory" => integer 4637960
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4955
        "start_memory" => integer 4694848
        "stop_time" => float 1427632019.4955
        "stop_memory" => integer 4695408
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4959
        "start_memory" => integer 4700328
        "stop_time" => float 1427632019.496
        "stop_memory" => integer 4700912
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4964
        "start_memory" => integer 4724728
        "stop_time" => float 1427632019.4964
        "stop_memory" => integer 4725304
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4979
        "start_memory" => integer 4734408
        "stop_time" => float 1427632019.498
        "stop_memory" => integer 4734968
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4982
        "start_memory" => integer 4739832
        "stop_time" => float 1427632019.4983
        "stop_memory" => integer 4740416
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.4999
        "start_memory" => integer 4819888
        "stop_time" => float 1427632019.4999
        "stop_memory" => integer 4820448
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5002
        "start_memory" => integer 4825328
        "stop_time" => float 1427632019.5002
        "stop_memory" => integer 4825912
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5062
        "start_memory" => integer 4851632
        "stop_time" => float 1427632019.5063
        "stop_memory" => integer 4852192
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5066
        "start_memory" => integer 4857056
        "stop_time" => float 1427632019.5066
        "stop_memory" => integer 4857640
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5076
        "start_memory" => integer 4879008
        "stop_time" => float 1427632019.5077
        "stop_memory" => integer 4879536
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5081
        "start_memory" => integer 4884184
        "stop_time" => float 1427632019.5082
        "stop_memory" => integer 4884760
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5101
        "start_memory" => integer 4895616
        "stop_time" => float 1427632019.5102
        "stop_memory" => integer 4896208
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5105
        "start_memory" => integer 4901096
        "stop_time" => float 1427632019.5105
        "stop_memory" => integer 4901672
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5149
        "start_memory" => integer 4946672
        "stop_time" => float 1427632019.5149
        "stop_memory" => integer 4947248
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5159
        "start_memory" => integer 4958384
        "stop_time" => float 1427632019.5159
        "stop_memory" => integer 4958928
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5162
        "start_memory" => integer 4963784
        "stop_time" => float 1427632019.5163
        "stop_memory" => integer 4964360
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.522
        "start_memory" => integer 4986856
        "stop_time" => float 1427632019.522
        "stop_memory" => integer 4987440
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5245
        "start_memory" => integer 4993008
        "stop_time" => float 1427632019.5246
        "stop_memory" => integer 4993576
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.525
        "start_memory" => integer 4998424
        "stop_time" => float 1427632019.525
        "stop_memory" => integer 4999008
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5286
        "start_memory" => integer 5132800
        "stop_time" => float 1427632019.5287
        "stop_memory" => integer 5133376
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5289
        "start_memory" => integer 5138328
        "stop_time" => float 1427632019.529
        "stop_memory" => integer 5138920
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5299
        "start_memory" => integer 5153784
        "stop_time" => float 1427632019.5299
        "stop_memory" => integer 5154352
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5304
        "start_memory" => integer 5159312
        "stop_time" => float 1427632019.5304
        "stop_memory" => integer 5159904
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5322
        "start_memory" => integer 5165840
        "stop_time" => float 1427632019.5322
        "stop_memory" => integer 5166392
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5325
        "start_memory" => integer 5171264
        "stop_time" => float 1427632019.5325
        "stop_memory" => integer 5171840
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.534
        "start_memory" => integer 5316432
        "stop_time" => float 1427632019.534
        "stop_memory" => integer 5317008
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5343
        "start_memory" => integer 5321968
        "stop_time" => float 1427632019.5343
        "stop_memory" => integer 5322560
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5347
        "start_memory" => integer 5343240
        "stop_time" => float 1427632019.5348
        "stop_memory" => integer 5343808
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.535
        "start_memory" => integer 5348696
        "stop_time" => float 1427632019.535
        "stop_memory" => integer 5349272
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5367
        "start_memory" => integer 5411584
        "stop_time" => float 1427632019.5369
        "stop_memory" => integer 5412144
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5373
        "start_memory" => integer 5417016
        "stop_time" => float 1427632019.5373
        "stop_memory" => integer 5417600
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5384
        "start_memory" => integer 5483104
        "stop_time" => float 1427632019.5385
        "stop_memory" => integer 5483664
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5387
        "start_memory" => integer 5488528
        "stop_time" => float 1427632019.5387
        "stop_memory" => integer 5489112
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.54
        "start_memory" => integer 5531768
        "stop_time" => float 1427632019.54
        "stop_memory" => integer 5532344
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5404
        "start_memory" => integer 5537312
        "stop_time" => float 1427632019.5404
        "stop_memory" => integer 5537904
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5417
        "start_memory" => integer 5596744
        "stop_time" => float 1427632019.5418
        "stop_memory" => integer 5597328
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5421
        "start_memory" => integer 5602392
        "stop_time" => float 1427632019.5422
        "stop_memory" => integer 5602992
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5427
        "start_memory" => integer 5622664
        "stop_time" => float 1427632019.5427
        "stop_memory" => integer 5623240
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.543
        "start_memory" => integer 5628304
        "stop_time" => float 1427632019.5431
        "stop_memory" => integer 5628904
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5444
        "start_memory" => integer 5693344
        "stop_time" => float 1427632019.5444
        "stop_memory" => integer 5693920
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5447
        "start_memory" => integer 5698984
        "stop_time" => float 1427632019.5448
        "stop_memory" => integer 5699584
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.546
        "start_memory" => integer 5747912
        "stop_time" => float 1427632019.546
        "stop_memory" => integer 5748488
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5462
        "start_memory" => integer 5753544
        "stop_time" => float 1427632019.5462
        "stop_memory" => integer 5754144
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5474
        "start_memory" => integer 5795448
        "stop_time" => float 1427632019.5474
        "stop_memory" => integer 5796024
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5478
        "start_memory" => integer 5801088
        "stop_time" => float 1427632019.5478
        "stop_memory" => integer 5801688
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5494
        "start_memory" => integer 5914616
        "stop_time" => float 1427632019.5495
        "stop_memory" => integer 5915192
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5499
        "start_memory" => integer 5920256
        "stop_time" => float 1427632019.5499
        "stop_memory" => integer 5920856
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5525
        "start_memory" => integer 5969496
        "stop_time" => float 1427632019.5526
        "stop_memory" => integer 5970056
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5528
        "start_memory" => integer 5975024
        "stop_time" => float 1427632019.5529
        "stop_memory" => integer 5975616
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.554
        "start_memory" => integer 5998728
        "stop_time" => float 1427632019.5541
        "stop_memory" => integer 5999248
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5544
        "start_memory" => integer 6003888
        "stop_time" => float 1427632019.5545
        "stop_memory" => integer 6004456
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5559
        "start_memory" => integer 6119128
        "stop_time" => float 1427632019.556
        "stop_memory" => integer 6119688
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5562
        "start_memory" => integer 6124360
        "stop_time" => float 1427632019.5563
        "stop_memory" => integer 6124952
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5615
        "start_memory" => integer 6145272
        "stop_time" => float 1427632019.5616
        "stop_memory" => integer 6145808
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5618
        "start_memory" => integer 6150456
        "stop_time" => float 1427632019.5619
        "stop_memory" => integer 6151024
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5651
        "start_memory" => integer 6187704
        "stop_time" => float 1427632019.5652
        "stop_memory" => integer 6188248
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5655
        "start_memory" => integer 6192888
        "stop_time" => float 1427632019.5656
        "stop_memory" => integer 6193456
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5665
        "start_memory" => integer 6235848
        "stop_time" => float 1427632019.5665
        "stop_memory" => integer 6236392
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5669
        "start_memory" => integer 6241064
        "stop_time" => float 1427632019.567
        "stop_memory" => integer 6241608
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5685
        "start_memory" => integer 6285800
        "stop_time" => float 1427632019.5685
        "stop_memory" => integer 6286344
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5688
        "start_memory" => integer 6290984
        "stop_time" => float 1427632019.5689
        "stop_memory" => integer 6292576
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5704
        "start_memory" => integer 6368104
        "stop_time" => float 1427632019.5704
        "stop_memory" => integer 6368648
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5708
        "start_memory" => integer 6373304
        "stop_time" => float 1427632019.5708
        "stop_memory" => integer 6373872
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5735
        "start_memory" => integer 6396056
        "stop_time" => float 1427632019.5736
        "stop_memory" => integer 6396616
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5739
        "start_memory" => integer 6401256
        "stop_time" => float 1427632019.574
        "stop_memory" => integer 6401824
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.577
        "start_memory" => integer 6430976
        "stop_time" => float 1427632019.5771
        "stop_memory" => integer 6431536
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5773
        "start_memory" => integer 6436384
        "stop_time" => float 1427632019.5774
        "stop_memory" => integer 6436960
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5783
        "start_memory" => integer 6457248
        "stop_time" => float 1427632019.5783
        "stop_memory" => integer 6457816
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5786
        "start_memory" => integer 6462752
        "stop_time" => float 1427632019.5787
        "stop_memory" => integer 6463336
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5795
        "start_memory" => integer 6478384
        "stop_time" => float 1427632019.5796
        "stop_memory" => integer 6478944
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5801
        "start_memory" => integer 6483880
        "stop_time" => float 1427632019.5801
        "stop_memory" => integer 6484464
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.581
        "start_memory" => integer 6499504
        "stop_time" => float 1427632019.581
        "stop_memory" => integer 6500064
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5813
        "start_memory" => integer 6505000
        "stop_time" => float 1427632019.5814
        "stop_memory" => integer 6505584
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5823
        "start_memory" => integer 6520632
        "stop_time" => float 1427632019.5823
        "stop_memory" => integer 6521192
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5825
        "start_memory" => integer 6526128
        "stop_time" => float 1427632019.5826
        "stop_memory" => integer 6526712
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5834
        "start_memory" => integer 6541736
        "stop_time" => float 1427632019.5835
        "stop_memory" => integer 6542296
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5837
        "start_memory" => integer 6547232
        "stop_time" => float 1427632019.5838
        "stop_memory" => integer 6547816
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5845
        "start_memory" => integer 6562840
        "stop_time" => float 1427632019.5846
        "stop_memory" => integer 6563400
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5848
        "start_memory" => integer 6568336
        "stop_time" => float 1427632019.5848
        "stop_memory" => integer 6568920
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5856
        "start_memory" => integer 6583976
        "stop_time" => float 1427632019.5856
        "stop_memory" => integer 6584536
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5859
        "start_memory" => integer 6589472
        "stop_time" => float 1427632019.5859
        "stop_memory" => integer 6590056
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5867
        "start_memory" => integer 6605080
        "stop_time" => float 1427632019.5868
        "stop_memory" => integer 6605640
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5871
        "start_memory" => integer 6610576
        "stop_time" => float 1427632019.5871
        "stop_memory" => integer 6611160
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5879
        "start_memory" => integer 6626296
        "stop_time" => float 1427632019.5879
        "stop_memory" => integer 6626856
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5881
        "start_memory" => integer 6631792
        "stop_time" => float 1427632019.5882
        "stop_memory" => integer 6632376
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5892
        "start_memory" => integer 6647408
        "stop_time" => float 1427632019.5893
        "stop_memory" => integer 6647968
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5895
        "start_memory" => integer 6652904
        "stop_time" => float 1427632019.5895
        "stop_memory" => integer 6653488
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5918
        "start_memory" => integer 6668528
        "stop_time" => float 1427632019.5918
        "stop_memory" => integer 6669088
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5921
        "start_memory" => integer 6674024
        "stop_time" => float 1427632019.5922
        "stop_memory" => integer 6674608
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5931
        "start_memory" => integer 6689616
        "stop_time" => float 1427632019.5931
        "stop_memory" => integer 6690176
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5934
        "start_memory" => integer 6695112
        "stop_time" => float 1427632019.5934
        "stop_memory" => integer 6695696
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5943
        "start_memory" => integer 6710720
        "stop_time" => float 1427632019.5944
        "stop_memory" => integer 6711280
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5952
        "start_memory" => integer 6716216
        "stop_time" => float 1427632019.5953
        "stop_memory" => integer 6716800
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5963
        "start_memory" => integer 6731824
        "stop_time" => float 1427632019.5964
        "stop_memory" => integer 6732384
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5966
        "start_memory" => integer 6737320
        "stop_time" => float 1427632019.5967
        "stop_memory" => integer 6737904
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5976
        "start_memory" => integer 6752976
        "stop_time" => float 1427632019.5976
        "stop_memory" => integer 6753536
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5978
        "start_memory" => integer 6758472
        "stop_time" => float 1427632019.5978
        "stop_memory" => integer 6759056
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5987
        "start_memory" => integer 6774112
        "stop_time" => float 1427632019.5988
        "stop_memory" => integer 6774672
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.5991
        "start_memory" => integer 6779608
        "stop_time" => float 1427632019.5991
        "stop_memory" => integer 6780192
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6001
        "start_memory" => integer 6795368
        "stop_time" => float 1427632019.6001
        "stop_memory" => integer 6795928
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6004
        "start_memory" => integer 6800864
        "stop_time" => float 1427632019.6004
        "stop_memory" => integer 6801448
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6015
        "start_memory" => integer 6816504
        "stop_time" => float 1427632019.6015
        "stop_memory" => integer 6817064
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6017
        "start_memory" => integer 6822000
        "stop_time" => float 1427632019.6018
        "stop_memory" => integer 6822584
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6027
        "start_memory" => integer 6837640
        "stop_time" => float 1427632019.6028
        "stop_memory" => integer 6838200
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.603
        "start_memory" => integer 6843136
        "stop_time" => float 1427632019.6031
        "stop_memory" => integer 6843720
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6042
        "start_memory" => integer 6858768
        "stop_time" => float 1427632019.6042
        "stop_memory" => integer 6859328
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6046
        "start_memory" => integer 6864264
        "stop_time" => float 1427632019.6047
        "stop_memory" => integer 6864848
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6056
        "start_memory" => integer 6879872
        "stop_time" => float 1427632019.6057
        "stop_memory" => integer 6880432
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6069
        "start_memory" => integer 6885368
        "stop_time" => float 1427632019.607
        "stop_memory" => integer 6885952
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6081
        "start_memory" => integer 6900976
        "stop_time" => float 1427632019.6082
        "stop_memory" => integer 6901536
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6085
        "start_memory" => integer 6906472
        "stop_time" => float 1427632019.6086
        "stop_memory" => integer 6907056
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6096
        "start_memory" => integer 6922112
        "stop_time" => float 1427632019.6097
        "stop_memory" => integer 6922672
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.61
        "start_memory" => integer 6927608
        "stop_time" => float 1427632019.61
        "stop_memory" => integer 6928192
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6109
        "start_memory" => integer 6943232
        "stop_time" => float 1427632019.611
        "stop_memory" => integer 6943792
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6112
        "start_memory" => integer 6948728
        "stop_time" => float 1427632019.6113
        "stop_memory" => integer 6949312
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6132
        "start_memory" => integer 6964576
        "stop_time" => float 1427632019.6132
        "stop_memory" => integer 6965136
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6136
        "start_memory" => integer 6970048
        "stop_time" => float 1427632019.6136
        "stop_memory" => integer 6970616
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6171
        "start_memory" => integer 7008648
        "stop_time" => float 1427632019.6171
        "stop_memory" => integer 7009200
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6174
        "start_memory" => integer 7013872
        "stop_time" => float 1427632019.6174
        "stop_memory" => integer 7014448
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.619
        "start_memory" => integer 7145528
        "stop_time" => float 1427632019.6191
        "stop_memory" => integer 7146080
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6194
        "start_memory" => integer 7150760
        "stop_time" => float 1427632019.6194
        "stop_memory" => integer 7151336
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6215
        "start_memory" => integer 7320536
        "stop_time" => float 1427632019.6215
        "stop_memory" => integer 7321088
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6218
        "start_memory" => integer 7325776
        "stop_time" => float 1427632019.6219
        "stop_memory" => integer 7326336
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6249
        "start_memory" => integer 7382000
        "stop_time" => float 1427632019.6249
        "stop_memory" => integer 7382576
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6252
        "start_memory" => integer 7387488
        "stop_time" => float 1427632019.6252
        "stop_memory" => integer 7388056
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6263
        "start_memory" => integer 7428088
        "stop_time" => float 1427632019.6264
        "stop_memory" => integer 7428664
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6266
        "start_memory" => integer 7433616
        "stop_time" => float 1427632019.6267
        "stop_memory" => integer 7434208
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6282
        "start_memory" => integer 7460152
        "stop_time" => float 1427632019.6282
        "stop_memory" => integer 7460720
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6284
        "start_memory" => integer 7465592
        "stop_time" => float 1427632019.6285
        "stop_memory" => integer 7466168
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6307
        "start_memory" => integer 7492224
        "stop_time" => float 1427632019.6308
        "stop_memory" => integer 7492800
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6346
        "start_memory" => integer 7503704
        "stop_time" => float 1427632019.6346
        "stop_memory" => integer 7504264
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.635
        "start_memory" => integer 7514152
        "stop_time" => float 1427632019.6351
        "stop_memory" => integer 7514720
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.637
        "start_memory" => integer 7525320
        "stop_time" => float 1427632019.6371
        "stop_memory" => integer 7525872
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6373
        "start_memory" => integer 7530584
        "stop_time" => float 1427632019.6374
        "stop_memory" => integer 7531160
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6382
        "start_memory" => integer 7536624
        "stop_time" => float 1427632019.6383
        "stop_memory" => integer 7537176
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6385
        "start_memory" => integer 7541888
        "stop_time" => float 1427632019.6386
        "stop_memory" => integer 7542464
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6393
        "start_memory" => integer 7547928
        "stop_time" => float 1427632019.6393
        "stop_memory" => integer 7548480
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6396
        "start_memory" => integer 7553216
        "stop_time" => float 1427632019.6396
        "stop_memory" => integer 7553792
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6408
        "start_memory" => integer 7565800
        "stop_time" => float 1427632019.6409
        "stop_memory" => integer 7566336
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6412
        "start_memory" => integer 7570984
        "stop_time" => float 1427632019.6412
        "stop_memory" => integer 7571552
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.642
        "start_memory" => integer 7574616
        "stop_time" => float 1427632019.6421
        "stop_memory" => integer 7575192
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6423
        "start_memory" => integer 7584456
        "stop_time" => float 1427632019.6424
        "stop_memory" => integer 7584992
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6426
        "start_memory" => integer 7589640
        "stop_time" => float 1427632019.6426
        "stop_memory" => integer 7590208
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6452
        "start_memory" => integer 7965608
        "stop_time" => float 1427632019.6452
        "stop_memory" => integer 7966184
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6463
        "start_memory" => integer 8044752
        "stop_time" => float 1427632019.6464
        "stop_memory" => integer 8045336
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6472
        "start_memory" => integer 8090560
        "stop_time" => float 1427632019.6472
        "stop_memory" => integer 8091120
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6477
        "start_memory" => integer 8095984
        "stop_time" => float 1427632019.6478
        "stop_memory" => integer 8096568
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6486
        "start_memory" => integer 8105552
        "stop_time" => float 1427632019.6486
        "stop_memory" => integer 8106096
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6494
        "start_memory" => integer 8137560
        "stop_time" => float 1427632019.6494
        "stop_memory" => integer 8138120
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6502
        "start_memory" => integer 8172528
        "stop_time" => float 1427632019.6502
        "stop_memory" => integer 8173104
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6514
        "start_memory" => integer 8205216
        "stop_time" => float 1427632019.6515
        "stop_memory" => integer 8205752
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6517
        "start_memory" => integer 8210408
        "stop_time" => float 1427632019.6518
        "stop_memory" => integer 8210976
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6541
        "start_memory" => integer 8252784
        "stop_time" => float 1427632019.6542
        "stop_memory" => integer 8253376
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6544
        "start_memory" => integer 8258560
        "stop_time" => float 1427632019.6544
        "stop_memory" => integer 8259152
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6575
        "start_memory" => integer 8303264
        "stop_time" => float 1427632019.6576
        "stop_memory" => integer 8303816
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6579
        "start_memory" => integer 8308752
        "stop_time" => float 1427632019.658
        "stop_memory" => integer 8309336
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6622
        "start_memory" => integer 8411024
        "stop_time" => float 1427632019.6623
        "stop_memory" => integer 8411552
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6625
        "start_memory" => integer 8416208
        "stop_time" => float 1427632019.6625
        "stop_memory" => integer 8416776
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6633
        "start_memory" => integer 8431704
        "stop_time" => float 1427632019.6633
        "stop_memory" => integer 8432256
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6636
        "start_memory" => integer 8436904
        "stop_time" => float 1427632019.6637
        "stop_memory" => integer 8437472
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6647
        "start_memory" => integer 8503904
        "stop_time" => float 1427632019.6648
        "stop_memory" => integer 8504464
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6649
        "start_memory" => integer 8509320
        "stop_time" => float 1427632019.665
        "stop_memory" => integer 8509896
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6658
        "start_memory" => integer 8533336
        "stop_time" => float 1427632019.6658
        "stop_memory" => integer 8533944
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.666
        "start_memory" => integer 8538864
        "stop_time" => float 1427632019.666
        "stop_memory" => integer 8539456
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6678
        "start_memory" => integer 8610472
        "stop_time" => float 1427632019.6678
        "stop_memory" => integer 8611008
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.668
        "start_memory" => integer 8615880
        "stop_time" => float 1427632019.6681
        "stop_memory" => integer 8616432
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6695
        "start_memory" => integer 8644136
        "stop_time" => float 1427632019.6697
        "stop_memory" => integer 8644672
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.67
        "start_memory" => integer 8649328
        "stop_time" => float 1427632019.67
        "stop_memory" => integer 8649896
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6719
        "start_memory" => integer 8771120
        "stop_time" => float 1427632019.672
        "stop_memory" => integer 8771664
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6723
        "start_memory" => integer 8776336
        "stop_time" => float 1427632019.6724
        "stop_memory" => integer 8776904
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6785
        "start_memory" => integer 8808288
        "stop_time" => float 1427632019.6785
        "stop_memory" => integer 8808832
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6788
        "start_memory" => integer 8813480
        "stop_time" => float 1427632019.6788
        "stop_memory" => integer 8814048
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6803
        "start_memory" => integer 8914352
        "stop_time" => float 1427632019.6803
        "stop_memory" => integer 8914912
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6807
        "start_memory" => integer 8919624
        "stop_time" => float 1427632019.6807
        "stop_memory" => integer 8920200
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6826
        "start_memory" => integer 9027944
        "stop_time" => float 1427632019.6827
        "stop_memory" => integer 9028512
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6829
        "start_memory" => integer 9033432
        "stop_time" => float 1427632019.683
        "stop_memory" => integer 9034016
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6842
        "start_memory" => integer 9055208
        "stop_time" => float 1427632019.6843
        "stop_memory" => integer 9055784
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6848
        "start_memory" => integer 9020264
        "stop_time" => float 1427632019.6848
        "stop_memory" => integer 9022200
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6861
        "start_memory" => integer 9092920
        "stop_time" => float 1427632019.6862
        "stop_memory" => integer 9094648
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427632019.6862
        "start_memory" => integer 9094408
        "stop_time" => float 1427632019.6863
        "stop_memory" => integer 9096136
    )
)

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