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 1414767365.2546
        "start_memory" => integer 1989872
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2546
        "start_memory" => integer 1992216
        "stop_time" => float 1414767365.2547
        "stop_memory" => integer 1992808
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2547
        "start_memory" => integer 1997760
        "stop_time" => float 1414767365.2548
        "stop_memory" => integer 1998352
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2555
        "start_memory" => integer 2123920
        "stop_time" => float 1414767365.2555
        "stop_memory" => integer 2124472
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2556
        "start_memory" => integer 2129392
        "stop_time" => float 1414767365.2556
        "stop_memory" => integer 2129976
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2557
        "start_memory" => integer 2141064
        "stop_time" => float 1414767365.2558
        "stop_memory" => integer 2141608
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2559
        "start_memory" => integer 2146320
        "stop_time" => float 1414767365.2559
        "stop_memory" => integer 2146896
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2561
        "start_memory" => integer 2156152
        "stop_time" => float 1414767365.2561
        "stop_memory" => integer 2156712
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2562
        "start_memory" => integer 2161368
        "stop_time" => float 1414767365.2563
        "stop_memory" => integer 2161976
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2571
        "start_memory" => integer 2322744
        "stop_time" => float 1414767365.2571
        "stop_memory" => integer 2323304
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2573
        "start_memory" => integer 2328152
        "stop_time" => float 1414767365.2573
        "stop_memory" => integer 2328728
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2575
        "start_memory" => integer 2342200
        "stop_time" => float 1414767365.2575
        "stop_memory" => integer 2342752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2576
        "start_memory" => integer 2347400
        "stop_time" => float 1414767365.2576
        "stop_memory" => integer 2347968
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2579
        "start_memory" => integer 2402760
        "stop_time" => float 1414767365.2579
        "stop_memory" => integer 2403352
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.258
        "start_memory" => integer 2404512
        "stop_time" => float 1414767365.258
        "stop_memory" => integer 2405088
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2581
        "start_memory" => integer 2409960
        "stop_time" => float 1414767365.2581
        "stop_memory" => integer 2410536
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2585
        "start_memory" => integer 2475944
        "stop_time" => float 1414767365.2585
        "stop_memory" => integer 2476560
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2585
        "start_memory" => integer 2477336
        "stop_time" => float 1414767365.2586
        "stop_memory" => integer 2477912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2611
        "start_memory" => integer 3146616
        "stop_time" => float 1414767365.2612
        "stop_memory" => integer 3147144
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2613
        "start_memory" => integer 3152840
        "stop_time" => float 1414767365.2613
        "stop_memory" => integer 3153408
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2616
        "start_memory" => integer 3186168
        "stop_time" => float 1414767365.2616
        "stop_memory" => integer 3186712
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2617
        "start_memory" => integer 3191352
        "stop_time" => float 1414767365.2618
        "stop_memory" => integer 3191920
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2624
        "start_memory" => integer 3353576
        "stop_time" => float 1414767365.2624
        "stop_memory" => integer 3354152
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2625
        "start_memory" => integer 3359032
        "stop_time" => float 1414767365.2626
        "stop_memory" => integer 3359616
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2627
        "start_memory" => integer 3362304
        "stop_time" => float 1414767365.2627
        "stop_memory" => integer 3362864
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2628
        "start_memory" => integer 3367736
        "stop_time" => float 1414767365.2629
        "stop_memory" => integer 3368320
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2631
        "start_memory" => integer 3417984
        "stop_time" => float 1414767365.2632
        "stop_memory" => integer 3418528
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2633
        "start_memory" => integer 3423200
        "stop_time" => float 1414767365.2633
        "stop_memory" => integer 3423776
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2638
        "start_memory" => integer 3521840
        "stop_time" => float 1414767365.2639
        "stop_memory" => integer 3522376
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2639
        "start_memory" => integer 3527016
        "stop_time" => float 1414767365.264
        "stop_memory" => integer 3527584
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.2653
        "start_memory" => integer 3612200
        "stop_time" => float 1414767365.2654
        "stop_memory" => integer 3612792
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3269
        "start_memory" => integer 3654952
        "stop_time" => float 1414767365.327
        "stop_memory" => integer 3655520
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3271
        "start_memory" => integer 3660184
        "stop_time" => float 1414767365.3272
        "stop_memory" => integer 3661016
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.328
        "start_memory" => integer 3701616
        "stop_time" => float 1414767365.328
        "stop_memory" => integer 3702168
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3281
        "start_memory" => integer 3707000
        "stop_time" => float 1414767365.3281
        "stop_memory" => integer 3707576
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3288
        "start_memory" => integer 3731280
        "stop_time" => float 1414767365.3288
        "stop_memory" => integer 3731832
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3289
        "start_memory" => integer 3736512
        "stop_time" => float 1414767365.3289
        "stop_memory" => integer 3737088
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3297
        "start_memory" => integer 3804256
        "stop_time" => float 1414767365.3298
        "stop_memory" => integer 3804840
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3299
        "start_memory" => integer 3822832
        "stop_time" => float 1414767365.3299
        "stop_memory" => integer 3823392
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.33
        "start_memory" => integer 3828256
        "stop_time" => float 1414767365.33
        "stop_memory" => integer 3828840
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3306
        "start_memory" => integer 3893968
        "stop_time" => float 1414767365.3307
        "stop_memory" => integer 3894544
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3309
        "start_memory" => integer 3913968
        "stop_time" => float 1414767365.3309
        "stop_memory" => integer 3914544
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3313
        "start_memory" => integer 3962616
        "stop_time" => float 1414767365.3314
        "stop_memory" => integer 3963192
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3316
        "start_memory" => integer 3973856
        "stop_time" => float 1414767365.3316
        "stop_memory" => integer 3974432
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3319
        "start_memory" => integer 3992440
        "stop_time" => float 1414767365.3319
        "stop_memory" => integer 3993016
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3321
        "start_memory" => integer 4002712
        "stop_time" => float 1414767365.3321
        "stop_memory" => integer 4003288
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3324
        "start_memory" => integer 4023392
        "stop_time" => float 1414767365.3324
        "stop_memory" => integer 4023968
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3327
        "start_memory" => integer 4044448
        "stop_time" => float 1414767365.3327
        "stop_memory" => integer 4045040
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3329
        "start_memory" => integer 4058280
        "stop_time" => float 1414767365.3329
        "stop_memory" => integer 4058848
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3332
        "start_memory" => integer 4071064
        "stop_time" => float 1414767365.3332
        "stop_memory" => integer 4071640
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3335
        "start_memory" => integer 4119944
        "stop_time" => float 1414767365.3335
        "stop_memory" => integer 4120504
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3339
        "start_memory" => integer 4158968
        "stop_time" => float 1414767365.3339
        "stop_memory" => integer 4159552
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3342
        "start_memory" => integer 4178952
        "stop_time" => float 1414767365.3342
        "stop_memory" => integer 4179528
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3345
        "start_memory" => integer 4210688
        "stop_time" => float 1414767365.3345
        "stop_memory" => integer 4211264
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3347
        "start_memory" => integer 4229976
        "stop_time" => float 1414767365.3348
        "stop_memory" => integer 4230520
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3348
        "start_memory" => integer 4235192
        "stop_time" => float 1414767365.3349
        "stop_memory" => integer 4235768
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3352
        "start_memory" => integer 4266616
        "stop_time" => float 1414767365.3352
        "stop_memory" => integer 4267152
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3353
        "start_memory" => integer 4271816
        "stop_time" => float 1414767365.3354
        "stop_memory" => integer 4272384
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3375
        "start_memory" => integer 4413944
        "stop_time" => float 1414767365.3376
        "stop_memory" => integer 4414520
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.345
        "start_memory" => integer 4467304
        "stop_time" => float 1414767365.345
        "stop_memory" => integer 4467856
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3452
        "start_memory" => integer 4472688
        "stop_time" => float 1414767365.3452
        "stop_memory" => integer 4473264
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3492
        "start_memory" => integer 4498752
        "stop_time" => float 1414767365.3493
        "stop_memory" => integer 4499336
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3494
        "start_memory" => integer 4504288
        "stop_time" => float 1414767365.3494
        "stop_memory" => integer 4504864
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3538
        "start_memory" => integer 4530512
        "stop_time" => float 1414767365.3538
        "stop_memory" => integer 4531072
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3539
        "start_memory" => integer 4535928
        "stop_time" => float 1414767365.354
        "stop_memory" => integer 4537008
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3546
        "start_memory" => integer 4625736
        "stop_time" => float 1414767365.3546
        "stop_memory" => integer 4626336
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3594
        "start_memory" => integer 4633256
        "stop_time" => float 1414767365.3594
        "stop_memory" => integer 4633808
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3595
        "start_memory" => integer 4638688
        "stop_time" => float 1414767365.3596
        "stop_memory" => integer 4639272
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3727
        "start_memory" => integer 4696128
        "stop_time" => float 1414767365.3727
        "stop_memory" => integer 4696688
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3729
        "start_memory" => integer 4701608
        "stop_time" => float 1414767365.3729
        "stop_memory" => integer 4702192
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3731
        "start_memory" => integer 4726040
        "stop_time" => float 1414767365.3731
        "stop_memory" => integer 4726616
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3739
        "start_memory" => integer 4735704
        "stop_time" => float 1414767365.3739
        "stop_memory" => integer 4736264
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.374
        "start_memory" => integer 4741128
        "stop_time" => float 1414767365.374
        "stop_memory" => integer 4741712
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.375
        "start_memory" => integer 4821168
        "stop_time" => float 1414767365.375
        "stop_memory" => integer 4821728
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3752
        "start_memory" => integer 4826608
        "stop_time" => float 1414767365.3753
        "stop_memory" => integer 4827192
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3803
        "start_memory" => integer 4852888
        "stop_time" => float 1414767365.3803
        "stop_memory" => integer 4853448
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3804
        "start_memory" => integer 4858312
        "stop_time" => float 1414767365.3804
        "stop_memory" => integer 4858896
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3811
        "start_memory" => integer 4880280
        "stop_time" => float 1414767365.3812
        "stop_memory" => integer 4880808
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3813
        "start_memory" => integer 4885456
        "stop_time" => float 1414767365.3814
        "stop_memory" => integer 4886024
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.383
        "start_memory" => integer 4896880
        "stop_time" => float 1414767365.383
        "stop_memory" => integer 4897472
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3831
        "start_memory" => integer 4902360
        "stop_time" => float 1414767365.3832
        "stop_memory" => integer 4902936
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3866
        "start_memory" => integer 4947904
        "stop_time" => float 1414767365.3866
        "stop_memory" => integer 4948480
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3872
        "start_memory" => integer 4959624
        "stop_time" => float 1414767365.3873
        "stop_memory" => integer 4960168
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3875
        "start_memory" => integer 4965024
        "stop_time" => float 1414767365.3875
        "stop_memory" => integer 4965600
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3908
        "start_memory" => integer 4988096
        "stop_time" => float 1414767365.3909
        "stop_memory" => integer 4988680
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3927
        "start_memory" => integer 4994248
        "stop_time" => float 1414767365.3927
        "stop_memory" => integer 4994816
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3928
        "start_memory" => integer 4999664
        "stop_time" => float 1414767365.3928
        "stop_memory" => integer 5000248
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.395
        "start_memory" => integer 5133976
        "stop_time" => float 1414767365.395
        "stop_memory" => integer 5134552
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3951
        "start_memory" => integer 5139504
        "stop_time" => float 1414767365.3951
        "stop_memory" => integer 5140096
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3956
        "start_memory" => integer 5154944
        "stop_time" => float 1414767365.3956
        "stop_memory" => integer 5155512
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3957
        "start_memory" => integer 5160472
        "stop_time" => float 1414767365.3957
        "stop_memory" => integer 5161064
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3972
        "start_memory" => integer 5167000
        "stop_time" => float 1414767365.3972
        "stop_memory" => integer 5167552
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3973
        "start_memory" => integer 5172424
        "stop_time" => float 1414767365.3973
        "stop_memory" => integer 5173008
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3988
        "start_memory" => integer 5317600
        "stop_time" => float 1414767365.3989
        "stop_memory" => integer 5318176
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.399
        "start_memory" => integer 5323136
        "stop_time" => float 1414767365.399
        "stop_memory" => integer 5323728
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3993
        "start_memory" => integer 5344408
        "stop_time" => float 1414767365.3994
        "stop_memory" => integer 5344976
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.3995
        "start_memory" => integer 5349864
        "stop_time" => float 1414767365.3995
        "stop_memory" => integer 5350440
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4005
        "start_memory" => integer 5412752
        "stop_time" => float 1414767365.4007
        "stop_memory" => integer 5413312
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4008
        "start_memory" => integer 5418184
        "stop_time" => float 1414767365.4008
        "stop_memory" => integer 5418768
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4018
        "start_memory" => integer 5484272
        "stop_time" => float 1414767365.4018
        "stop_memory" => integer 5484832
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4019
        "start_memory" => integer 5489696
        "stop_time" => float 1414767365.402
        "stop_memory" => integer 5490280
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.403
        "start_memory" => integer 5532936
        "stop_time" => float 1414767365.4031
        "stop_memory" => integer 5533512
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4031
        "start_memory" => integer 5538480
        "stop_time" => float 1414767365.4032
        "stop_memory" => integer 5539072
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4042
        "start_memory" => integer 5597912
        "stop_time" => float 1414767365.4042
        "stop_memory" => integer 5598496
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4043
        "start_memory" => integer 5603560
        "stop_time" => float 1414767365.4043
        "stop_memory" => integer 5604160
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4045
        "start_memory" => integer 5623832
        "stop_time" => float 1414767365.4046
        "stop_memory" => integer 5624408
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4047
        "start_memory" => integer 5629472
        "stop_time" => float 1414767365.4047
        "stop_memory" => integer 5630072
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4056
        "start_memory" => integer 5694560
        "stop_time" => float 1414767365.4057
        "stop_memory" => integer 5695136
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4058
        "start_memory" => integer 5700200
        "stop_time" => float 1414767365.4058
        "stop_memory" => integer 5700800
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4067
        "start_memory" => integer 5749128
        "stop_time" => float 1414767365.4068
        "stop_memory" => integer 5749704
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4069
        "start_memory" => integer 5754760
        "stop_time" => float 1414767365.4069
        "stop_memory" => integer 5755360
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4078
        "start_memory" => integer 5796664
        "stop_time" => float 1414767365.4078
        "stop_memory" => integer 5797240
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4079
        "start_memory" => integer 5802304
        "stop_time" => float 1414767365.4079
        "stop_memory" => integer 5802904
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.409
        "start_memory" => integer 5915832
        "stop_time" => float 1414767365.409
        "stop_memory" => integer 5916408
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4091
        "start_memory" => integer 5921472
        "stop_time" => float 1414767365.4092
        "stop_memory" => integer 5922072
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4112
        "start_memory" => integer 5970720
        "stop_time" => float 1414767365.4112
        "stop_memory" => integer 5971280
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4113
        "start_memory" => integer 5976248
        "stop_time" => float 1414767365.4113
        "stop_memory" => integer 5976840
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4123
        "start_memory" => integer 5999968
        "stop_time" => float 1414767365.4123
        "stop_memory" => integer 6000488
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4124
        "start_memory" => integer 6005128
        "stop_time" => float 1414767365.4125
        "stop_memory" => integer 6005696
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4136
        "start_memory" => integer 6120368
        "stop_time" => float 1414767365.4136
        "stop_memory" => integer 6120928
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4137
        "start_memory" => integer 6125600
        "stop_time" => float 1414767365.4137
        "stop_memory" => integer 6126192
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.418
        "start_memory" => integer 6146512
        "stop_time" => float 1414767365.4181
        "stop_memory" => integer 6147048
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4182
        "start_memory" => integer 6151696
        "stop_time" => float 1414767365.4183
        "stop_memory" => integer 6152264
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4207
        "start_memory" => integer 6188936
        "stop_time" => float 1414767365.4208
        "stop_memory" => integer 6189480
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4209
        "start_memory" => integer 6194120
        "stop_time" => float 1414767365.4209
        "stop_memory" => integer 6194688
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4217
        "start_memory" => integer 6237104
        "stop_time" => float 1414767365.4218
        "stop_memory" => integer 6237648
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4218
        "start_memory" => integer 6242304
        "stop_time" => float 1414767365.4219
        "stop_memory" => integer 6242872
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4226
        "start_memory" => integer 6287072
        "stop_time" => float 1414767365.4226
        "stop_memory" => integer 6287616
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4227
        "start_memory" => integer 6292256
        "stop_time" => float 1414767365.4227
        "stop_memory" => integer 6293848
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4239
        "start_memory" => integer 6369384
        "stop_time" => float 1414767365.424
        "stop_memory" => integer 6369928
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.424
        "start_memory" => integer 6374584
        "stop_time" => float 1414767365.4241
        "stop_memory" => integer 6375152
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.426
        "start_memory" => integer 6397336
        "stop_time" => float 1414767365.4261
        "stop_memory" => integer 6397896
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4261
        "start_memory" => integer 6402536
        "stop_time" => float 1414767365.4262
        "stop_memory" => integer 6403104
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4276
        "start_memory" => integer 6432256
        "stop_time" => float 1414767365.4276
        "stop_memory" => integer 6432816
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4277
        "start_memory" => integer 6437664
        "stop_time" => float 1414767365.4277
        "stop_memory" => integer 6438240
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4284
        "start_memory" => integer 6458528
        "stop_time" => float 1414767365.4284
        "stop_memory" => integer 6459096
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4285
        "start_memory" => integer 6464032
        "stop_time" => float 1414767365.4285
        "stop_memory" => integer 6464616
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4292
        "start_memory" => integer 6479648
        "stop_time" => float 1414767365.4292
        "stop_memory" => integer 6480208
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4293
        "start_memory" => integer 6485144
        "stop_time" => float 1414767365.4294
        "stop_memory" => integer 6485728
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4301
        "start_memory" => integer 6500760
        "stop_time" => float 1414767365.4301
        "stop_memory" => integer 6501320
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4303
        "start_memory" => integer 6506256
        "stop_time" => float 1414767365.4304
        "stop_memory" => integer 6506840
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.431
        "start_memory" => integer 6521888
        "stop_time" => float 1414767365.431
        "stop_memory" => integer 6522448
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4311
        "start_memory" => integer 6527384
        "stop_time" => float 1414767365.4312
        "stop_memory" => integer 6527968
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4319
        "start_memory" => integer 6542992
        "stop_time" => float 1414767365.432
        "stop_memory" => integer 6543552
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4321
        "start_memory" => integer 6548488
        "stop_time" => float 1414767365.4321
        "stop_memory" => integer 6549072
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4327
        "start_memory" => integer 6564096
        "stop_time" => float 1414767365.4328
        "stop_memory" => integer 6564656
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4329
        "start_memory" => integer 6569592
        "stop_time" => float 1414767365.4329
        "stop_memory" => integer 6570176
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4336
        "start_memory" => integer 6585232
        "stop_time" => float 1414767365.4336
        "stop_memory" => integer 6585792
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4337
        "start_memory" => integer 6590728
        "stop_time" => float 1414767365.4338
        "stop_memory" => integer 6591312
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4343
        "start_memory" => integer 6606336
        "stop_time" => float 1414767365.4344
        "stop_memory" => integer 6606896
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4345
        "start_memory" => integer 6611832
        "stop_time" => float 1414767365.4345
        "stop_memory" => integer 6612416
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4352
        "start_memory" => integer 6627552
        "stop_time" => float 1414767365.4352
        "stop_memory" => integer 6628112
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4354
        "start_memory" => integer 6633048
        "stop_time" => float 1414767365.4355
        "stop_memory" => integer 6633632
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.436
        "start_memory" => integer 6648664
        "stop_time" => float 1414767365.4361
        "stop_memory" => integer 6649224
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4362
        "start_memory" => integer 6654160
        "stop_time" => float 1414767365.4362
        "stop_memory" => integer 6654744
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4369
        "start_memory" => integer 6669784
        "stop_time" => float 1414767365.437
        "stop_memory" => integer 6670344
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.437
        "start_memory" => integer 6675280
        "stop_time" => float 1414767365.4371
        "stop_memory" => integer 6675864
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4377
        "start_memory" => integer 6690872
        "stop_time" => float 1414767365.4378
        "stop_memory" => integer 6691432
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4379
        "start_memory" => integer 6696368
        "stop_time" => float 1414767365.4379
        "stop_memory" => integer 6696952
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4386
        "start_memory" => integer 6711976
        "stop_time" => float 1414767365.4386
        "stop_memory" => integer 6712536
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4387
        "start_memory" => integer 6717472
        "stop_time" => float 1414767365.4388
        "stop_memory" => integer 6718056
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4394
        "start_memory" => integer 6733104
        "stop_time" => float 1414767365.4394
        "stop_memory" => integer 6733664
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4395
        "start_memory" => integer 6738600
        "stop_time" => float 1414767365.4396
        "stop_memory" => integer 6739184
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4402
        "start_memory" => integer 6754240
        "stop_time" => float 1414767365.4402
        "stop_memory" => integer 6754800
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4403
        "start_memory" => integer 6759736
        "stop_time" => float 1414767365.4404
        "stop_memory" => integer 6760320
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.441
        "start_memory" => integer 6775368
        "stop_time" => float 1414767365.441
        "stop_memory" => integer 6775928
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4411
        "start_memory" => integer 6780864
        "stop_time" => float 1414767365.4411
        "stop_memory" => integer 6781448
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4417
        "start_memory" => integer 6796632
        "stop_time" => float 1414767365.4417
        "stop_memory" => integer 6797192
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4418
        "start_memory" => integer 6802128
        "stop_time" => float 1414767365.4418
        "stop_memory" => integer 6802712
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4426
        "start_memory" => integer 6817784
        "stop_time" => float 1414767365.4426
        "stop_memory" => integer 6818344
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4427
        "start_memory" => integer 6823280
        "stop_time" => float 1414767365.4428
        "stop_memory" => integer 6823864
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4434
        "start_memory" => integer 6838920
        "stop_time" => float 1414767365.4435
        "stop_memory" => integer 6839480
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4436
        "start_memory" => integer 6844416
        "stop_time" => float 1414767365.4436
        "stop_memory" => integer 6845000
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4442
        "start_memory" => integer 6860048
        "stop_time" => float 1414767365.4442
        "stop_memory" => integer 6860608
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4443
        "start_memory" => integer 6865544
        "stop_time" => float 1414767365.4444
        "stop_memory" => integer 6866128
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.445
        "start_memory" => integer 6881152
        "stop_time" => float 1414767365.4451
        "stop_memory" => integer 6881712
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4452
        "start_memory" => integer 6886648
        "stop_time" => float 1414767365.4452
        "stop_memory" => integer 6887232
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4459
        "start_memory" => integer 6902256
        "stop_time" => float 1414767365.446
        "stop_memory" => integer 6902816
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4461
        "start_memory" => integer 6907752
        "stop_time" => float 1414767365.4461
        "stop_memory" => integer 6908336
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4467
        "start_memory" => integer 6923392
        "stop_time" => float 1414767365.4468
        "stop_memory" => integer 6923952
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4469
        "start_memory" => integer 6928888
        "stop_time" => float 1414767365.4469
        "stop_memory" => integer 6929472
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4477
        "start_memory" => integer 6944512
        "stop_time" => float 1414767365.4477
        "stop_memory" => integer 6945072
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4478
        "start_memory" => integer 6950008
        "stop_time" => float 1414767365.4479
        "stop_memory" => integer 6950592
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4497
        "start_memory" => integer 6965856
        "stop_time" => float 1414767365.4498
        "stop_memory" => integer 6966416
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.45
        "start_memory" => integer 6971328
        "stop_time" => float 1414767365.4501
        "stop_memory" => integer 6971896
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4531
        "start_memory" => integer 7009928
        "stop_time" => float 1414767365.4531
        "stop_memory" => integer 7010480
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4533
        "start_memory" => integer 7015152
        "stop_time" => float 1414767365.4533
        "stop_memory" => integer 7015728
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4545
        "start_memory" => integer 7146792
        "stop_time" => float 1414767365.4546
        "stop_memory" => integer 7147344
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4547
        "start_memory" => integer 7152024
        "stop_time" => float 1414767365.4547
        "stop_memory" => integer 7152600
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4562
        "start_memory" => integer 7321800
        "stop_time" => float 1414767365.4562
        "stop_memory" => integer 7322352
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4563
        "start_memory" => integer 7327040
        "stop_time" => float 1414767365.4563
        "stop_memory" => integer 7327600
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4588
        "start_memory" => integer 7383264
        "stop_time" => float 1414767365.4588
        "stop_memory" => integer 7383840
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4589
        "start_memory" => integer 7388752
        "stop_time" => float 1414767365.4589
        "stop_memory" => integer 7389320
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4596
        "start_memory" => integer 7429360
        "stop_time" => float 1414767365.4596
        "stop_memory" => integer 7429936
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4597
        "start_memory" => integer 7434888
        "stop_time" => float 1414767365.4598
        "stop_memory" => integer 7435480
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.461
        "start_memory" => integer 7461424
        "stop_time" => float 1414767365.461
        "stop_memory" => integer 7461992
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4612
        "start_memory" => integer 7466864
        "stop_time" => float 1414767365.4612
        "stop_memory" => integer 7467440
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4631
        "start_memory" => integer 7493496
        "stop_time" => float 1414767365.4631
        "stop_memory" => integer 7494072
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4663
        "start_memory" => integer 7504992
        "stop_time" => float 1414767365.4664
        "stop_memory" => integer 7505552
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4666
        "start_memory" => integer 7515424
        "stop_time" => float 1414767365.4667
        "stop_memory" => integer 7515992
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.468
        "start_memory" => integer 7526640
        "stop_time" => float 1414767365.4681
        "stop_memory" => integer 7527192
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4682
        "start_memory" => integer 7531904
        "stop_time" => float 1414767365.4682
        "stop_memory" => integer 7532504
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4688
        "start_memory" => integer 7537968
        "stop_time" => float 1414767365.4688
        "stop_memory" => integer 7538520
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4689
        "start_memory" => integer 7543248
        "stop_time" => float 1414767365.469
        "stop_memory" => integer 7543824
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4694
        "start_memory" => integer 7549272
        "stop_time" => float 1414767365.4698
        "stop_memory" => integer 7549824
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4699
        "start_memory" => integer 7554576
        "stop_time" => float 1414767365.4699
        "stop_memory" => integer 7555152
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4709
        "start_memory" => integer 7567160
        "stop_time" => float 1414767365.471
        "stop_memory" => integer 7567696
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.471
        "start_memory" => integer 7572344
        "stop_time" => float 1414767365.4711
        "stop_memory" => integer 7572912
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4716
        "start_memory" => integer 7575976
        "stop_time" => float 1414767365.4716
        "stop_memory" => integer 7576552
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4717
        "start_memory" => integer 7585840
        "stop_time" => float 1414767365.4718
        "stop_memory" => integer 7586376
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4718
        "start_memory" => integer 7591024
        "stop_time" => float 1414767365.4719
        "stop_memory" => integer 7591592
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.474
        "start_memory" => integer 7966952
        "stop_time" => float 1414767365.4741
        "stop_memory" => integer 7967528
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4749
        "start_memory" => integer 8046096
        "stop_time" => float 1414767365.475
        "stop_memory" => integer 8046680
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4764
        "start_memory" => integer 8091904
        "stop_time" => float 1414767365.4765
        "stop_memory" => integer 8092464
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4766
        "start_memory" => integer 8097328
        "stop_time" => float 1414767365.4766
        "stop_memory" => integer 8097912
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4774
        "start_memory" => integer 8106872
        "stop_time" => float 1414767365.4774
        "stop_memory" => integer 8107416
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4783
        "start_memory" => integer 8138880
        "stop_time" => float 1414767365.4784
        "stop_memory" => integer 8139440
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4789
        "start_memory" => integer 8173864
        "stop_time" => float 1414767365.4789
        "stop_memory" => integer 8174440
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4796
        "start_memory" => integer 8206536
        "stop_time" => float 1414767365.4796
        "stop_memory" => integer 8207072
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4797
        "start_memory" => integer 8211728
        "stop_time" => float 1414767365.4797
        "stop_memory" => integer 8212296
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4825
        "start_memory" => integer 8254104
        "stop_time" => float 1414767365.4826
        "stop_memory" => integer 8254696
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4827
        "start_memory" => integer 8259880
        "stop_time" => float 1414767365.4828
        "stop_memory" => integer 8260472
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4863
        "start_memory" => integer 8304576
        "stop_time" => float 1414767365.4864
        "stop_memory" => integer 8305128
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4865
        "start_memory" => integer 8310064
        "stop_time" => float 1414767365.4866
        "stop_memory" => integer 8310648
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4915
        "start_memory" => integer 8412336
        "stop_time" => float 1414767365.4916
        "stop_memory" => integer 8412864
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4917
        "start_memory" => integer 8417520
        "stop_time" => float 1414767365.4917
        "stop_memory" => integer 8418088
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4923
        "start_memory" => integer 8433016
        "stop_time" => float 1414767365.4924
        "stop_memory" => integer 8433568
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4925
        "start_memory" => integer 8438216
        "stop_time" => float 1414767365.4926
        "stop_memory" => integer 8438784
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4934
        "start_memory" => integer 8505216
        "stop_time" => float 1414767365.4935
        "stop_memory" => integer 8505776
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4936
        "start_memory" => integer 8510632
        "stop_time" => float 1414767365.4936
        "stop_memory" => integer 8511208
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4942
        "start_memory" => integer 8534648
        "stop_time" => float 1414767365.4942
        "stop_memory" => integer 8535256
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4943
        "start_memory" => integer 8540176
        "stop_time" => float 1414767365.4943
        "stop_memory" => integer 8540768
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4958
        "start_memory" => integer 8611800
        "stop_time" => float 1414767365.4959
        "stop_memory" => integer 8612336
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.496
        "start_memory" => integer 8617208
        "stop_time" => float 1414767365.4961
        "stop_memory" => integer 8617760
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4968
        "start_memory" => integer 8645464
        "stop_time" => float 1414767365.4969
        "stop_memory" => integer 8646000
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.497
        "start_memory" => integer 8650656
        "stop_time" => float 1414767365.497
        "stop_memory" => integer 8651224
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4986
        "start_memory" => integer 8772448
        "stop_time" => float 1414767365.4987
        "stop_memory" => integer 8772992
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.4988
        "start_memory" => integer 8777664
        "stop_time" => float 1414767365.4989
        "stop_memory" => integer 8778232
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5051
        "start_memory" => integer 8809640
        "stop_time" => float 1414767365.5052
        "stop_memory" => integer 8810184
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5053
        "start_memory" => integer 8814832
        "stop_time" => float 1414767365.5053
        "stop_memory" => integer 8815400
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5066
        "start_memory" => integer 8915704
        "stop_time" => float 1414767365.5067
        "stop_memory" => integer 8916264
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5069
        "start_memory" => integer 8920976
        "stop_time" => float 1414767365.507
        "stop_memory" => integer 8921552
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5086
        "start_memory" => integer 9029288
        "stop_time" => float 1414767365.5087
        "stop_memory" => integer 9029856
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5088
        "start_memory" => integer 9034776
        "stop_time" => float 1414767365.5089
        "stop_memory" => integer 9035360
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5099
        "start_memory" => integer 9056552
        "stop_time" => float 1414767365.51
        "stop_memory" => integer 9057128
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5105
        "start_memory" => integer 9021592
        "stop_time" => float 1414767365.5106
        "stop_memory" => integer 9023528
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5115
        "start_memory" => integer 9094248
        "stop_time" => float 1414767365.5116
        "stop_memory" => integer 9095976
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414767365.5116
        "start_memory" => integer 9095736
        "stop_time" => float 1414767365.5117
        "stop_memory" => integer 9097464
    )
)

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