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 1414816470.8576
        "start_memory" => integer 1990264
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8576
        "start_memory" => integer 1992600
        "stop_time" => float 1414816470.8577
        "stop_memory" => integer 1993192
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8578
        "start_memory" => integer 1998144
        "stop_time" => float 1414816470.8578
        "stop_memory" => integer 1998736
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8585
        "start_memory" => integer 2124264
        "stop_time" => float 1414816470.8586
        "stop_memory" => integer 2124816
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8587
        "start_memory" => integer 2129736
        "stop_time" => float 1414816470.8587
        "stop_memory" => integer 2130320
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8588
        "start_memory" => integer 2141408
        "stop_time" => float 1414816470.8588
        "stop_memory" => integer 2141952
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8589
        "start_memory" => integer 2146664
        "stop_time" => float 1414816470.8589
        "stop_memory" => integer 2147240
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8591
        "start_memory" => integer 2156496
        "stop_time" => float 1414816470.8591
        "stop_memory" => integer 2157056
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8592
        "start_memory" => integer 2161712
        "stop_time" => float 1414816470.8592
        "stop_memory" => integer 2162320
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8601
        "start_memory" => integer 2323064
        "stop_time" => float 1414816470.8602
        "stop_memory" => integer 2323624
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8603
        "start_memory" => integer 2328472
        "stop_time" => float 1414816470.8604
        "stop_memory" => integer 2329048
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8606
        "start_memory" => integer 2342520
        "stop_time" => float 1414816470.8607
        "stop_memory" => integer 2343064
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8608
        "start_memory" => integer 2347704
        "stop_time" => float 1414816470.8608
        "stop_memory" => integer 2348272
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8611
        "start_memory" => integer 2403088
        "stop_time" => float 1414816470.8612
        "stop_memory" => integer 2403680
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8612
        "start_memory" => integer 2404840
        "stop_time" => float 1414816470.8615
        "stop_memory" => integer 2405416
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8616
        "start_memory" => integer 2410288
        "stop_time" => float 1414816470.8617
        "stop_memory" => integer 2410864
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.862
        "start_memory" => integer 2476328
        "stop_time" => float 1414816470.862
        "stop_memory" => integer 2476944
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.862
        "start_memory" => integer 2477728
        "stop_time" => float 1414816470.862
        "stop_memory" => integer 2478304
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8655
        "start_memory" => integer 3147016
        "stop_time" => float 1414816470.8656
        "stop_memory" => integer 3147544
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8658
        "start_memory" => integer 3153240
        "stop_time" => float 1414816470.8658
        "stop_memory" => integer 3153808
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8665
        "start_memory" => integer 3186528
        "stop_time" => float 1414816470.8666
        "stop_memory" => integer 3187072
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8667
        "start_memory" => integer 3191712
        "stop_time" => float 1414816470.8667
        "stop_memory" => integer 3192280
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8681
        "start_memory" => integer 3353928
        "stop_time" => float 1414816470.8682
        "stop_memory" => integer 3354504
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8683
        "start_memory" => integer 3359384
        "stop_time" => float 1414816470.8684
        "stop_memory" => integer 3359968
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8686
        "start_memory" => integer 3362656
        "stop_time" => float 1414816470.8686
        "stop_memory" => integer 3363216
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8688
        "start_memory" => integer 3368088
        "stop_time" => float 1414816470.8688
        "stop_memory" => integer 3368672
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8691
        "start_memory" => integer 3418328
        "stop_time" => float 1414816470.8692
        "stop_memory" => integer 3418872
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8693
        "start_memory" => integer 3423544
        "stop_time" => float 1414816470.8693
        "stop_memory" => integer 3424120
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8702
        "start_memory" => integer 3521720
        "stop_time" => float 1414816470.8702
        "stop_memory" => integer 3522256
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8703
        "start_memory" => integer 3526896
        "stop_time" => float 1414816470.8704
        "stop_memory" => integer 3527464
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.8717
        "start_memory" => integer 3612552
        "stop_time" => float 1414816470.8718
        "stop_memory" => integer 3613144
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9285
        "start_memory" => integer 3655280
        "stop_time" => float 1414816470.9285
        "stop_memory" => integer 3655848
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9287
        "start_memory" => integer 3660512
        "stop_time" => float 1414816470.9288
        "stop_memory" => integer 3661344
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9297
        "start_memory" => integer 3701944
        "stop_time" => float 1414816470.9297
        "stop_memory" => integer 3702496
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9298
        "start_memory" => integer 3707328
        "stop_time" => float 1414816470.9298
        "stop_memory" => integer 3707904
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9306
        "start_memory" => integer 3731608
        "stop_time" => float 1414816470.9307
        "stop_memory" => integer 3732160
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9308
        "start_memory" => integer 3736840
        "stop_time" => float 1414816470.9309
        "stop_memory" => integer 3737416
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9318
        "start_memory" => integer 3804616
        "stop_time" => float 1414816470.9318
        "stop_memory" => integer 3805200
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9319
        "start_memory" => integer 3823192
        "stop_time" => float 1414816470.932
        "stop_memory" => integer 3823752
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.932
        "start_memory" => integer 3828616
        "stop_time" => float 1414816470.9321
        "stop_memory" => integer 3829200
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9326
        "start_memory" => integer 3894328
        "stop_time" => float 1414816470.9326
        "stop_memory" => integer 3894904
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9328
        "start_memory" => integer 3914312
        "stop_time" => float 1414816470.9329
        "stop_memory" => integer 3914888
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9332
        "start_memory" => integer 3962928
        "stop_time" => float 1414816470.9332
        "stop_memory" => integer 3963504
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9334
        "start_memory" => integer 3974160
        "stop_time" => float 1414816470.9335
        "stop_memory" => integer 3974736
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9337
        "start_memory" => integer 3992744
        "stop_time" => float 1414816470.9337
        "stop_memory" => integer 3993320
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.934
        "start_memory" => integer 4002992
        "stop_time" => float 1414816470.934
        "stop_memory" => integer 4003568
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9343
        "start_memory" => integer 4023672
        "stop_time" => float 1414816470.9344
        "stop_memory" => integer 4024248
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9347
        "start_memory" => integer 4044752
        "stop_time" => float 1414816470.9347
        "stop_memory" => integer 4045344
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9349
        "start_memory" => integer 4058568
        "stop_time" => float 1414816470.935
        "stop_memory" => integer 4059136
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9352
        "start_memory" => integer 4071352
        "stop_time" => float 1414816470.9352
        "stop_memory" => integer 4071928
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9356
        "start_memory" => integer 4120208
        "stop_time" => float 1414816470.9356
        "stop_memory" => integer 4120768
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.936
        "start_memory" => integer 4159240
        "stop_time" => float 1414816470.936
        "stop_memory" => integer 4159824
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9362
        "start_memory" => integer 4179224
        "stop_time" => float 1414816470.9363
        "stop_memory" => integer 4179800
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9367
        "start_memory" => integer 4210960
        "stop_time" => float 1414816470.9367
        "stop_memory" => integer 4211536
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.937
        "start_memory" => integer 4230248
        "stop_time" => float 1414816470.937
        "stop_memory" => integer 4230792
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9371
        "start_memory" => integer 4235464
        "stop_time" => float 1414816470.9371
        "stop_memory" => integer 4236040
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9373
        "start_memory" => integer 4266888
        "stop_time" => float 1414816470.9374
        "stop_memory" => integer 4267424
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9374
        "start_memory" => integer 4272088
        "stop_time" => float 1414816470.9375
        "stop_memory" => integer 4272656
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9399
        "start_memory" => integer 4414248
        "stop_time" => float 1414816470.9399
        "stop_memory" => integer 4414824
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9479
        "start_memory" => integer 4467608
        "stop_time" => float 1414816470.9479
        "stop_memory" => integer 4468160
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9483
        "start_memory" => integer 4472992
        "stop_time" => float 1414816470.9483
        "stop_memory" => integer 4473568
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9523
        "start_memory" => integer 4499056
        "stop_time" => float 1414816470.9523
        "stop_memory" => integer 4499640
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9524
        "start_memory" => integer 4504592
        "stop_time" => float 1414816470.9525
        "stop_memory" => integer 4505168
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9569
        "start_memory" => integer 4530792
        "stop_time" => float 1414816470.9569
        "stop_memory" => integer 4531352
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.957
        "start_memory" => integer 4536208
        "stop_time" => float 1414816470.9573
        "stop_memory" => integer 4537288
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9578
        "start_memory" => integer 4626008
        "stop_time" => float 1414816470.9578
        "stop_memory" => integer 4626608
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9639
        "start_memory" => integer 4633528
        "stop_time" => float 1414816470.9639
        "stop_memory" => integer 4634080
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.964
        "start_memory" => integer 4638960
        "stop_time" => float 1414816470.9641
        "stop_memory" => integer 4639544
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9803
        "start_memory" => integer 4696440
        "stop_time" => float 1414816470.9804
        "stop_memory" => integer 4697000
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9805
        "start_memory" => integer 4701920
        "stop_time" => float 1414816470.9805
        "stop_memory" => integer 4702504
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9806
        "start_memory" => integer 4726368
        "stop_time" => float 1414816470.9807
        "stop_memory" => integer 4726944
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9812
        "start_memory" => integer 4736016
        "stop_time" => float 1414816470.9813
        "stop_memory" => integer 4736576
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9813
        "start_memory" => integer 4741440
        "stop_time" => float 1414816470.9813
        "stop_memory" => integer 4742024
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9822
        "start_memory" => integer 4821472
        "stop_time" => float 1414816470.9822
        "stop_memory" => integer 4822032
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9823
        "start_memory" => integer 4826936
        "stop_time" => float 1414816470.9823
        "stop_memory" => integer 4827496
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9869
        "start_memory" => integer 4853192
        "stop_time" => float 1414816470.987
        "stop_memory" => integer 4853752
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.987
        "start_memory" => integer 4858616
        "stop_time" => float 1414816470.9871
        "stop_memory" => integer 4859200
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9878
        "start_memory" => integer 4880584
        "stop_time" => float 1414816470.9878
        "stop_memory" => integer 4881112
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9879
        "start_memory" => integer 4885760
        "stop_time" => float 1414816470.988
        "stop_memory" => integer 4886328
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9894
        "start_memory" => integer 4897184
        "stop_time" => float 1414816470.9894
        "stop_memory" => integer 4897776
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9895
        "start_memory" => integer 4902664
        "stop_time" => float 1414816470.9896
        "stop_memory" => integer 4903240
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9929
        "start_memory" => integer 4948216
        "stop_time" => float 1414816470.993
        "stop_memory" => integer 4948792
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9936
        "start_memory" => integer 4959928
        "stop_time" => float 1414816470.9937
        "stop_memory" => integer 4960472
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9938
        "start_memory" => integer 4965328
        "stop_time" => float 1414816470.9938
        "stop_memory" => integer 4965904
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9973
        "start_memory" => integer 4988400
        "stop_time" => float 1414816470.9973
        "stop_memory" => integer 4988984
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.999
        "start_memory" => integer 4994552
        "stop_time" => float 1414816470.999
        "stop_memory" => integer 4995120
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816470.9991
        "start_memory" => integer 4999968
        "stop_time" => float 1414816470.9992
        "stop_memory" => integer 5000552
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0012
        "start_memory" => integer 5134304
        "stop_time" => float 1414816471.0013
        "stop_memory" => integer 5134880
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0014
        "start_memory" => integer 5139832
        "stop_time" => float 1414816471.0014
        "stop_memory" => integer 5140424
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0019
        "start_memory" => integer 5155256
        "stop_time" => float 1414816471.0019
        "stop_memory" => integer 5155824
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.002
        "start_memory" => integer 5160784
        "stop_time" => float 1414816471.002
        "stop_memory" => integer 5161376
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0036
        "start_memory" => integer 5167312
        "stop_time" => float 1414816471.0037
        "stop_memory" => integer 5167864
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0038
        "start_memory" => integer 5172744
        "stop_time" => float 1414816471.0038
        "stop_memory" => integer 5173328
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.005
        "start_memory" => integer 5317904
        "stop_time" => float 1414816471.005
        "stop_memory" => integer 5318480
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0051
        "start_memory" => integer 5323440
        "stop_time" => float 1414816471.0051
        "stop_memory" => integer 5324032
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0053
        "start_memory" => integer 5344712
        "stop_time" => float 1414816471.0053
        "stop_memory" => integer 5345280
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0054
        "start_memory" => integer 5350168
        "stop_time" => float 1414816471.0054
        "stop_memory" => integer 5350744
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0064
        "start_memory" => integer 5413064
        "stop_time" => float 1414816471.0065
        "stop_memory" => integer 5413624
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0065
        "start_memory" => integer 5418496
        "stop_time" => float 1414816471.0066
        "stop_memory" => integer 5419080
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0075
        "start_memory" => integer 5484584
        "stop_time" => float 1414816471.0075
        "stop_memory" => integer 5485144
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0076
        "start_memory" => integer 5490008
        "stop_time" => float 1414816471.0076
        "stop_memory" => integer 5490592
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0088
        "start_memory" => integer 5533248
        "stop_time" => float 1414816471.0088
        "stop_memory" => integer 5533824
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0089
        "start_memory" => integer 5538792
        "stop_time" => float 1414816471.0089
        "stop_memory" => integer 5539384
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0101
        "start_memory" => integer 5598224
        "stop_time" => float 1414816471.0101
        "stop_memory" => integer 5598808
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0102
        "start_memory" => integer 5603872
        "stop_time" => float 1414816471.0102
        "stop_memory" => integer 5604472
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0104
        "start_memory" => integer 5624144
        "stop_time" => float 1414816471.0104
        "stop_memory" => integer 5624720
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0105
        "start_memory" => integer 5629784
        "stop_time" => float 1414816471.0106
        "stop_memory" => integer 5630384
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0116
        "start_memory" => integer 5694824
        "stop_time" => float 1414816471.0116
        "stop_memory" => integer 5695400
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0118
        "start_memory" => integer 5700464
        "stop_time" => float 1414816471.0118
        "stop_memory" => integer 5701064
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0131
        "start_memory" => integer 5749392
        "stop_time" => float 1414816471.0131
        "stop_memory" => integer 5749968
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0132
        "start_memory" => integer 5755024
        "stop_time" => float 1414816471.0132
        "stop_memory" => integer 5755624
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0142
        "start_memory" => integer 5796928
        "stop_time" => float 1414816471.0142
        "stop_memory" => integer 5797504
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0143
        "start_memory" => integer 5802568
        "stop_time" => float 1414816471.0144
        "stop_memory" => integer 5803168
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0159
        "start_memory" => integer 5916096
        "stop_time" => float 1414816471.0159
        "stop_memory" => integer 5916672
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0161
        "start_memory" => integer 5921736
        "stop_time" => float 1414816471.0161
        "stop_memory" => integer 5922336
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0188
        "start_memory" => integer 5970992
        "stop_time" => float 1414816471.0189
        "stop_memory" => integer 5971552
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0191
        "start_memory" => integer 5976520
        "stop_time" => float 1414816471.0191
        "stop_memory" => integer 5977112
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0205
        "start_memory" => integer 6000232
        "stop_time" => float 1414816471.0206
        "stop_memory" => integer 6000752
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0207
        "start_memory" => integer 6005392
        "stop_time" => float 1414816471.0208
        "stop_memory" => integer 6005960
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0226
        "start_memory" => integer 6120632
        "stop_time" => float 1414816471.0226
        "stop_memory" => integer 6121192
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0228
        "start_memory" => integer 6125864
        "stop_time" => float 1414816471.0228
        "stop_memory" => integer 6126456
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0283
        "start_memory" => integer 6146776
        "stop_time" => float 1414816471.0285
        "stop_memory" => integer 6147312
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0286
        "start_memory" => integer 6151960
        "stop_time" => float 1414816471.0287
        "stop_memory" => integer 6152528
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.032
        "start_memory" => integer 6189208
        "stop_time" => float 1414816471.0321
        "stop_memory" => integer 6189752
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0322
        "start_memory" => integer 6194392
        "stop_time" => float 1414816471.0323
        "stop_memory" => integer 6194960
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0332
        "start_memory" => integer 6237384
        "stop_time" => float 1414816471.0332
        "stop_memory" => integer 6237928
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0333
        "start_memory" => integer 6242592
        "stop_time" => float 1414816471.0334
        "stop_memory" => integer 6243160
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0342
        "start_memory" => integer 6287328
        "stop_time" => float 1414816471.0342
        "stop_memory" => integer 6287872
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0344
        "start_memory" => integer 6292512
        "stop_time" => float 1414816471.0345
        "stop_memory" => integer 6294104
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.036
        "start_memory" => integer 6369640
        "stop_time" => float 1414816471.036
        "stop_memory" => integer 6370184
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0361
        "start_memory" => integer 6374840
        "stop_time" => float 1414816471.0362
        "stop_memory" => integer 6375408
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0385
        "start_memory" => integer 6397592
        "stop_time" => float 1414816471.0385
        "stop_memory" => integer 6398136
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0386
        "start_memory" => integer 6402776
        "stop_time" => float 1414816471.0386
        "stop_memory" => integer 6403344
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0402
        "start_memory" => integer 6432488
        "stop_time" => float 1414816471.0402
        "stop_memory" => integer 6433056
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0403
        "start_memory" => integer 6437904
        "stop_time" => float 1414816471.0403
        "stop_memory" => integer 6438480
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0409
        "start_memory" => integer 6458792
        "stop_time" => float 1414816471.0409
        "stop_memory" => integer 6459360
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.041
        "start_memory" => integer 6464296
        "stop_time" => float 1414816471.0411
        "stop_memory" => integer 6464880
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0416
        "start_memory" => integer 6479904
        "stop_time" => float 1414816471.0417
        "stop_memory" => integer 6480464
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0417
        "start_memory" => integer 6485400
        "stop_time" => float 1414816471.0418
        "stop_memory" => integer 6485984
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0425
        "start_memory" => integer 6501032
        "stop_time" => float 1414816471.0425
        "stop_memory" => integer 6501592
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0426
        "start_memory" => integer 6506528
        "stop_time" => float 1414816471.0426
        "stop_memory" => integer 6507112
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0434
        "start_memory" => integer 6522160
        "stop_time" => float 1414816471.0435
        "stop_memory" => integer 6522720
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0436
        "start_memory" => integer 6527656
        "stop_time" => float 1414816471.0437
        "stop_memory" => integer 6528240
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0443
        "start_memory" => integer 6543264
        "stop_time" => float 1414816471.0444
        "stop_memory" => integer 6543824
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0445
        "start_memory" => integer 6548760
        "stop_time" => float 1414816471.0445
        "stop_memory" => integer 6549344
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0453
        "start_memory" => integer 6564368
        "stop_time" => float 1414816471.0454
        "stop_memory" => integer 6564928
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0455
        "start_memory" => integer 6569864
        "stop_time" => float 1414816471.0456
        "stop_memory" => integer 6570448
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0462
        "start_memory" => integer 6585504
        "stop_time" => float 1414816471.0463
        "stop_memory" => integer 6586064
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0464
        "start_memory" => integer 6591000
        "stop_time" => float 1414816471.0465
        "stop_memory" => integer 6591584
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0471
        "start_memory" => integer 6606608
        "stop_time" => float 1414816471.0472
        "stop_memory" => integer 6607168
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0473
        "start_memory" => integer 6612104
        "stop_time" => float 1414816471.0473
        "stop_memory" => integer 6612688
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0479
        "start_memory" => integer 6627824
        "stop_time" => float 1414816471.0479
        "stop_memory" => integer 6628384
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.048
        "start_memory" => integer 6633320
        "stop_time" => float 1414816471.048
        "stop_memory" => integer 6633904
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0486
        "start_memory" => integer 6648936
        "stop_time" => float 1414816471.0487
        "stop_memory" => integer 6649496
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0488
        "start_memory" => integer 6654432
        "stop_time" => float 1414816471.0488
        "stop_memory" => integer 6655016
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0494
        "start_memory" => integer 6670056
        "stop_time" => float 1414816471.0494
        "stop_memory" => integer 6670616
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0495
        "start_memory" => integer 6675552
        "stop_time" => float 1414816471.0496
        "stop_memory" => integer 6676136
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0502
        "start_memory" => integer 6691144
        "stop_time" => float 1414816471.0502
        "stop_memory" => integer 6691704
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0503
        "start_memory" => integer 6696640
        "stop_time" => float 1414816471.0504
        "stop_memory" => integer 6697224
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0511
        "start_memory" => integer 6712248
        "stop_time" => float 1414816471.0511
        "stop_memory" => integer 6712808
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0512
        "start_memory" => integer 6717744
        "stop_time" => float 1414816471.0512
        "stop_memory" => integer 6718328
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0519
        "start_memory" => integer 6733376
        "stop_time" => float 1414816471.052
        "stop_memory" => integer 6733936
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.052
        "start_memory" => integer 6738872
        "stop_time" => float 1414816471.0521
        "stop_memory" => integer 6739456
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0528
        "start_memory" => integer 6754512
        "stop_time" => float 1414816471.0529
        "stop_memory" => integer 6755072
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0529
        "start_memory" => integer 6760008
        "stop_time" => float 1414816471.053
        "stop_memory" => integer 6760592
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0537
        "start_memory" => integer 6775648
        "stop_time" => float 1414816471.0537
        "stop_memory" => integer 6776208
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0538
        "start_memory" => integer 6781144
        "stop_time" => float 1414816471.0539
        "stop_memory" => integer 6781728
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0545
        "start_memory" => integer 6796904
        "stop_time" => float 1414816471.0546
        "stop_memory" => integer 6797464
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0547
        "start_memory" => integer 6802400
        "stop_time" => float 1414816471.0547
        "stop_memory" => integer 6802984
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0554
        "start_memory" => integer 6818040
        "stop_time" => float 1414816471.0554
        "stop_memory" => integer 6818600
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0556
        "start_memory" => integer 6823536
        "stop_time" => float 1414816471.0556
        "stop_memory" => integer 6824120
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0563
        "start_memory" => integer 6839176
        "stop_time" => float 1414816471.0564
        "stop_memory" => integer 6839736
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0564
        "start_memory" => integer 6844672
        "stop_time" => float 1414816471.0565
        "stop_memory" => integer 6845256
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0572
        "start_memory" => integer 6860304
        "stop_time" => float 1414816471.0573
        "stop_memory" => integer 6860864
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0574
        "start_memory" => integer 6865800
        "stop_time" => float 1414816471.0574
        "stop_memory" => integer 6866384
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0581
        "start_memory" => integer 6881408
        "stop_time" => float 1414816471.0582
        "stop_memory" => integer 6881968
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0583
        "start_memory" => integer 6886904
        "stop_time" => float 1414816471.0583
        "stop_memory" => integer 6887488
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0589
        "start_memory" => integer 6902512
        "stop_time" => float 1414816471.059
        "stop_memory" => integer 6903072
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.059
        "start_memory" => integer 6908008
        "stop_time" => float 1414816471.0591
        "stop_memory" => integer 6908592
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0597
        "start_memory" => integer 6923648
        "stop_time" => float 1414816471.0597
        "stop_memory" => integer 6924208
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0598
        "start_memory" => integer 6929144
        "stop_time" => float 1414816471.0598
        "stop_memory" => integer 6929728
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0605
        "start_memory" => integer 6944768
        "stop_time" => float 1414816471.0606
        "stop_memory" => integer 6945328
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0607
        "start_memory" => integer 6950264
        "stop_time" => float 1414816471.0607
        "stop_memory" => integer 6950848
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0622
        "start_memory" => integer 6966112
        "stop_time" => float 1414816471.0622
        "stop_memory" => integer 6966672
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0623
        "start_memory" => integer 6971584
        "stop_time" => float 1414816471.0624
        "stop_memory" => integer 6972152
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.065
        "start_memory" => integer 7010200
        "stop_time" => float 1414816471.0652
        "stop_memory" => integer 7010752
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0654
        "start_memory" => integer 7015424
        "stop_time" => float 1414816471.0654
        "stop_memory" => integer 7016000
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.067
        "start_memory" => integer 7147064
        "stop_time" => float 1414816471.0671
        "stop_memory" => integer 7147616
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0671
        "start_memory" => integer 7152296
        "stop_time" => float 1414816471.0672
        "stop_memory" => integer 7152872
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0692
        "start_memory" => integer 7322040
        "stop_time" => float 1414816471.0693
        "stop_memory" => integer 7322592
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0694
        "start_memory" => integer 7327280
        "stop_time" => float 1414816471.0695
        "stop_memory" => integer 7327840
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0722
        "start_memory" => integer 7383504
        "stop_time" => float 1414816471.0722
        "stop_memory" => integer 7384080
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0723
        "start_memory" => integer 7388992
        "stop_time" => float 1414816471.0724
        "stop_memory" => integer 7389560
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0731
        "start_memory" => integer 7429584
        "stop_time" => float 1414816471.0732
        "stop_memory" => integer 7430160
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0733
        "start_memory" => integer 7435112
        "stop_time" => float 1414816471.0734
        "stop_memory" => integer 7435704
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0748
        "start_memory" => integer 7461648
        "stop_time" => float 1414816471.0748
        "stop_memory" => integer 7462216
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0749
        "start_memory" => integer 7467088
        "stop_time" => float 1414816471.075
        "stop_memory" => integer 7467664
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.077
        "start_memory" => integer 7493720
        "stop_time" => float 1414816471.077
        "stop_memory" => integer 7494296
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0809
        "start_memory" => integer 7505200
        "stop_time" => float 1414816471.0809
        "stop_memory" => integer 7505760
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0812
        "start_memory" => integer 7515632
        "stop_time" => float 1414816471.0813
        "stop_memory" => integer 7516200
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0829
        "start_memory" => integer 7526848
        "stop_time" => float 1414816471.083
        "stop_memory" => integer 7527400
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0831
        "start_memory" => integer 7532112
        "stop_time" => float 1414816471.0831
        "stop_memory" => integer 7532712
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0838
        "start_memory" => integer 7538176
        "stop_time" => float 1414816471.0838
        "stop_memory" => integer 7538728
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0839
        "start_memory" => integer 7543456
        "stop_time" => float 1414816471.084
        "stop_memory" => integer 7544032
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0846
        "start_memory" => integer 7549480
        "stop_time" => float 1414816471.0847
        "stop_memory" => integer 7550032
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0848
        "start_memory" => integer 7554784
        "stop_time" => float 1414816471.0848
        "stop_memory" => integer 7555360
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.086
        "start_memory" => integer 7567368
        "stop_time" => float 1414816471.086
        "stop_memory" => integer 7567928
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0861
        "start_memory" => integer 7572576
        "stop_time" => float 1414816471.0862
        "stop_memory" => integer 7573144
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0868
        "start_memory" => integer 7576208
        "stop_time" => float 1414816471.0869
        "stop_memory" => integer 7576784
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0871
        "start_memory" => integer 7586048
        "stop_time" => float 1414816471.0871
        "stop_memory" => integer 7586584
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0872
        "start_memory" => integer 7591232
        "stop_time" => float 1414816471.0872
        "stop_memory" => integer 7591800
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0899
        "start_memory" => integer 7967168
        "stop_time" => float 1414816471.0899
        "stop_memory" => integer 7967744
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0907
        "start_memory" => integer 8046352
        "stop_time" => float 1414816471.0908
        "stop_memory" => integer 8046936
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0913
        "start_memory" => integer 8092160
        "stop_time" => float 1414816471.0913
        "stop_memory" => integer 8092720
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0915
        "start_memory" => integer 8097584
        "stop_time" => float 1414816471.0915
        "stop_memory" => integer 8098168
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0921
        "start_memory" => integer 8107144
        "stop_time" => float 1414816471.0921
        "stop_memory" => integer 8107688
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0927
        "start_memory" => integer 8139128
        "stop_time" => float 1414816471.0927
        "stop_memory" => integer 8139688
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0932
        "start_memory" => integer 8174096
        "stop_time" => float 1414816471.0932
        "stop_memory" => integer 8174672
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0938
        "start_memory" => integer 8206784
        "stop_time" => float 1414816471.0939
        "stop_memory" => integer 8207320
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.094
        "start_memory" => integer 8211976
        "stop_time" => float 1414816471.094
        "stop_memory" => integer 8212544
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0962
        "start_memory" => integer 8254352
        "stop_time" => float 1414816471.0963
        "stop_memory" => integer 8254944
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0964
        "start_memory" => integer 8260128
        "stop_time" => float 1414816471.0965
        "stop_memory" => integer 8260720
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0992
        "start_memory" => integer 8304824
        "stop_time" => float 1414816471.0992
        "stop_memory" => integer 8305376
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.0993
        "start_memory" => integer 8310312
        "stop_time" => float 1414816471.0995
        "stop_memory" => integer 8310896
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1039
        "start_memory" => integer 8412592
        "stop_time" => float 1414816471.104
        "stop_memory" => integer 8413120
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1041
        "start_memory" => integer 8417776
        "stop_time" => float 1414816471.1041
        "stop_memory" => integer 8418344
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1048
        "start_memory" => integer 8433272
        "stop_time" => float 1414816471.1048
        "stop_memory" => integer 8433824
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1049
        "start_memory" => integer 8438472
        "stop_time" => float 1414816471.1049
        "stop_memory" => integer 8439040
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1058
        "start_memory" => integer 8505472
        "stop_time" => float 1414816471.1059
        "stop_memory" => integer 8506032
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1059
        "start_memory" => integer 8510888
        "stop_time" => float 1414816471.106
        "stop_memory" => integer 8511464
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1066
        "start_memory" => integer 8534904
        "stop_time" => float 1414816471.1067
        "stop_memory" => integer 8535512
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1067
        "start_memory" => integer 8540432
        "stop_time" => float 1414816471.1068
        "stop_memory" => integer 8541024
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1079
        "start_memory" => integer 8612040
        "stop_time" => float 1414816471.108
        "stop_memory" => integer 8612576
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1081
        "start_memory" => integer 8617448
        "stop_time" => float 1414816471.1081
        "stop_memory" => integer 8618000
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1088
        "start_memory" => integer 8645736
        "stop_time" => float 1414816471.1089
        "stop_memory" => integer 8646272
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.109
        "start_memory" => integer 8650928
        "stop_time" => float 1414816471.109
        "stop_memory" => integer 8651496
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1103
        "start_memory" => integer 8772720
        "stop_time" => float 1414816471.1103
        "stop_memory" => integer 8773264
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1104
        "start_memory" => integer 8777936
        "stop_time" => float 1414816471.1105
        "stop_memory" => integer 8778504
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1152
        "start_memory" => integer 8809912
        "stop_time" => float 1414816471.1152
        "stop_memory" => integer 8810456
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1153
        "start_memory" => integer 8815104
        "stop_time" => float 1414816471.1154
        "stop_memory" => integer 8815672
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1162
        "start_memory" => integer 8915992
        "stop_time" => float 1414816471.1163
        "stop_memory" => integer 8916552
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1164
        "start_memory" => integer 8921264
        "stop_time" => float 1414816471.1165
        "stop_memory" => integer 8921840
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1176
        "start_memory" => integer 9029576
        "stop_time" => float 1414816471.1177
        "stop_memory" => integer 9030144
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1178
        "start_memory" => integer 9035064
        "stop_time" => float 1414816471.1179
        "stop_memory" => integer 9035648
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1188
        "start_memory" => integer 9056840
        "stop_time" => float 1414816471.1188
        "stop_memory" => integer 9057416
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1191
        "start_memory" => integer 9021904
        "stop_time" => float 1414816471.1192
        "stop_memory" => integer 9023840
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1198
        "start_memory" => integer 9094560
        "stop_time" => float 1414816471.1199
        "stop_memory" => integer 9096288
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414816471.1199
        "start_memory" => integer 9096048
        "stop_time" => float 1414816471.1199
        "stop_memory" => integer 9097776
    )
)

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