Modules

Kohana_Profiler

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

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

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

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1412223739.8812
        "start_memory" => integer 1985648
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8813
        "start_memory" => integer 1987992
        "stop_time" => float 1412223739.8813
        "stop_memory" => integer 1988584
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8815
        "start_memory" => integer 1993536
        "stop_time" => float 1412223739.8816
        "stop_memory" => integer 1994128
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8823
        "start_memory" => integer 2119656
        "stop_time" => float 1412223739.8823
        "stop_memory" => integer 2120208
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8824
        "start_memory" => integer 2125128
        "stop_time" => float 1412223739.8824
        "stop_memory" => integer 2125712
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8826
        "start_memory" => integer 2136800
        "stop_time" => float 1412223739.8826
        "stop_memory" => integer 2137344
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8827
        "start_memory" => integer 2142056
        "stop_time" => float 1412223739.8828
        "stop_memory" => integer 2142632
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8829
        "start_memory" => integer 2151880
        "stop_time" => float 1412223739.883
        "stop_memory" => integer 2152416
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8831
        "start_memory" => integer 2157112
        "stop_time" => float 1412223739.8831
        "stop_memory" => integer 2157744
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8842
        "start_memory" => integer 2318672
        "stop_time" => float 1412223739.8842
        "stop_memory" => integer 2319232
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8843
        "start_memory" => integer 2324080
        "stop_time" => float 1412223739.8844
        "stop_memory" => integer 2324656
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8846
        "start_memory" => integer 2338088
        "stop_time" => float 1412223739.8846
        "stop_memory" => integer 2338632
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8847
        "start_memory" => integer 2343280
        "stop_time" => float 1412223739.8848
        "stop_memory" => integer 2343848
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8853
        "start_memory" => integer 2398656
        "stop_time" => float 1412223739.8854
        "stop_memory" => integer 2399248
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8855
        "start_memory" => integer 2400408
        "stop_time" => float 1412223739.8856
        "stop_memory" => integer 2400984
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8857
        "start_memory" => integer 2405856
        "stop_time" => float 1412223739.8858
        "stop_memory" => integer 2406432
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8861
        "start_memory" => integer 2471872
        "stop_time" => float 1412223739.8862
        "stop_memory" => integer 2472488
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8862
        "start_memory" => integer 2473272
        "stop_time" => float 1412223739.8862
        "stop_memory" => integer 2473848
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8913
        "start_memory" => integer 3142592
        "stop_time" => float 1412223739.8915
        "stop_memory" => integer 3143120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8916
        "start_memory" => integer 3148816
        "stop_time" => float 1412223739.8917
        "stop_memory" => integer 3149384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8922
        "start_memory" => integer 3182136
        "stop_time" => float 1412223739.8923
        "stop_memory" => integer 3182680
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8925
        "start_memory" => integer 3187320
        "stop_time" => float 1412223739.8925
        "stop_memory" => integer 3187888
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8938
        "start_memory" => integer 3350760
        "stop_time" => float 1412223739.8939
        "stop_memory" => integer 3351336
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.894
        "start_memory" => integer 3356216
        "stop_time" => float 1412223739.8941
        "stop_memory" => integer 3356800
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8943
        "start_memory" => integer 3359488
        "stop_time" => float 1412223739.8944
        "stop_memory" => integer 3360048
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8945
        "start_memory" => integer 3364920
        "stop_time" => float 1412223739.8946
        "stop_memory" => integer 3365504
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8951
        "start_memory" => integer 3415176
        "stop_time" => float 1412223739.8952
        "stop_memory" => integer 3415720
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8954
        "start_memory" => integer 3420392
        "stop_time" => float 1412223739.8954
        "stop_memory" => integer 3420968
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8965
        "start_memory" => integer 3518544
        "stop_time" => float 1412223739.8966
        "stop_memory" => integer 3519080
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8967
        "start_memory" => integer 3523720
        "stop_time" => float 1412223739.8968
        "stop_memory" => integer 3524288
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.8991
        "start_memory" => integer 3611352
        "stop_time" => float 1412223739.8992
        "stop_memory" => integer 3611944
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9556
        "start_memory" => integer 3654096
        "stop_time" => float 1412223739.9556
        "stop_memory" => integer 3654664
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9557
        "start_memory" => integer 3659328
        "stop_time" => float 1412223739.9558
        "stop_memory" => integer 3660160
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9565
        "start_memory" => integer 3700760
        "stop_time" => float 1412223739.9565
        "stop_memory" => integer 3701312
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9566
        "start_memory" => integer 3706144
        "stop_time" => float 1412223739.9566
        "stop_memory" => integer 3706720
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9571
        "start_memory" => integer 3730448
        "stop_time" => float 1412223739.9572
        "stop_memory" => integer 3731000
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9572
        "start_memory" => integer 3735680
        "stop_time" => float 1412223739.9573
        "stop_memory" => integer 3736256
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.958
        "start_memory" => integer 3803408
        "stop_time" => float 1412223739.958
        "stop_memory" => integer 3803992
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9582
        "start_memory" => integer 3821984
        "stop_time" => float 1412223739.9582
        "stop_memory" => integer 3822544
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9583
        "start_memory" => integer 3827408
        "stop_time" => float 1412223739.9583
        "stop_memory" => integer 3827992
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9588
        "start_memory" => integer 3893128
        "stop_time" => float 1412223739.9588
        "stop_memory" => integer 3893704
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9591
        "start_memory" => integer 3913112
        "stop_time" => float 1412223739.9591
        "stop_memory" => integer 3913688
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9595
        "start_memory" => integer 3961728
        "stop_time" => float 1412223739.9595
        "stop_memory" => integer 3962304
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9597
        "start_memory" => integer 3972960
        "stop_time" => float 1412223739.9598
        "stop_memory" => integer 3973536
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.96
        "start_memory" => integer 3991544
        "stop_time" => float 1412223739.96
        "stop_memory" => integer 3992120
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9602
        "start_memory" => integer 4001792
        "stop_time" => float 1412223739.9602
        "stop_memory" => integer 4002368
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9605
        "start_memory" => integer 4022472
        "stop_time" => float 1412223739.9606
        "stop_memory" => integer 4023048
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9608
        "start_memory" => integer 4043528
        "stop_time" => float 1412223739.9608
        "stop_memory" => integer 4044120
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9611
        "start_memory" => integer 4057344
        "stop_time" => float 1412223739.9611
        "stop_memory" => integer 4057912
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9613
        "start_memory" => integer 4070120
        "stop_time" => float 1412223739.9613
        "stop_memory" => integer 4070696
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9616
        "start_memory" => integer 4118968
        "stop_time" => float 1412223739.9616
        "stop_memory" => integer 4119528
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9619
        "start_memory" => integer 4158000
        "stop_time" => float 1412223739.962
        "stop_memory" => integer 4158584
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9622
        "start_memory" => integer 4177984
        "stop_time" => float 1412223739.9622
        "stop_memory" => integer 4178560
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9625
        "start_memory" => integer 4209720
        "stop_time" => float 1412223739.9625
        "stop_memory" => integer 4210296
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9628
        "start_memory" => integer 4229008
        "stop_time" => float 1412223739.9628
        "stop_memory" => integer 4229552
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9629
        "start_memory" => integer 4234224
        "stop_time" => float 1412223739.9629
        "stop_memory" => integer 4234800
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9631
        "start_memory" => integer 4265648
        "stop_time" => float 1412223739.9632
        "stop_memory" => integer 4266184
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9632
        "start_memory" => integer 4270832
        "stop_time" => float 1412223739.9633
        "stop_memory" => integer 4271400
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9654
        "start_memory" => integer 4412968
        "stop_time" => float 1412223739.9655
        "stop_memory" => integer 4413544
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9722
        "start_memory" => integer 4466336
        "stop_time" => float 1412223739.9722
        "stop_memory" => integer 4466888
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9725
        "start_memory" => integer 4471720
        "stop_time" => float 1412223739.9725
        "stop_memory" => integer 4472296
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9771
        "start_memory" => integer 4497760
        "stop_time" => float 1412223739.9771
        "stop_memory" => integer 4498344
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9773
        "start_memory" => integer 4503280
        "stop_time" => float 1412223739.9773
        "stop_memory" => integer 4503856
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9812
        "start_memory" => integer 4529488
        "stop_time" => float 1412223739.9812
        "stop_memory" => integer 4530048
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9813
        "start_memory" => integer 4534904
        "stop_time" => float 1412223739.9814
        "stop_memory" => integer 4535984
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9819
        "start_memory" => integer 4624688
        "stop_time" => float 1412223739.9819
        "stop_memory" => integer 4625288
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9862
        "start_memory" => integer 4632208
        "stop_time" => float 1412223739.9862
        "stop_memory" => integer 4632760
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9863
        "start_memory" => integer 4637640
        "stop_time" => float 1412223739.9864
        "stop_memory" => integer 4638224
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9989
        "start_memory" => integer 4695120
        "stop_time" => float 1412223739.999
        "stop_memory" => integer 4695680
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9992
        "start_memory" => integer 4700600
        "stop_time" => float 1412223739.9992
        "stop_memory" => integer 4701184
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223739.9994
        "start_memory" => integer 4725032
        "stop_time" => float 1412223739.9994
        "stop_memory" => integer 4725608
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740
        "start_memory" => integer 4734672
        "stop_time" => float 1412223740
        "stop_memory" => integer 4735232
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0001
        "start_memory" => integer 4740096
        "stop_time" => float 1412223740.0001
        "stop_memory" => integer 4740680
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.001
        "start_memory" => integer 4820168
        "stop_time" => float 1412223740.001
        "stop_memory" => integer 4820728
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0012
        "start_memory" => integer 4825608
        "stop_time" => float 1412223740.0012
        "stop_memory" => integer 4826192
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0061
        "start_memory" => integer 4851920
        "stop_time" => float 1412223740.0061
        "stop_memory" => integer 4852480
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0062
        "start_memory" => integer 4857344
        "stop_time" => float 1412223740.0063
        "stop_memory" => integer 4857928
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0071
        "start_memory" => integer 4879336
        "stop_time" => float 1412223740.0071
        "stop_memory" => integer 4879864
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0072
        "start_memory" => integer 4884512
        "stop_time" => float 1412223740.0073
        "stop_memory" => integer 4885080
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0086
        "start_memory" => integer 4895936
        "stop_time" => float 1412223740.0087
        "stop_memory" => integer 4896528
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0088
        "start_memory" => integer 4901416
        "stop_time" => float 1412223740.0088
        "stop_memory" => integer 4901992
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0118
        "start_memory" => integer 4946936
        "stop_time" => float 1412223740.0119
        "stop_memory" => integer 4947512
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0124
        "start_memory" => integer 4958648
        "stop_time" => float 1412223740.0124
        "stop_memory" => integer 4959192
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0125
        "start_memory" => integer 4965088
        "stop_time" => float 1412223740.0126
        "stop_memory" => integer 4965664
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0155
        "start_memory" => integer 4987120
        "stop_time" => float 1412223740.0155
        "stop_memory" => integer 4987696
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0171
        "start_memory" => integer 4993264
        "stop_time" => float 1412223740.0172
        "stop_memory" => integer 4993832
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0173
        "start_memory" => integer 4998680
        "stop_time" => float 1412223740.0173
        "stop_memory" => integer 4999264
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0194
        "start_memory" => integer 5133008
        "stop_time" => float 1412223740.0194
        "stop_memory" => integer 5133584
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0195
        "start_memory" => integer 5138536
        "stop_time" => float 1412223740.0195
        "stop_memory" => integer 5139128
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0199
        "start_memory" => integer 5153984
        "stop_time" => float 1412223740.02
        "stop_memory" => integer 5154552
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.02
        "start_memory" => integer 5159512
        "stop_time" => float 1412223740.0201
        "stop_memory" => integer 5160104
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0213
        "start_memory" => integer 5166040
        "stop_time" => float 1412223740.0213
        "stop_memory" => integer 5166592
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0214
        "start_memory" => integer 5171472
        "stop_time" => float 1412223740.0214
        "stop_memory" => integer 5172056
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0225
        "start_memory" => integer 5316632
        "stop_time" => float 1412223740.0225
        "stop_memory" => integer 5317208
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0226
        "start_memory" => integer 5322168
        "stop_time" => float 1412223740.0226
        "stop_memory" => integer 5322784
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0228
        "start_memory" => integer 5343464
        "stop_time" => float 1412223740.0228
        "stop_memory" => integer 5344032
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0229
        "start_memory" => integer 5348944
        "stop_time" => float 1412223740.0229
        "stop_memory" => integer 5349520
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0238
        "start_memory" => integer 5411792
        "stop_time" => float 1412223740.0238
        "stop_memory" => integer 5412352
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0239
        "start_memory" => integer 5417224
        "stop_time" => float 1412223740.0239
        "stop_memory" => integer 5417808
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0246
        "start_memory" => integer 5483304
        "stop_time" => float 1412223740.0247
        "stop_memory" => integer 5483864
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0247
        "start_memory" => integer 5488728
        "stop_time" => float 1412223740.0248
        "stop_memory" => integer 5489312
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0257
        "start_memory" => integer 5531968
        "stop_time" => float 1412223740.0257
        "stop_memory" => integer 5532544
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0258
        "start_memory" => integer 5537512
        "stop_time" => float 1412223740.0258
        "stop_memory" => integer 5538104
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0267
        "start_memory" => integer 5596936
        "stop_time" => float 1412223740.0268
        "stop_memory" => integer 5597520
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0268
        "start_memory" => integer 5602584
        "stop_time" => float 1412223740.0269
        "stop_memory" => integer 5603184
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.027
        "start_memory" => integer 5622856
        "stop_time" => float 1412223740.027
        "stop_memory" => integer 5623432
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0271
        "start_memory" => integer 5628496
        "stop_time" => float 1412223740.0271
        "stop_memory" => integer 5629096
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0281
        "start_memory" => integer 5693568
        "stop_time" => float 1412223740.0281
        "stop_memory" => integer 5694144
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0282
        "start_memory" => integer 5699208
        "stop_time" => float 1412223740.0282
        "stop_memory" => integer 5699808
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0291
        "start_memory" => integer 5748136
        "stop_time" => float 1412223740.0291
        "stop_memory" => integer 5748712
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0292
        "start_memory" => integer 5753768
        "stop_time" => float 1412223740.0292
        "stop_memory" => integer 5754368
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0301
        "start_memory" => integer 5795672
        "stop_time" => float 1412223740.0301
        "stop_memory" => integer 5796248
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0303
        "start_memory" => integer 5801312
        "stop_time" => float 1412223740.0304
        "stop_memory" => integer 5801912
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0317
        "start_memory" => integer 5914840
        "stop_time" => float 1412223740.0318
        "stop_memory" => integer 5915416
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0319
        "start_memory" => integer 5920480
        "stop_time" => float 1412223740.0319
        "stop_memory" => integer 5921080
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0338
        "start_memory" => integer 5969704
        "stop_time" => float 1412223740.0338
        "stop_memory" => integer 5970264
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0339
        "start_memory" => integer 5975232
        "stop_time" => float 1412223740.034
        "stop_memory" => integer 5975824
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0348
        "start_memory" => integer 5998952
        "stop_time" => float 1412223740.0348
        "stop_memory" => integer 5999472
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0349
        "start_memory" => integer 6004112
        "stop_time" => float 1412223740.0349
        "stop_memory" => integer 6004680
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0356
        "start_memory" => integer 6122328
        "stop_time" => float 1412223740.0357
        "stop_memory" => integer 6122872
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0361
        "start_memory" => integer 6123928
        "stop_time" => float 1412223740.0361
        "stop_memory" => integer 6124496
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0362
        "start_memory" => integer 6129168
        "stop_time" => float 1412223740.0363
        "stop_memory" => integer 6129752
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0401
        "start_memory" => integer 6150072
        "stop_time" => float 1412223740.0402
        "stop_memory" => integer 6150608
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0403
        "start_memory" => integer 6155256
        "stop_time" => float 1412223740.0404
        "stop_memory" => integer 6155824
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0427
        "start_memory" => integer 6193328
        "stop_time" => float 1412223740.0428
        "stop_memory" => integer 6193872
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0429
        "start_memory" => integer 6198512
        "stop_time" => float 1412223740.0429
        "stop_memory" => integer 6199080
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0436
        "start_memory" => integer 6241472
        "stop_time" => float 1412223740.0437
        "stop_memory" => integer 6242016
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0438
        "start_memory" => integer 6246664
        "stop_time" => float 1412223740.0438
        "stop_memory" => integer 6247232
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0447
        "start_memory" => integer 6291432
        "stop_time" => float 1412223740.0448
        "stop_memory" => integer 6293000
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0449
        "start_memory" => integer 6297640
        "stop_time" => float 1412223740.045
        "stop_memory" => integer 6298208
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0466
        "start_memory" => integer 6373712
        "stop_time" => float 1412223740.0466
        "stop_memory" => integer 6374256
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0467
        "start_memory" => integer 6378920
        "stop_time" => float 1412223740.0467
        "stop_memory" => integer 6379488
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0492
        "start_memory" => integer 6401680
        "stop_time" => float 1412223740.0492
        "stop_memory" => integer 6402224
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0494
        "start_memory" => integer 6406864
        "stop_time" => float 1412223740.0495
        "stop_memory" => integer 6407432
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0511
        "start_memory" => integer 6436912
        "stop_time" => float 1412223740.0511
        "stop_memory" => integer 6437472
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0512
        "start_memory" => integer 6442320
        "stop_time" => float 1412223740.0512
        "stop_memory" => integer 6442896
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.052
        "start_memory" => integer 6463184
        "stop_time" => float 1412223740.052
        "stop_memory" => integer 6463752
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0521
        "start_memory" => integer 6468688
        "stop_time" => float 1412223740.0521
        "stop_memory" => integer 6469272
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0527
        "start_memory" => integer 6484312
        "stop_time" => float 1412223740.0528
        "stop_memory" => integer 6484872
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0529
        "start_memory" => integer 6489808
        "stop_time" => float 1412223740.0529
        "stop_memory" => integer 6490392
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0536
        "start_memory" => integer 6505432
        "stop_time" => float 1412223740.0536
        "stop_memory" => integer 6505992
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0537
        "start_memory" => integer 6510928
        "stop_time" => float 1412223740.0537
        "stop_memory" => integer 6511512
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0545
        "start_memory" => integer 6526560
        "stop_time" => float 1412223740.0545
        "stop_memory" => integer 6527120
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0546
        "start_memory" => integer 6532056
        "stop_time" => float 1412223740.0547
        "stop_memory" => integer 6532640
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0552
        "start_memory" => integer 6547664
        "stop_time" => float 1412223740.0552
        "stop_memory" => integer 6548224
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0553
        "start_memory" => integer 6553160
        "stop_time" => float 1412223740.0554
        "stop_memory" => integer 6553744
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0559
        "start_memory" => integer 6568768
        "stop_time" => float 1412223740.056
        "stop_memory" => integer 6569328
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0561
        "start_memory" => integer 6574264
        "stop_time" => float 1412223740.0561
        "stop_memory" => integer 6574848
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0567
        "start_memory" => integer 6589904
        "stop_time" => float 1412223740.0567
        "stop_memory" => integer 6590464
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0568
        "start_memory" => integer 6595400
        "stop_time" => float 1412223740.0568
        "stop_memory" => integer 6595984
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0574
        "start_memory" => integer 6611008
        "stop_time" => float 1412223740.0575
        "stop_memory" => integer 6611568
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0575
        "start_memory" => integer 6616504
        "stop_time" => float 1412223740.0576
        "stop_memory" => integer 6617088
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0581
        "start_memory" => integer 6632224
        "stop_time" => float 1412223740.0582
        "stop_memory" => integer 6632784
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0583
        "start_memory" => integer 6637720
        "stop_time" => float 1412223740.0583
        "stop_memory" => integer 6638304
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0589
        "start_memory" => integer 6653336
        "stop_time" => float 1412223740.0589
        "stop_memory" => integer 6653896
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.059
        "start_memory" => integer 6658832
        "stop_time" => float 1412223740.059
        "stop_memory" => integer 6659416
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0596
        "start_memory" => integer 6674456
        "stop_time" => float 1412223740.0597
        "stop_memory" => integer 6675016
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0597
        "start_memory" => integer 6679952
        "stop_time" => float 1412223740.0598
        "stop_memory" => integer 6680536
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0603
        "start_memory" => integer 6695544
        "stop_time" => float 1412223740.0604
        "stop_memory" => integer 6696104
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0605
        "start_memory" => integer 6701040
        "stop_time" => float 1412223740.0605
        "stop_memory" => integer 6701624
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0611
        "start_memory" => integer 6716648
        "stop_time" => float 1412223740.0612
        "stop_memory" => integer 6717208
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0613
        "start_memory" => integer 6722144
        "stop_time" => float 1412223740.0613
        "stop_memory" => integer 6722728
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.062
        "start_memory" => integer 6737768
        "stop_time" => float 1412223740.0621
        "stop_memory" => integer 6738328
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0622
        "start_memory" => integer 6743264
        "stop_time" => float 1412223740.0622
        "stop_memory" => integer 6743848
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0628
        "start_memory" => integer 6758904
        "stop_time" => float 1412223740.0628
        "stop_memory" => integer 6759464
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0629
        "start_memory" => integer 6764400
        "stop_time" => float 1412223740.063
        "stop_memory" => integer 6764984
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0638
        "start_memory" => integer 6780032
        "stop_time" => float 1412223740.0638
        "stop_memory" => integer 6780592
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0639
        "start_memory" => integer 6785528
        "stop_time" => float 1412223740.064
        "stop_memory" => integer 6786112
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0648
        "start_memory" => integer 6801296
        "stop_time" => float 1412223740.0648
        "stop_memory" => integer 6801856
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0649
        "start_memory" => integer 6806792
        "stop_time" => float 1412223740.065
        "stop_memory" => integer 6807376
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0656
        "start_memory" => integer 6822448
        "stop_time" => float 1412223740.0656
        "stop_memory" => integer 6823008
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0657
        "start_memory" => integer 6827944
        "stop_time" => float 1412223740.0658
        "stop_memory" => integer 6828528
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0665
        "start_memory" => integer 6843584
        "stop_time" => float 1412223740.0666
        "stop_memory" => integer 6844144
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0667
        "start_memory" => integer 6849080
        "stop_time" => float 1412223740.0667
        "stop_memory" => integer 6849664
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0672
        "start_memory" => integer 6864712
        "stop_time" => float 1412223740.0674
        "stop_memory" => integer 6865272
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0674
        "start_memory" => integer 6870208
        "stop_time" => float 1412223740.0676
        "stop_memory" => integer 6870792
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0683
        "start_memory" => integer 6885816
        "stop_time" => float 1412223740.0684
        "stop_memory" => integer 6886376
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0685
        "start_memory" => integer 6891312
        "stop_time" => float 1412223740.0685
        "stop_memory" => integer 6891896
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0693
        "start_memory" => integer 6906920
        "stop_time" => float 1412223740.0694
        "stop_memory" => integer 6907480
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0695
        "start_memory" => integer 6912416
        "stop_time" => float 1412223740.0695
        "stop_memory" => integer 6913000
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0702
        "start_memory" => integer 6928056
        "stop_time" => float 1412223740.0703
        "stop_memory" => integer 6928616
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0704
        "start_memory" => integer 6933552
        "stop_time" => float 1412223740.0704
        "stop_memory" => integer 6934136
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.071
        "start_memory" => integer 6949176
        "stop_time" => float 1412223740.0711
        "stop_memory" => integer 6949736
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0712
        "start_memory" => integer 6954672
        "stop_time" => float 1412223740.0712
        "stop_memory" => integer 6955256
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0729
        "start_memory" => integer 6970520
        "stop_time" => float 1412223740.0729
        "stop_memory" => integer 6971080
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0731
        "start_memory" => integer 6975992
        "stop_time" => float 1412223740.0731
        "stop_memory" => integer 6976560
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0761
        "start_memory" => integer 7014584
        "stop_time" => float 1412223740.0762
        "stop_memory" => integer 7015136
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0763
        "start_memory" => integer 7019808
        "stop_time" => float 1412223740.0763
        "stop_memory" => integer 7020384
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.078
        "start_memory" => integer 7151448
        "stop_time" => float 1412223740.078
        "stop_memory" => integer 7152000
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0781
        "start_memory" => integer 7156680
        "stop_time" => float 1412223740.0781
        "stop_memory" => integer 7157256
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0803
        "start_memory" => integer 7326432
        "stop_time" => float 1412223740.0804
        "stop_memory" => integer 7326984
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0805
        "start_memory" => integer 7331672
        "stop_time" => float 1412223740.0805
        "stop_memory" => integer 7332232
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0842
        "start_memory" => integer 7387896
        "stop_time" => float 1412223740.0843
        "stop_memory" => integer 7388472
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0845
        "start_memory" => integer 7393384
        "stop_time" => float 1412223740.0845
        "stop_memory" => integer 7393952
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0856
        "start_memory" => integer 7433984
        "stop_time" => float 1412223740.0856
        "stop_memory" => integer 7434560
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0858
        "start_memory" => integer 7439512
        "stop_time" => float 1412223740.0858
        "stop_memory" => integer 7440104
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0875
        "start_memory" => integer 7466048
        "stop_time" => float 1412223740.0876
        "stop_memory" => integer 7466616
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0877
        "start_memory" => integer 7471488
        "stop_time" => float 1412223740.0877
        "stop_memory" => integer 7472064
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0898
        "start_memory" => integer 7498120
        "stop_time" => float 1412223740.0899
        "stop_memory" => integer 7498696
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0932
        "start_memory" => integer 7509600
        "stop_time" => float 1412223740.0933
        "stop_memory" => integer 7510160
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0937
        "start_memory" => integer 7520048
        "stop_time" => float 1412223740.0937
        "stop_memory" => integer 7520616
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0956
        "start_memory" => integer 7531216
        "stop_time" => float 1412223740.0956
        "stop_memory" => integer 7531768
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0957
        "start_memory" => integer 7536480
        "stop_time" => float 1412223740.0958
        "stop_memory" => integer 7537080
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0965
        "start_memory" => integer 7542544
        "stop_time" => float 1412223740.0965
        "stop_memory" => integer 7543096
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0967
        "start_memory" => integer 7547824
        "stop_time" => float 1412223740.0967
        "stop_memory" => integer 7548400
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0974
        "start_memory" => integer 7553848
        "stop_time" => float 1412223740.0975
        "stop_memory" => integer 7554400
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0976
        "start_memory" => integer 7559152
        "stop_time" => float 1412223740.0976
        "stop_memory" => integer 7559728
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0987
        "start_memory" => integer 7571728
        "stop_time" => float 1412223740.0987
        "stop_memory" => integer 7572264
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0988
        "start_memory" => integer 7576912
        "stop_time" => float 1412223740.0988
        "stop_memory" => integer 7577480
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0994
        "start_memory" => integer 7580544
        "stop_time" => float 1412223740.0995
        "stop_memory" => integer 7581120
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0996
        "start_memory" => integer 7590384
        "stop_time" => float 1412223740.0996
        "stop_memory" => integer 7590920
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.0998
        "start_memory" => integer 7597640
        "stop_time" => float 1412223740.0998
        "stop_memory" => integer 7598208
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.102
        "start_memory" => integer 7975592
        "stop_time" => float 1412223740.102
        "stop_memory" => integer 7976168
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1027
        "start_memory" => integer 8050616
        "stop_time" => float 1412223740.1028
        "stop_memory" => integer 8051200
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1033
        "start_memory" => integer 8096432
        "stop_time" => float 1412223740.1034
        "stop_memory" => integer 8096992
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1034
        "start_memory" => integer 8101856
        "stop_time" => float 1412223740.1035
        "stop_memory" => integer 8102440
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.104
        "start_memory" => integer 8111400
        "stop_time" => float 1412223740.1041
        "stop_memory" => integer 8111944
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1045
        "start_memory" => integer 8143408
        "stop_time" => float 1412223740.1046
        "stop_memory" => integer 8143968
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.105
        "start_memory" => integer 8178400
        "stop_time" => float 1412223740.1051
        "stop_memory" => integer 8178976
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1056
        "start_memory" => integer 8211088
        "stop_time" => float 1412223740.1056
        "stop_memory" => integer 8211624
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1057
        "start_memory" => integer 8216280
        "stop_time" => float 1412223740.1057
        "stop_memory" => integer 8216848
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1077
        "start_memory" => integer 8258656
        "stop_time" => float 1412223740.1078
        "stop_memory" => integer 8259248
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1079
        "start_memory" => integer 8264432
        "stop_time" => float 1412223740.1079
        "stop_memory" => integer 8265024
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1103
        "start_memory" => integer 8309128
        "stop_time" => float 1412223740.1103
        "stop_memory" => integer 8309680
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1104
        "start_memory" => integer 8314616
        "stop_time" => float 1412223740.1105
        "stop_memory" => integer 8315200
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1141
        "start_memory" => integer 8416888
        "stop_time" => float 1412223740.1142
        "stop_memory" => integer 8417416
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1143
        "start_memory" => integer 8422072
        "stop_time" => float 1412223740.1143
        "stop_memory" => integer 8422640
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1148
        "start_memory" => integer 8437568
        "stop_time" => float 1412223740.1148
        "stop_memory" => integer 8438120
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1149
        "start_memory" => integer 8442768
        "stop_time" => float 1412223740.115
        "stop_memory" => integer 8443336
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1158
        "start_memory" => integer 8509768
        "stop_time" => float 1412223740.1158
        "stop_memory" => integer 8510328
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1159
        "start_memory" => integer 8515184
        "stop_time" => float 1412223740.116
        "stop_memory" => integer 8515760
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1165
        "start_memory" => integer 8539200
        "stop_time" => float 1412223740.1165
        "stop_memory" => integer 8539808
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1166
        "start_memory" => integer 8544728
        "stop_time" => float 1412223740.1166
        "stop_memory" => integer 8545320
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1181
        "start_memory" => integer 8616312
        "stop_time" => float 1412223740.1182
        "stop_memory" => integer 8616848
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1183
        "start_memory" => integer 8621720
        "stop_time" => float 1412223740.1183
        "stop_memory" => integer 8622272
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1189
        "start_memory" => integer 8649976
        "stop_time" => float 1412223740.1189
        "stop_memory" => integer 8650512
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.119
        "start_memory" => integer 8655168
        "stop_time" => float 1412223740.119
        "stop_memory" => integer 8655736
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1203
        "start_memory" => integer 8776960
        "stop_time" => float 1412223740.1203
        "stop_memory" => integer 8777504
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1204
        "start_memory" => integer 8782176
        "stop_time" => float 1412223740.1204
        "stop_memory" => integer 8782744
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1249
        "start_memory" => integer 8814128
        "stop_time" => float 1412223740.125
        "stop_memory" => integer 8814672
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1251
        "start_memory" => integer 8819320
        "stop_time" => float 1412223740.1251
        "stop_memory" => integer 8819888
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.126
        "start_memory" => integer 8920168
        "stop_time" => float 1412223740.126
        "stop_memory" => integer 8920728
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1261
        "start_memory" => integer 8925440
        "stop_time" => float 1412223740.1262
        "stop_memory" => integer 8926016
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1272
        "start_memory" => integer 9033792
        "stop_time" => float 1412223740.1272
        "stop_memory" => integer 9034360
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1273
        "start_memory" => integer 9039280
        "stop_time" => float 1412223740.1274
        "stop_memory" => integer 9039864
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1282
        "start_memory" => integer 9061048
        "stop_time" => float 1412223740.1282
        "stop_memory" => integer 9061624
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1286
        "start_memory" => integer 9026096
        "stop_time" => float 1412223740.1286
        "stop_memory" => integer 9028032
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1292
        "start_memory" => integer 9098752
        "stop_time" => float 1412223740.1292
        "stop_memory" => integer 9100480
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1412223740.1292
        "start_memory" => integer 9100240
        "stop_time" => float 1412223740.1293
        "stop_memory" => integer 9101968
    )
)

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